FAQ
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:

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedOct 23, '12 at 2:23a
activeOct 23, '12 at 2:23a
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase