From: laruence Operating system: PHP version: 5.3.10 Package: Testing related Bug Type: Bug Bug description:three of finfo tests failed
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 bug report at https://bugs.php.net/bug.php?id=61811&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61811&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61811&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61811&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61811&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61811&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61811&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61811&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61811&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61811&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61811&r=support Expected behavior: https://bugs.php.net/fix.php?id=61811&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61811&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61811&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61811&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61811&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61811&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61811&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61811&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61811&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61811&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61811&r=mysqlcfg