|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-09 09:19 UTC] sniper@php.net
[2006-01-09 20:46 UTC] helly@php.net
[2006-01-10 07:11 UTC] lynjwxm at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 08:00:01 2025 UTC |
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