php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32373 crash php
Submitted: 2005-03-19 14:28 UTC Modified: 2005-03-19 14:57 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: zxc at zmail dot ru Assigned:
Status: Closed Package: Bzip2 Related
PHP Version: 4.3.10 OS: Windows Xp Pro SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
27 - 21 = ?
Subscribe to this entry?

 
 [2005-03-19 14:28 UTC] zxc at zmail dot ru
Description:
------------
Good morning, I write the small script, but after use it - I have a crash php. I USE AN UNDEFINED VAR ($path) IN PATH TO ARCHIVE FILE (archive.bz2) WITH "/" IN FIRST CHAR IN THE PATH.

Reproduce code:
---------------
<?
$res=bzOpen("/$path/archive.bz2","w");
bzWrite($res,"uncompressed string");
bzClose($res);
?>

Expected result:
----------------
Bzipped2 file /$path/archive.bz2 with compressed string

Actual result:
--------------
I have a crash php

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-19 14:57 UTC] tony2001@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Thanks for reporting this.
Please, supply at least some info next time.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 21:01:27 2024 UTC