ID:               20863
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         Filesystem function related
 Operating System: SuSE 7.3 Pro
 PHP Version:      4CVS-2002-12-06 (stable)
 New Comment:

Does your directory structure you are doing md5s on, have any recursive
symlinks or any symlinks for that matter?


Previous Comments:
------------------------------------------------------------------------

[2002-12-06 12:14:20] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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)?

------------------------------------------------------------------------

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

Reply via email to