Edit report at https://bugs.php.net/bug.php?id=61811&edit=1

 ID:                 61811
 Comment by:         larue...@php.net
 Reported by:        larue...@php.net
 Summary:            three of finfo tests failed
 Status:             Open
 Type:               Bug
 Package:            Testing related
 PHP Version:        5.3.10
 Block user comment: N
 Private report:     N

 New Comment:

the first failed was fixed,  see #61812


Previous Comments:
------------------------------------------------------------------------
[2012-04-22 11:14:38] larue...@php.net

Description:
------------
FAILED TEST SUMMARY
---------------------------------------------------------------------
Test finfo_file() function : basic functionality 
[ext/fileinfo/tests/finfo_file_basic.phpt]
finfo_open(): Testing magic_file names [ext/fileinfo/tests/finfo_open_001.phpt]
Test finfo_open() function : error functionality 
[ext/fileinfo/tests/finfo_open_error.phpt]

ext/fileinfo/tests/finfo_file_basic.log:

---- EXPECTED OUTPUT
*** Testing finfo_file() : basic functionality ***
string(28) "text/x-php; charset=us-ascii"
string(22) "PHP script, ASCII text"
string(32) "text/plain; charset=unknown-8bit"
===DONE===
---- ACTUAL OUTPUT
*** Testing finfo_file() : basic functionality ***
string(28) "text/x-php; charset=us-ascii"
string(14) "PHP script, , "
string(32) "text/plain; charset=unknown-8bit"
===DONE===
---- FAILED




ext/fileinfo/tests/finfo_open_001.log

---- EXPECTED OUTPUT
Warning: finfo_open() expects parameter 2 to be a valid path, string given in 
%s 
on line %d
bool(false)
resource(%d) of type (file_info)
resource(%d) of type (file_info)

Warning: finfo_open(%s123): failed to open stream: No such file or directory in 
%s on line %d

Warning: finfo_open(%s123): failed to open stream: No such file or directory in 
%s on line %d

Warning: finfo_open(): Failed to load magic database at '%s123'. in %s on line 
%d
bool(false)

Warning: finfo_open(%s1): failed to open stream: No such file or directory in 
%s 
on line %d

Warning: finfo_open(%s1): failed to open stream: No such file or directory in 
%s 
on line %d

Warning: finfo_open(): Failed to load magic database at '%s1'. in %s on line %d
bool(false)

Warning: finfo_open(%sinexistent): failed to open stream: No such file or 
directory in %s on line %d

Warning: finfo_open(%sinexistent): failed to open stream: No such file or 
directory in %s on line %d

Warning: finfo_open(): Failed to load magic database at '%sinexistent'. in %s 
on 
line %d
bool(false)
---- ACTUAL OUTPUT
Warning: finfo_open(): Failed to load magic database at ''. in 
/home/huixinchen/opensource/php-5.3/ext/fileinfo/tests/finfo_open_001.php on 
line 3
bool(false)
resource(4) of type (file_info)
resource(5) of type (file_info)
bool(false)
bool(false)
bool(false)
---- FAILED




ext/fileinfo/tests/finfo_open_error.log:

---- EXPECTED OUTPUT
*** Testing finfo_open() : error functionality ***

Warning: finfo_open(%sfoobarfile): failed to open stream: No such file or 
directory in %s on line %d

Warning: finfo_open(%sfoobarfile): failed to open stream: No such file or 
directory in %s on line %d

Warning: finfo_open(): Failed to load magic database at '%sfoobarfile'. in %s 
on 
line %d
bool(false)

Warning: finfo_open() expects parameter 1 to be long, array given in %s on line 
%d
bool(false)

Warning: finfo_open() expects at most 2 parameters, 3 given in %s on line %d
bool(false)

Notice: finfo_open(): Warning: using regular magic file `%s' in %s on line %d
resource(%d) of type (file_info)

Warning: finfo_open() expects parameter 1 to be long, string given in %s on 
line 
%d
bool(false)

Warning: finfo::finfo() expects parameter 1 to be long, string given in %s on 
line %d
NULL
===DONE===
---- ACTUAL OUTPUT
*** Testing finfo_open() : error functionality ***
bool(false)

Warning: finfo_open() expects parameter 1 to be long, array given in 
/home/huixinchen/opensource/php-5.3/ext/fileinfo/tests/finfo_open_error.php on 
line 13
bool(false)

Warning: finfo_open() expects at most 2 parameters, 3 given in 
/home/huixinchen/opensource/php-5.3/ext/fileinfo/tests/finfo_open_error.php on 
line 14
bool(false)

Notice: finfo_open(): Warning: using regular magic file 
`/home/huixinchen/opensource/php-5.3/ext/fileinfo/tests/magic' in 
/home/huixinchen/opensource/php-5.3/ext/fileinfo/tests/finfo_open_error.php on 
line 15
resource(6) of type (file_info)

Warning: finfo_open() expects parameter 1 to be long, string given in 
/home/huixinchen/opensource/php-5.3/ext/fileinfo/tests/finfo_open_error.php on 
line 16
bool(false)

Warning: finfo::finfo() expects parameter 1 to be long, string given in 
/home/huixinchen/opensource/php-5.3/ext/fileinfo/tests/finfo_open_error.php on 
line 18
NULL
===DONE===
---- FAILED



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=61811&edit=1

Reply via email to