php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17650 ZTS breaks _php_stream_bz2open()
Submitted: 2002-06-07 22:02 UTC Modified: 2002-06-13 11:07 UTC
From: mfischer@php.net Assigned:
Status: Closed Package: Bzip2 Related
PHP Version: 4.0CVS-2002-06-07 OS: All
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:
45 - 8 = ?
Subscribe to this entry?

 
 [2002-06-07 22:02 UTC] mfischer@php.net
In _php_stream_bz2open right at the top the call to virtual_filepath returns a pointer in path_copy which is efree() a few lines later but needs to be estrdup() before (I think).

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-12 11:41 UTC] andrei@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The path_copy is efree'd because opened_path is NULL, meaning that the caller of the function does not need that result.
 [2002-06-12 12:39 UTC] mfischer@php.net
Not yet ...
 [2002-06-13 11:07 UTC] andrei@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 08:02:42 2024 UTC