#23201 [NEW]: set_file_buffer crashes Apache
| From: | gfraley5 at earthlink dot net | Date: | Mon, 14 Apr 2003 13:15:06 +0000 |
| Subject: | #23201 [NEW]: set_file_buffer crashes Apache | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-37641@lists.php.net to get a copy of this message | ||
From: gfraley5 at earthlink dot net
Operating system: Win32 and Linux
PHP version: 4.3.2RC1
PHP Bug Type: Filesystem function related
Bug description: set_file_buffer crashes Apache
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);
?>
--
Edit bug report at http://bugs.php.net/?id=23201&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23201&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23201&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23201&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23201&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23201&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23201&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23201&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23201&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23201&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23201&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23201&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23201&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23201&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23201&r=gnused