php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13347 Implode on $foo[] instead of $foo seems to make PHP give up
Submitted: 2001-09-17 10:26 UTC Modified: 2001-10-08 10:41 UTC
From: alester at flr dot follett dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.0.6 OS: Solaris 7
Private report: No CVE-ID: None
 [2001-09-17 10:26 UTC] alester at flr dot follett dot 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";

?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-17 10:33 UTC] hholzgra@php.net
i get
PHP Fatal error:  Cannot use [] for reading in - on line 7

what are your error_reporting settings ?
 [2001-10-08 10:40 UTC] sander@php.net
No feedback. Unable to reproduce. Probably not a bug. Closed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 23:01:30 2024 UTC