php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20679 exit without dump or output after wrong array use (EBCDIC platform)
Submitted: 2002-11-27 11:01 UTC Modified: 2002-11-28 01:56 UTC
From: martin dot kraemer at fujitsu-siemens dot com Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.3.0 OS: several
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: martin dot kraemer at fujitsu-siemens dot com
New email:
PHP Version: OS:

 

 [2002-11-27 11:01 UTC] martin dot kraemer at fujitsu-siemens dot 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-27 11:58 UTC] 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-28 01:56 UTC] martin dot kraemer at fujitsu-siemens dot com
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.
;-)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 04:01:35 2025 UTC