Fixed test

This commit is contained in:
Dmitry Stogov 2013-03-05 22:49:31 +04:00
parent 6ab1759369
commit c3c244af81

View File

@ -1,6 +1,7 @@
--TEST--
Bug #64353 (Built-in classes can be unavailable with dynamic includes and Optimizer+)
--INI--
allow_url_include=1
zend_optimizerplus.enable=1
zend_optimizerplus.enable_cli=1
--SKIPIF--
@ -13,16 +14,15 @@ class BugLoader extends php_user_filter {
eval("class Test extends ArrayObject {}");
}
while ($bucket = stream_bucket_make_writeable($in)) {
$bucket->data = strtoupper($bucket->data);
$consumed += $bucket->datalen;
// stream_bucket_append($out, $bucket);
stream_bucket_append($out, $bucket);
}
return PSFS_PASS_ON;
}
}
stream_filter_register('bug.test', 'BugLoader');
include "php://filter/read=bug.test/resource=test.php";
include "php://filter/read=bug.test/resource=data://text/plain,<?php\n";
echo "OK\n";
?>
--EXPECT--