#35939 [Opn->Asn]: SPL ArrayObject segmentation fault when more than one parameters passed

From: Date: Mon, 09 Jan 2006 08:19:34 +0000
Subject: #35939 [Opn->Asn]: SPL ArrayObject segmentation fault when more than one parameters passed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-91672@lists.php.net to get a copy of this message
ID: 35939 Updated by: sniper@php.net Reported By: lynjwxm at hotmail dot com -Status: Open +Status: Assigned -Bug Type: Reproducible crash +Bug Type: SPL related -Operating System: redhat linux +Operating System: * -PHP Version: 5.1.1 +PHP Version: 5CVS-2006-01-06 (cvs) -Assigned To: +Assigned To: helly New Comment: Marcus, latest CVS does not crash but doesn't give any error either. Intentional or not? Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#91672) next »