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

From: Date: Tue, 17 Jan 2012 10:18:51 +0000
Subject: Bug #52078 [Opn->Asn]: fileinode overflow test ext/standard/tests/file/fileinode_variation3.phpt
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-166530@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=52078&edit=1 ID: 52078 Updated by: tyrael@php.net Reported by: glen at delfi dot ee Summary: fileinode overflow test ext/standard/tests/file/fileinode_variation3.phpt -Status: Open +Status: Assigned Type: Bug Package: Filesystem function related Operating System: PLD Linux PHP Version: 5.3.2 -Assigned To: +Assigned To: tyrael Block user comment: N Private report: N New Comment: I will look into merging this, thanks for the patch and the heads up. Previous Comments: ------------------------------------------------------------------------ [2011-11-05 20:49:17] glen at delfi dot ee any interest of getting it fixed? i could supply patches, if i see any interest at all on this topic from upstream ------------------------------------------------------------------------ [2010-12-12 21:32:27] glen at delfi dot ee 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? ------------------------------------------------------------------------ [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 https://bugs.php.net/bug.php?id=52078&edit=1

« previous php.bugs (#166530) next »