ID: 34501 Updated by: [EMAIL PROTECTED] Reported By: dmitry dot poltaryonok at gmail dot com Status: Feedback Bug Type: Reproducible crash Operating System: Windows XP SP2 PHP Version: 5.0.5 New Comment:
No it isn't. I get an error while running your script about not having implemented stream_eof(). Try the snapshot. Previous Comments: ------------------------------------------------------------------------ [2005-09-15 09:30:14] [EMAIL PROTECTED] Then provide your actual reproduce code, not the one that doesn't work at all. ------------------------------------------------------------------------ [2005-09-15 09:23:30] dmitry dot poltaryonok at gmail dot com My actual wrapper is complete (contains all functions) ------------------------------------------------------------------------ [2005-09-14 22:32:17] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip And fix your script. The wrapper class is incomplete. ------------------------------------------------------------------------ [2005-09-14 20:48:23] dmitry dot poltaryonok at gmail dot com Crash is right after call to stream_open ------------------------------------------------------------------------ [2005-09-14 20:37:59] dmitry dot poltaryonok at gmail dot com Description: ------------ After you register custom wrapper PHP crashes during inclusion of the file using this wrapper. Reproduce code: --------------- <? define('suAPI', 'mywrap://api.su/api/', true); class mywrap { function stream_open ( $path, $mode, $options, &$opened_path ) { return true; } function stream_read ( $count ) { return '<? echo \'test\';?>'; } } stream_wrapper_register('mywrap', 'mywrap'); include(suAPI.'config/config.php'); ?> Expected result: ---------------- I expect to see "test" string echoed from included code. included code returned by stream_read() Actual result: -------------- Windows displays that CLI PHP application crashed (or that Apache is crashed). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34501&edit=1