Edit report at https://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:

any interest of getting it fixed?

i could supply patches, if i see any interest at all on this topic from upstream


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to