php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36478 error_log( ), cannot log to file when reaches 2GB. PHP give no responce.
Submitted: 2006-02-21 17:40 UTC Modified: 2006-02-22 11:31 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: uzair at infinilogic dot com Assigned:
Status: Closed Package: *Compile Issues
PHP Version: 4.4.2 OS: Linux 2.4.x
Private report: No CVE-ID: None
 [2006-02-21 17:40 UTC] uzair at infinilogic dot com
Description:
------------
Get a 2GB file in any of your file system say ./iolog-default

then execute the script with php commandline ...

<?
error_log("this is a test message",3,"./iolog-default");
?>

I am using XFS, and checked creating larger files from other programs.

Reproduce code:
---------------
<?
error_log("this is a test message",3,"./iolog-default");
?>


Expected result:
----------------
It should log more then 2GB file .. the OS supports it. I am using XFS, and checked creating larger files from other programs.

Actual result:
--------------
It doesnot log any byte after 2GB file size.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-22 05:00 UTC] judas dot iscariote at gmail dot com
did you recompile PHP with large File support ??

http://php.net/filesystem
 [2006-02-22 11:31 UTC] uzair at infinilogic dot com
Thanks, It worked when php compiled with the following flags to gcc.

-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

I need to understand why the default PHP doesnot compile with large file support, is there any problem doing so ... When PHP is used in production environment nobody can take risk.

Is it fine to deploy PHP with large file support with heavy loaded apache 2.0 ???
Any known problem in that ?

I am closing the bug, but please reply ...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC