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

From: Date: Tue, 05 Sep 2000 00:40:21 +0000
Subject: PHP 4.0 Bug #5633 Updated: 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-32020@lists.php.net to get a copy of this message
ID: 5633 Updated by: sniper Reported By: administrateur@micro-assist.fr Status: Feedback Bug Type: MSSQL related Assigned To: Comments: Is this still happening with php4.0.2 (or latest CVS) ?? --Jani Previous Comments: [2000-08-06 18:57:53] stas@php.net reclassify --------------------------------------------------------------------------- [2000-07-17 05:29:34] administrateur@micro-assist.fr 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"; --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=5633

« previous php.dev (#32020) next »