Bug #13347 Updated: Implode on $foo[] instead of $foo seems to make PHP give up

From: Date: Mon, 17 Sep 2001 14:33:51 +0000
Subject: Bug #13347 Updated: Implode on $foo[] instead of $foo seems to make PHP give up
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-66120@lists.php.net to get a copy of this message
ID: 13347 Updated by: hholzgra Reported By: alester@flr.follett.com Old Status: Open Status: Feedback Bug Type: Compile Failure Operating System: Solaris 7 PHP Version: 4.0.6 New Comment: i get PHP Fatal error: Cannot use [] for reading in - on line 7 what are your error_reporting settings ? Previous Comments: ------------------------------------------------------------------------ [2001-09-17 10:26:01] alester@flr.follett.com Note the implode. $foo[] should be $foo, but PHP doesn't give an error. It just gives no output. I don't find anything in my php.err log, either. #!/usr/local/bin/php -q <?php $foo = Array( "This", "That", "The other" ); print "Before the implode\n"; print implode( ",", $foo[] ); print "\n"; print "After the implode\n"; ?> ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13347&edit=1

« previous php.dev (#66120) next »