Bug 2751

Summary: fclose() crashs mod_php3
Product: [Retired] Red Hat Raw Hide Reporter: Jay Freeman <saurik>
Component: mod_php3Assignee: Preston Brown <pbrown>
Severity: high Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-05-26 15:51:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jay Freeman 1999-05-12 01:07:52 UTC
When running the following script:

$fh = fopen( 'myfile', 'w' );
fwrite( $fh, 'ttt', 3 );
fclose( $fh );

:the file is updated, but no data is returned to the client,
and the following error message is logged to apache's main
error log:

[Tue May 11 20:04:25 1999] [notice] child pid 24123 exit
signal Segmentation fault (11)

If the fclose() line is commented out, it executes
without error and sends "TTT" to the client.

(I've never used PHP3 before today, so I might have totally
missed something, found this while trying to get IMP (a
webbased IMAP client written in PHP3) to work.)

Comment 1 Jay Freeman 1999-05-23 15:10:59 UTC
PHP 3.0.8 was just released yesterday which includes "a number of bug
fixes, including glibc-2.1 related issues that caused previous
versions not to work with RedHat 6.0." :)

Comment 2 Preston Brown 1999-05-26 15:45:59 UTC
There will shortly be a update RPM of PHP 3.0.8 available for Red Hat
Linux 6.0 which will fix this and other issues.