mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
Fixed test
This commit is contained in:
parent
6ab1759369
commit
c3c244af81
@ -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--
|
||||
|
Loading…
Reference in New Issue
Block a user