Bug #19530 [Opn->Csd]: Array to string conversion
| From: | daniel dot oconnor at gmail dot com | Date: | Tue, 23 Oct 2012 02:23:25 +0000 |
| Subject: | Bug #19530 [Opn->Csd]: Array to string conversion | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-9205@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19530&edit=1
ID: 19530
Updated by: daniel.oconnor@gmail.com
Reported By: Fedora at FamilleCollet dot com
Summary: Array to string conversion
-Status: Open
+Status: Closed
Type: Bug
Package: File_Find
Operating System: GNU/Linux (Fedora 16)
Package Version: 1.3.1
PHP Version: 5.4.5
-Assigned To:
+Assigned To: doconnor
Roadmap Versions:
New Comment:
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: doconnor
This bug has been fixed in SVN.
If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).
If this was a problem with the pear.php.net website, the change should
be live shortly.
Otherwise, the fix will appear in the package's next release.
Thank you for the report and for helping us make PEAR better.
Previous Comments:
------------------------------------------------------------------------
[2012-07-27 09:37:56] remicollet
Added #patch bug:19530;patch:File_Find.patch;revision:1343378276;.
------------------------------------------------------------------------
[2012-07-27 09:37:03] remicollet
Description:
------------
Lot of notices as cast
Notice: Array to string conversion in /usr/share/pear/File/Find.php on
line 208
It breaks test suite.
Trivial patch attached solves this issue.
Test script:
---------------
pear run-tests -p File_Find
Expected result:
----------------
Running 7 tests
PASS File_Find::glob()[test/File_Find/tests/01glob.phpt]
PASS File_Find::mapTree()[test/File_Find/tests/02maptree.phpt]
PASS
File_Find::mapTreeMultiple()[test/File_Find/tests/03maptreemultiple.phpt]
PASS File_Find::search()[test/File_Find/tests/04search.phpt]
PASS File_Find::search() inside another
object[test/File_Find/tests/05search_inside.phpt]
PASS File_Find::test 'shell' mode
patterns[test/File_Find/tests/06match_shell.phpt]
PASS File_Find bug #2773[test/File_Find/tests/bug2773.phpt]
TOTAL TIME: 00:02
7 PASSED TESTS
0 SKIPPED TESTS
Actual result:
--------------
Running 7 tests
PASS File_Find::glob()[tests/01glob.phpt]
PASS File_Find::mapTree()[tests/02maptree.phpt]
FAIL File_Find::mapTreeMultiple()[tests/03maptreemultiple.phpt]
PASS File_Find::search()[tests/04search.phpt]
PASS File_Find::search() inside another
object[tests/05search_inside.phpt]
PASS File_Find::test 'shell' mode patterns[tests/06match_shell.phpt]
FAIL File_Find bug #2773[tests/bug2773.phpt]
wrote log to
"/home/extras/BUILD/php-pear-File-Find-1.3.1/File_Find-1.3.1/run-tests.log"
TOTAL TIME: 00:02
5 PASSED TESTS
0 SKIPPED TESTS
2 FAILED TESTS:
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19530&edit=1