Bug #16159 Updated: script termination without error on $arr[] $var

From: Date: Tue, 19 Mar 2002 03:25:48 +0000
Subject: Bug #16159 Updated: script termination without error on $arr[] $var
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-2820@lists.php.net to get a copy of this message
ID: 16159 Updated by: ketan@audiogalaxy.com Reported By: ketan@audiogalaxy.com Status: Open Bug Type: Scripting Engine problem Operating System: linux PHP Version: 4.1.0 New Comment: The second script should be missing the '=' as in the first one. What I meant is the following: #!/usr/local/bin/php -q <? echo "blah1\n"; $arr[] $key; echo "blah2\n"; ?> Previous Comments: ------------------------------------------------------------------------ [2002-03-18 22:24:11] ketan@audiogalaxy.com The php script below will terminate without printing out any sort of error indicating the problem. There is no HTML output error, nor anything in the apache error log. <? echo "blah1"; $key = "k"; // the line below is bad $arr[] $key; // the line above is bad echo "blah2"; ?> I have duplicated this failure with php 4.0.5 from the command line in the script: #!/usr/local/bin/php -q <? echo "blah1\n"; $arr[] =$key; echo "blah2\n"; ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16159&edit=1

« previous php.bugs (#2820) next »