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:
I am unsure as to what is going on. I do not see any symlinks at all
actually.
When I ran the same script with /usr/bin (no sub-direcories in
/usr/bin) it ran fine (slowly, but fine). So this cannot be something
referring to a memory buffer or cache.
It is probably my coding. I appreciate your help very much.
Previous Comments:
------------------------------------------------------------------------
[2002-12-06 12:15:39] iliaa@php.net
Does your directory structure you are doing md5s on, have any recursive
symlinks or any symlinks for that matter?
------------------------------------------------------------------------
[2002-12-06 12:14:20] mike.duncan@sonopress.com
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.
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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