For Programmers: Free Programming Magazines  


Home > Archive > PHP Questions and Answers > August 2007 > Re: [PHP-QA] Darwin Kernel Version 8.10.1 test failures (Was: [PHP-QA] Test results f









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-QA] Darwin Kernel Version 8.10.1 test failures (Was: [PHP-QA] Test results f
Hannes Magnusson

2007-08-14, 6:58 pm

Hi

I don't have access to MacOSX box either.
You could try contacting the person who sent the results (his mail is
listed somewhere around the "build environment" section.

I could possibly get my hands on MacOSX intel box though.. I'll check
later today.

-Hannes

On 8/14/07, Raghubansh <softvirus@gmail.com> wrote:
> Hi Hannes Magnusson,
>
> Thank you for writing back, I did a quick analysis for few of the testcas=

es :
> 1.ext/standard/tests/file/readlink_realpath_basic1.phpt
> ext/standard/tests/file/readlink_realpath_variation1.phpt
> ext/standard/tests/file/readlink_realpath_variation2.phpt
>
> Failure of above three testcases are similar and there is a defect for th=

ese raised by already: bug#42038.
> http://bugs.php.net/bug.php?id=3D42038
>
> 2. Failure of ext/standard/tests/file/symlink_link_linkinfo_is_link_varia=

tion6.phpt is genuine. I did write about it sometime back on php-qa list bu=
t didn't get any response(dated : 13th July). May be i should raise the def=
ect.
> The failure indicates that a link is created in the dir which has its acc=

ess permission set to 0000.
> I do not have access to an MACOS system. If you have one, you might try t=

he sample code given below which is doing something similar to that of syml=
ink_link_linkinfo_is_link_variation6.phpt to just confirm the failure.
>
> <?php
> $file_path =3D dirname(__FILE__);
> $dirname =3D "$file_path/tempdir";
> mkdir($dirname);
>
> $filename =3D "$dirname/tempfile.tmp";
> $fp =3D fopen($filename, "w");
>
> var_dump( chmod($dirname, 0000) );
> echo substr(sprintf('%o', fileperms($dirname)), -3);
>
> $linkname =3D "$dirname/templink.tmp";
>
> var_dump( symlink($filename, $linkname) );
> var_dump( file_exists($linkname) );
> var_dump( file_exists($filename) );
>
> chmod($dirname, 0777); // to enable dir deletion
> unlink($filename);
> rmdir($dirname);
> ?>
>
> Expected output:
> ----------------
> bool(true)
> 000
> Warning: symlink(): Permission denied in %s on line %d
> bool(false)
> bool(false)
> bool(false)
>
> Rest of failure, listed below, we are analyzing and will revert back at e=

arliest.
> Test copy() function: usage variations - dir as source (Bug #42111) [ext/=

standard/tests/file/copy_variation12.phpt]
>
> Test copy() function: usage variations - destination dir access perms [ex=

t/standard/tests/file/copy_variation15.phpt]
> Test copy() function: usage variations - destination file names(empty str=

ing, nulls & bools) [ext/standard/tests/file/copy_variation4.phpt]
>
> Test copy() function: usage variations - destination file names(case sens=

itive) [ext/standard/tests/file/copy_variation5.phpt]
> Test copy() function: usage variations - destination file access perms [e=

xt/standard/tests/file/copy_variation9.phpt]
>
> Test fgetcsv() : usage variations - reading the blank line (Bug #42228) [=

ext/standard/tests/file/fgetcsv_variation14.phpt]
> Test fgetcsv() : usage variations - with length as 0 (Bug #42175) [ext/st=

andard/tests/file/fgetcsv_variation2.phpt]
>
> Test fgetcsv() : usage variations - with default enclosure, file pointer =

pointing at end of file (Bug #42175) [ext/standard/tests/file/fgetcsv_varia=
tion22.phpt]
> Test fgetcsv() : usage variations - with only file handle as argument, fi=

le pointer pointing at end of file (Bug #42175) [ext/standard/tests/file/fg=
etcsv_variation29.phpt]
>
> Test fgetcsv() : usage variations - with file handle and length, file poi=

nter pointing at end of file (Bug #42175) [ext/standard/tests/file/fgetcsv_=
variation30.phpt]
> Test fgetcsv() : usage variations - with length and enclosure, file point=

er pointing at end of file (Bug #42175) [ext/standard/tests/file/fgetcsv_va=
riation31.phpt]
>
> Test fileowner() function: basic functionality [ext/standard/tests/file/f=

ileowner_basic.phpt]
> Test lstat() and stat() functions: usage variations - effects of touch() =

on link [ext/standard/tests/file/lstat_stat_variation6.phpt]
>
> Test unlink() function : usage variations - unlinking file in a directory=

[ext/standard/tests/file/unlink_variation1.phpt]
> with Regards,
> Raghubansh
>
> On 8/14/07, Hannes Magnusson <hannes.magnusson@gmail.com> wrote:
o it?[color=darkred]
=3D=3D=3D=3D=3D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color=darkred]
OSE.[color=darkred]
>
>
>
> --
> with Regards,
> Raghubansh

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com