PHP 4.0 Bug #5633: crash on return value of a function (5582 updated seems to be an array pb)

From: Date: Mon, 17 Jul 2000 09:29:34 +0000
Subject: PHP 4.0 Bug #5633: crash on return value of a function (5582 updated seems to be an array pb)
Groups: php.dev 
Request: Send a blank email to php-dev+get-24705@lists.php.net to get a copy of this message
From: administrateur@micro-assist.fr Operating system: win2000 PHP version: 4.0 Latest CVS (17/07/2000) PHP Bug Type: Reproduceable crash Bug description: crash on return value of a function (5582 updated seems to be an array pb) Update of bug 5582 Seems to be arrays problem ! It happens on the return of a function !? Better crash with reurn of NULL values ? An exemple for the good crash: function toto() { global $r; $dd=mssql_fetch_array($r); $dd["titi"]=$dd["riri"]+1; $dd[0]=(($sens!=0)?"na":$dd[0]); return $dd; } ..... connect to a db mssql_connect ..... ..... $qr="SELECT SUM(field2) AS field2 FROM table1"; $r=mssql_query($qr,$iddb); for ($i=0;$i<30;$i++) { $dd1=toto(); $dd0=toto(); //CRASH HERE ............. var_dump($dd1); } echo "ok";

« previous php.dev (#24705) next »