ID: 27765 Updated by: [EMAIL PROTECTED] Reported By: chris at root dot pl Status: Bogus Bug Type: Directory function related Operating System: Linux 2.4.25 SMP PHP Version: 4.3.4 New Comment:
As Ilia has already said: "Your libc cannot handle files that big and throws the error you are seeing. This is not a PHP bug." Previous Comments: ------------------------------------------------------------------------ [2004-10-18 10:52:23] honza at crusty dot cz I'm sorry. I have forgotten the environment ;o) [EMAIL PROTECTED] backup]# uname -a Linux aries.web4ce.cz 2.6.3-4mdksecure #1 SMP Tue Mar 2 06:52:26 CET 2004 i686 unknown unknown GNU/Linux [EMAIL PROTECTED] backup]# php -v PHP 4.3.8 (cli) (built: Aug 12 2004 09:50:49) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies ------------------------------------------------------------------------ [2004-10-18 10:51:15] honza at crusty dot cz Description: When I call is_file function on file of the size mentioned here, I get the error message: Warning: is_file(): Stat failed for /home/backup/system20041017231530.tar (errno=75 - Value too large for defined data type) in /home/backup/backup.php on line 134 Reproduce code: [EMAIL PROTECTED] backup]# cat test.php #!/usr/bin/php <?php is_file('system20041017231530.tar') ? print("Yes, it's a regular file.\n") : print("Nope, it\'s something else.\n"); ?> Output: [EMAIL PROTECTED] backup]# ./test.php Warning: is_file(): Stat failed for system20041017231530.tar (errno=75 - Value too large for defined data type) in /home/backup/test.php on line 3 Nope, it\'s something else. [EMAIL PROTECTED] backup]# ll system20041017231530.tar -rw-r--r-- 1 root root 2468331520 � 17 23:21 system20041017231530.tar ------------------------------------------------------------------------ [2004-03-30 08:41:14] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Your libc cannot handle files that big and throws the error you are seeing. This is not a PHP bug. ------------------------------------------------------------------------ [2004-03-29 17:59:56] chris at root dot pl Description: ------------ when I make is_dir function of file which has about 4gb (DVD ISO), then PHP makes an error: Warning: is_dir(): Stat failed for /var/ftp/public/filest_dvd.iso (errno=75 - Value too large for defined data type) in /var/htdocs/html/akacjenet/include/addons/ftpfiles.inc on line 17 Reproduce code: --------------- it doesn't matter Expected result: ---------------- i want to know is that file is a file or a directory... I have a small script for catalogue ftp content into mysql database Actual result: -------------- Warning: is_dir(): Stat failed for /var/ftp/public/filest_dvd.iso (errno=75 - Value too large for defined data type) in /var/htdocs/html/akacjenet/include/addons/ftpfiles.inc on line 17 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27765&edit=1