Bug #17844 [Opn->Ver]: Regression detected in parse_header_value.phpt
| From: | daniel dot oconnor at gmail dot com | Date: | Sun, 05 Sep 2010 04:26:22 +0000 |
| Subject: | Bug #17844 [Opn->Ver]: Regression detected in parse_header_value.phpt | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-4772@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=17844&edit=1
ID: 17844
Updated by: daniel.oconnor@gmail.com
Reported By: Fedora at FamilleCollet dot com
Summary: Regression detected in parse_header_value.phpt
-Status: Open
+Status: Verified
Type: Bug
Package: Mail_mimeDecode
Operating System: GNU/Linux (Fedora 13)
Package Version: 1.5.2
PHP Version: 5.3.3
Roadmap Versions:
New Comment:
-Status: Open
+Status: Verified
Drat, the unit tests on the CI box are cactus.
http://test.pear.php.net:8080/cruisecontrol/buildresults/Mail_Mime
However, running this locally shows the test already failing.
svn mkdir Mail
svn mv mime*php Mail/
pear run-tests -r tests/
...
2 FAILED TESTS:
/media/Elements_/backup/home/clockwerx/pear/Mail_Mime/trunk/tests/parse_header_value.phpt
/media/Elements_/backup/home/clockwerx/pear/Mail_Mime/trunk/tests/semicolon_content_type_bug1724.phpt
Previous Comments:
------------------------------------------------------------------------
[2010-09-04 07:42:21] remicollet
Added #patch bug:17844;patch:regex-quote.patch;revision:1283586141;.
------------------------------------------------------------------------
[2010-09-04 07:41:46] remicollet
Description:
------------
The new regex breaks the test provided.
In the attached patch I have try to
- improve readability of regex (less \)
- fix starting quote detection ([^;"\']*["])
- improve needed merge matches detection
- ads some tests
Test script:
---------------
$ pear run-tests -p Mail_mimeDecode
Expected result:
----------------
2 PASSED TESTS
Actual result:
--------------
1 PASSED TESTS
0 SKIPPED TESTS
1 FAILED TESTS:
$ cat parse_header_value.diff
009- [testparam7] => seven;7
009+ [testparam7] => seven
010- [testparam8] => eight;8
010+ [] =>
011- )
011+ [testparam8] => eight;8
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=17844&edit=1