php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23201 set_file_buffer crashes Apache
Submitted: 2003-04-14 08:15 UTC Modified: 2003-04-14 20:35 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: gfraley5 at earthlink dot net Assigned: wez (profile)
Status: Closed Package: Filesystem function related
PHP Version: 4.3.2RC1 OS: Win32 and Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gfraley5 at earthlink dot net
New email:
PHP Version: OS:

 

 [2003-04-14 08:15 UTC] gfraley5 at earthlink dot net
The set_file_buffer() and stream_set_write_buffer (in 4.3.2 RC's and CVS) crashes Apache 1.3.27.  This code, when executed in 4.3.1 and prior, does not crash Apache.

<?
$file = '/web/somefile';
$csv_buffer_size = 9192;
echo 'file exists ? '.file_exists($file);
echo '<br />';
$fp = fopen($file,'w') or die('Unable to access file: '.$file);
set_file_buffer($fp,$csv_buffer_size);
?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-14 20:35 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, 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/.
 
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 in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 02:01:28 2024 UTC