Bug #52078 [Opn]: fileinode overflow test ext/standard/tests/file/fileinode_variation3.phpt

From: Date: Sun, 12 Dec 2010 20:32:28 +0000
Subject: Bug #52078 [Opn]: fileinode overflow test ext/standard/tests/file/fileinode_variation3.phpt
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156936@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52078&edit=1 ID: 52078 User updated by: glen at delfi dot ee Reported by: glen at delfi dot ee Summary: fileinode overflow test ext/standard/tests/file/fileinode_variation3.phpt Status: Open Type: Bug Package: Filesystem function related Operating System: PLD Linux PHP Version: 5.3.2 Block user comment: N Private report: N New Comment: as you maybe have noted, one chunk takes different approach: if (PHP_INT_SIZE == 4) die("skip this test is for >32bit platform only (inodes overflow there)"); maybe should rather skip overflowing tests there? Previous Comments: ------------------------------------------------------------------------ [2010-12-12 21:31:01] glen at delfi dot ee i've kept it somewhat updated here: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php/bug-52078-fileinode.patch ------------------------------------------------------------------------ [2010-06-13 23:38:01] glen at delfi dot ee fix package ------------------------------------------------------------------------ [2010-06-13 23:29:48] glen at delfi dot ee Description: ------------ fileinode overflows on filesystem where inode count is huge. it is mentioned in comment of manual as well: http://php.net/manual/en/function.fileinode.php Test script: --------------- $ (t=mktemp -d; cd $t; php -r 'var_dump(fileinode("."));'; echo $t; ls -ldi $t) int(-2051936757) /home/users/glen/tmp/tmp.zLdoithBR0 2243030539 drwx------ 2 glen users 6 Jun 14 00:26 /home/users/glen/tmp/tmp.zLdoithBR0/ Expected result: ---------------- test must be fixed to expect %i instead of %d. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52078&edit=1

« previous php.bugs (#156936) next »