#45677 [Opn->Bgs]: Crash with stream_wrapper_register()
ID: 45677
Updated by: johannes@php.net
Reported By: alexey at belan dot su
-Status: Open
+Status: Bogus
Bug Type: Streams related
Operating System: *
PHP Version: 5.2.6
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
It's an infinite recursion leading to a stack overflow.
Previous Comments:
------------------------------------------------------------------------
[2008-08-01 15:39:00] alexey at belan dot su
Description:
------------
Attached code causes segmentation fail error in PHP.
Reproduce code:
---------------
<?php
class cABC{
public function url_stat($path, $flags){
return stat($path);
}
}
stream_wrapper_register ('abc', 'cABC');
var_dump(file_exists('abc://non/existant/scheme/url.file'));
?>
Expected result:
----------------
Standart PHP error (warning) expected.
Actual result:
--------------
Crash.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45677&edit=1
Thread (2 messages)