ID:               35939
 Updated by:       [EMAIL PROTECTED]
 Reported By:      lynjwxm at hotmail dot com
-Status:           Assigned
+Status:           Feedback
 Bug Type:         SPL related
 Operating System: *
 PHP Version:      5CVS-2006-01-06 (cvs)
 Assigned To:      helly
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

I cannot reproduce this and valgrind doesn't find anything. So please
update to 5.1.2-RC2 and test again. If it still happens send me a
backtrace as explained above.


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

[2006-01-09 09:19:33] [EMAIL PROTECTED]

Marcus, latest CVS does not crash but doesn't give any error either.
Intentional or not?

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

[2006-01-09 09:11:56] lynjwxm at hotmail dot com

Description:
------------
If you give more than one parameters to function
ArrayObject::__construct(),it really crashed.I know I did not use this
function correctly, but I did not expect the segmentation fault. I
expect a warning of uncaught exception not a seg fault.

Reproduce code:
---------------
<?php
$test=array("cat","dog","it","rains");
//try{  //comment exception catcher cause crash.
        $obj=new ArrayObject($test,5);
//}catch(Exception $e)
//{
        echo "exception protect you.\n";;
//}
var_dump($obj);
?>


Expected result:
----------------
anything other than crash

Actual result:
--------------
segmentation fault


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


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

Reply via email to