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

From: Date: Mon, 08 Oct 2001 14:41:52 +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-67546@lists.php.net to get a copy of this message
ID: 13347 Updated by: sander Reported By: alester@flr.follett.com Old Status: Closed Status: Bogus Bug Type: Scripting Engine problem Operating System: Solaris 7 PHP Version: 4.0.6 Previous Comments: ------------------------------------------------------------------------ [2001-09-17 10:33:51] hholzgra@php.net i get PHP Fatal error: Cannot use [] for reading in - on line 7 what are your error_reporting settings ? ------------------------------------------------------------------------ [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 (#67546) next »