Bug #18350 [Opn->Csd]: _qpReplaceCallback has to be static
| From: | alec at alec dot pl | Date: | Mon, 12 Mar 2012 14:07:36 +0000 |
| Subject: | Bug #18350 [Opn->Csd]: _qpReplaceCallback has to be static | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-8386@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=18350&edit=1
ID: 18350
Updated by: alec@alec.pl
Reported By: db at zigo dot dhs dot org
Summary: _qpReplaceCallback has to be static
-Status: Open
+Status: Closed
Type: Bug
-Package: Mail_Mime
+Package: Mail_Mime2
Operating System: Linux
Package Version: 1.8.1
PHP Version: 5.2.12
-Assigned To:
+Assigned To: alec
Roadmap Versions:
New Comment:
-Status: Open
+Status: Closed
-Package: Mail_Mime
+Package: Mail_Mime2
-Assigned To:
+Assigned To: alec
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.
qpReplaceCallback() method has been marked static in git for Mail_Mime2
package. We cannot do this for Mail_Mime, because it must be PHP4
compatible.
Previous Comments:
------------------------------------------------------------------------
[2011-10-27 11:55:34] dbdb
I've tried a to create a small test case that show the problem but (of
course) it work when I do.
It's only in a very large project at work I've seen it fail and adding
the static keyword and not altering anything else make it work. It must
be something else we we do as well that trigger this bug.
The project at work has lots of error handlers, exception handling and
who knows what else that might affect this.
To me it look like a memory or stack corruption and thus a bug in php
itself.
------------------------------------------------------------------------
[2011-10-14 15:10:33] alec
Would be faster if I could reproduce it. Provide test script, please.
------------------------------------------------------------------------
[2011-10-14 15:07:56] sunmar
Hi,
Got the same issue and the change proposed by dbdb seemed to fix it. I
do seem to notice it triggered when there are 'special' characters
present like the 'o' in "Björklund" that delug provided as example.
Any outlook on when this will be fixed in a stable release?
My error messages are:
[13-Oct-2011 15:01:49] PHP Warning: preg_replace_callback() [<a
href='function.preg-replace-callback'>function.preg-replace-callback</a>]:
Delimiter must not be alphanumeric or backslash in
/usr/share/pear/Mail/mimePart.php on line 1138
[13-Oct-2011 15:01:49] PHP Warning: preg_replace_callback() [<a
href='function.preg-replace-callback'>function.preg-replace-callback</a>]:
No ending delimiter '_' found in /usr/share/pear/Mail/mimePart.php on
line 1138
[13-Oct-2011 15:01:49] PHP Warning: preg_replace_callback() [<a
href='function.preg-replace-callback'>function.preg-replace-callback</a>]:
No ending delimiter ')' found in /usr/share/pear/Mail/mimePart.php on
line 1138
Regards,
Marijn.
------------------------------------------------------------------------
[2011-09-15 14:13:32] belug
Here I have the same bug and the solution given by Dennis Björklund
works for me too.
My version of PHP is 5.2.6-1+lenny9
With some tests i've found that in the subject if i don't have accents
it works perfectly. I have to do french communications so I need accent
in the subject and with the last name of M. Björklund, I think that he
could have some accents too in his subject.
I,ve tryed with UTF-8 or latin encoding of the accents and it does the
same bug.
Thanks Dennis Björklund for the temporary patch. I just hope that
something more permanent could be added to the projet to prevent any
broken code when updating.
Alexandre Lessard.
------------------------------------------------------------------------
[2011-03-10 13:51:58] alec
Strange. Does any of package's test scripts fail in your environment? If
not, could you provide a test script?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=18350
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=18350&edit=1