Bug #10395 Updated: $array[] with no subscript will not return any data
| From: | hholzgra@php.net | Date: | Thu, 19 Apr 2001 10:51:45 +0000 |
| Subject: | Bug #10395 Updated: $array[] with no subscript will not return any data | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51939@lists.php.net to get a copy of this message | ||
ID: 10395
Updated by: hholzgra
Reported By: roel@2e-systems.com
Old-Status: Open
Status: Closed
Old-Bug Type:
Bug Type: *General Issues
PHP Version: 4.0.4pl1
Assigned To:
Comments:
i get
Fatal error: Cannot use [] for reading ...
you should check your error_reporting settings
Previous Comments:
---------------------------------------------------------------------------
[2001-04-19 06:21:12] roel@2e-systems.com
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.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10395&edit=2