ID:               38779
 Updated by:       [EMAIL PROTECTED]
 Reported By:      alexander dot netkachev at gmail dot com
-Status:           Assigned
+Status:           Closed
 Bug Type:         Streams related
 Operating System: Windows XP SP2
 PHP Version:      5.1.6
 Assigned To:      tony2001
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2006-09-11 11:17:29] alexander dot netkachev at gmail dot com

Description:
------------
including or requiring a syntactically incorrect PHP file through
stream wrapper generate uncatchable system exception - program crash.

Reproduce code:
---------------
class Loader {
        private $position;
        private $data;
        public function stream_open($path, $mode, $options, &$opened_path)  {
                $this->data = '<' . "?php \n\"\";ll l\n ?" . '>';
                $this->position = 0;
                return true;
        }
        function stream_read($count) {
                $ret = substr($this->data, $this->position, $count);
                $this->position += strlen($ret);
                return $ret;
        }
        function stream_eof() {
                return $this->position >= strlen($this->data);
        }
}
stream_wrapper_register('Loader', 'Loader');
require_once 'Loader://qqq.php';

Expected result:
----------------
Just the "Parse error", not the program crash.

Actual result:
--------------
System exception with the following description:
AppName: php.exe
AppVer: 5.1.6.6
ModName: php5ts.dll
ModVer: 5.1.6.6
Offset: 000ad9cf



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38779&edit=1

Reply via email to