php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36 Win32 binary GPF's when using an empy array
Submitted: 1998-02-04 21:49 UTC Modified: 1998-02-24 13:44 UTC
From: a dot hacker at clear dot net dot nz Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0b4 OS: Win95
Private report: No CVE-ID: None
 [1998-02-04 21:49 UTC] a dot hacker at clear dot net dot nz
The latest Win32 compile dies when running a script which includes an empty array err thing :)
This does it

<?
$crashme[] = file("text.txt");
?>

and so does this
<?
$crashme[] = count($filename);
?>

But just using $crashme works fine.

I picked these up when porting Travis Ortlieb's live chat script to PHP3. I can forward the GPF message through if required.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-24 13:44 UTC] shane
I just checked this.  It has either been fixed, or is not reproducable.

Shane

 [2010-10-14 08:12 UTC] cataphract@php.net
Automatic comment from SVN on behalf of cataphract
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=304388
Log: - Warn that using the ENT_IGNORE flag in htmlentities/htmlspecialchars may introduce security
  vulnerabilities. See Unicode Technical Report #36, section 3.6.2.
 [2020-02-06 14:22 UTC] nikic@php.net
Automatic comment from SVN on behalf of nikic
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=349153
Log: Remove the incorrect pattern &quot;...&quot; in glob()

Patch by colshrapnel.

Closes php/doc-en#36.
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Feb 01 18:03:56 2023 UTC