cvs: php-src(PHP_5_2) /ext/standard/tests/file bug39551.phpt

From: Date: Tue, 21 Nov 2006 18:17:11 +0000
Subject: cvs: php-src(PHP_5_2) /ext/standard/tests/file bug39551.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-41674@lists.php.net to get a copy of this message
tony2001 Tue Nov 21 18:17:11 2006 UTC Added files: (Branch: PHP_5_2) /php-src/ext/standard/tests/file bug39551.phpt Log: add test http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/bug39551.phpt?view=markup&rev=1.1 Index: php-src/ext/standard/tests/file/bug39551.phpt +++ php-src/ext/standard/tests/file/bug39551.phpt --TEST-- Bug #39551 (Segfault with stream_bucket_new in user filter) --FILE-- <?php $bucket = stream_bucket_new(fopen('php://temp', 'w+'), ''); class bucketFilter { public function filter($in, $out, &$consumed, $closing ){ $bucket = stream_bucket_new(fopen('php://temp', 'w+'), ''); stream_bucket_append($out, $bucket); return PSFS_PASS_ON; } } stream_filter_register('bucketfault', 'bucketFilter'); stream_filter_append($s = fopen('php://temp', 'r+'), 'bucketfault'); stream_get_contents($s); echo "Done\n"; ?> --EXPECTF-- Done --UEXPECTF-- Done Notice: Unknown: 0 character unicode buffer downcoded for binary stream runtime_encoding in Unknown on line 0

« previous php.cvs (#41674) next »