#20679 [Fbk->Csd]: exit without dump or output after wrong array use (EBCDIC platform)
| From: | martin dot kraemer at fujitsu-siemens dot com | Date: | Thu, 28 Nov 2002 07:56:29 +0000 |
| Subject: | #20679 [Fbk->Csd]: exit without dump or output after wrong array use (EBCDIC platform) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26036@lists.php.net to get a copy of this message | ||
ID: 20679
User updated by: martin.kraemer@fujitsu-siemens.com
-Summary: exit without dump or output after wrong array use
-Reported By: martin@php.net
+Reported By: martin.kraemer@fujitsu-siemens.com
-Status: Feedback
+Status: Closed
-Bug Type: Arrays related
+Bug Type: Unknown/Other Function
Operating System: several
-PHP Version: 4.2.3
+PHP Version: 4.3.0
New Comment:
Blush - Sorry, bad testing on my side. Actually, it behaves
like described only in *EBCDIC* versions of both php-4.0.5
and php-4.3.0-dev (and not in ASCII versions, I just checked).
And because I think I'm the only person currently porting
php4 to an EBCDIC machine, it's my own b100dy job to fix it.
;-)
Previous Comments:
------------------------------------------------------------------------
[2002-11-27 11:58:30] derick@php.net
It works 'fine' here:
[derick@kossu derick]$ php
<?php
$i = count($this->aliases[]);
Fatal error: Cannot use [] for reading in - on line 2
-(2) : Fatal error - Cannot use [] for reading
Can you provide us a piece of code which we can copy& paste?
Derick
------------------------------------------------------------------------
[2002-11-27 11:01:37] martin.kraemer@fujitsu-siemens.com
Inadvertently, I used code like this:
$i = count($this->aliases[]);
within a cfunction. Note the incorrect use of extra [] which
should have read count($this->aliases).
The effect is that the php request bails out with a zero
byte response, without producing any error message or dump.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20679&edit=1