filetype() and exec() issues
| From: | dev at edoceo dot com | Date: | Tue, 24 Apr 2007 01:05:56 +0000 |
| Subject: | filetype() and exec() issues | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-253552@lists.php.net to get a copy of this message | ||
This question is a two parter....
a) anyone else noticing filetype() failing on ISO image files?
Warning: filetype(): Lstat failed for /var/lib/samba/some/file.iso
b) I have a script that during processing will eventually call
exec('/usr/bin/file -bi '.$file)
over 1000 times, I've added a counter and when it dies on this line it's
always after 1020 exec calls, regardless of the file name I'm feeding to
file. I've reproduced this with both exec, shell_exec, system and the
backticks. What am I missing here?
My System:
Linux carbon 2.6.18-gentoo-r3
PHP 5.2.1-pl3-gentoo (cli) (built: Apr 19 2007 00:42:03)
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
/djb