Bug #10395: $array[] with no subscript will not return any data
| From: | roel at 2e-systems dot com | Date: | Thu, 19 Apr 2001 10:21:12 +0000 |
| Subject: | Bug #10395: $array[] with no subscript will not return any data | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51937@lists.php.net to get a copy of this message | ||
From: roel@2e-systems.com
Operating system: Linux
PHP version: 4.0.4pl1
PHP Bug Type:
Bug description: $array[] with no subscript will not return any data
If you try to use an array without a subscript, no data will
be send back to the browser. Netscape will say 'document
contained no data'; Galeon will display an empty page. The
following script illustrates:
*********8<************
Test.
<?php
echo "this is a test: " . $pr[];
?>
*********8<************
This should imo return at least the first line, then 'this
is a test', and then a warning that $pr[] is invalid.
Configure line (although I think it's not relevant):
'./configure' '--enable-track-vars' '--with-mysql'
'--enable-trans-sid'
'--with-apxs=/usr/local/apache/bin/apxs'
'--with-config-file-path=/etc' '--with-mcrypt' '--enable-shmop'
My php.ini is a bit long to paste here, mail me if needed.
--
Edit Bug report at: http://bugs.php.net/?id=10395&edit=1