ID: 20863
Comment by: mike.duncan@sonopress.com
Reported By: mike.duncan@sonopress.com
Status: Feedback
Bug Type: Filesystem function related
Operating System: SuSE 7.3 Pro
PHP Version: 4CVS-2002-12-06 (stable)
New Comment:
This is running as a script, from a shell (i.e. #!/usr/local/bin/php);
not as a web app. We are trying to create a script that (scheduled from
cron) will create MD5 for all files for a type of tracking system.
Previous Comments:
------------------------------------------------------------------------
[2002-12-06 12:08:31] mike.duncan@sonopress.com
I added error_reporting(E_ALL) and got no errors or warnings. I
actually do not get anything but the expected output...
/home/webdev/$dir/$file : $md5
...unless I change the md5 calculation to that of the binary one here:
http://www.php.net/manual/en/function.md5-file.php.
Then I get a
FATAL: emalloc() Could not allocate xxxxx bytes.
But this is not how I run this script. I always use the md5_file() or
exec() functions to calc. the MD5 of the file.
Other than the expected output, with or without E_ALL set, I get
nothing, hanging after about 20 or so md5 calculations.
Can you reproduce this when you copy+paste this and run it?
------------------------------------------------------------------------
[2002-12-06 11:45:50] iliaa@php.net
Could you please remove the @ from your script, which block error
message and set error repoting level to E_ALL.
Please include any warning messages in your reply.
------------------------------------------------------------------------
[2002-12-06 11:41:52] mike.duncan@sonopress.com
I also tried adding ini_set("max_execution_time", "180") to the script
and it changed nothing. Just to make sure it was not hitting this limit
too.
------------------------------------------------------------------------
[2002-12-06 11:38:07] mike.duncan@sonopress.com
I do not have this enabled. My configure line looks like so:
./configure --enable-ftp --with-ldap=/usr/local/openldap
--with-mysql=/usr --with-openssl=/usr/local/openssl
I thought for the memory_limit directive to take effect would mean I
would to have had to add --enable-momory-limit to the configuration.
Has this changed recently (i.e. >= 4.2.1)?
------------------------------------------------------------------------
[2002-12-06 11:06:46] iliaa@php.net
Does your PHP have a memory limit?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20863--
Edit this bug report at http://bugs.php.net/?id=20863&edit=1