#27421 [Com]: mbstring.func_overload set in .htaccess becomes global
From: future at shiny dot co dot il Date: Tue, 10 Jun 2008 08:39:42 +0000 Subject: #27421 [Com]: mbstring.func_overload set in .htaccess becomes global References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-125631@lists.php.net to get a copy of this message
ID: 27421 Comment by: future at shiny dot co dot il Reported By: php at strategma dot bg Status: Assigned Bug Type: mbstring related Operating System: Slackware 9.1 kernel: 2.4.22 PHP Version: 4.3.4 Assigned To: hirokawa New Comment: Oops, my mistake. David's patch DOES solve the issue. (I just forgot to rebuild the module :) Previous Comments: ------------------------------------------------------------------------ [2008-06-10 02:10:56] future at shiny dot co dot il David, unfortunately your patch doesn't seem to solve the problem. Furthermore, on my system, strlen never seems to be overridden (mb_orig_strlen never exists) while substr always remains overridden (mb_orig_substr always exists). Are you sure this shutdown sequence is even being run? ------------------------------------------------------------------------ [2008-03-19 18:37:03] felipe@php.net Assigned to maintainer. ------------------------------------------------------------------------ [2008-03-19 18:28:25] david at dfoerster dot de > It is not recommended to use the function overloading option in > the per-directory context, because it's not confirmed yet to be > stable enough in a production environment and may lead to > undefined behaviour. Once the patch is applied this notice can probably be removed from the documentation. ------------------------------------------------------------------------ [2008-03-19 18:08:46] david at dfoerster dot de Hi, this patch fixes the problem (didn't find a way to attach a patch here): http://www.dfoerster.de/misc/php-27421.diff The problem was that the while loop in PHP_RSHUTDOWN_FUNCTION would terminate on the first function that was not overloaded. With a settin of 2, the str* functions would never be restored, because the mail function was not overloaded. The patch changes the behaviour to be similar to the loop in PHP_RINIT_FUNCTION. ------------------------------------------------------------------------ [2008-03-15 13:41:58] rnbarra at yaho dot copm sopa ------------------------------------------------------------------------ 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://bugs.php.net/27421 -- Edit this bug report at http://bugs.php.net/?id=27421&edit=1
Thread (28 messages)
- #27421 [Opn->Csd]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Csd->Fbk]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Fbk->Csd]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Csd->Fbk]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Fbk->NoF]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- #27421 [NoF]: mbstring.func_overload set in .htaccess becomes global
- #27421 [NoF->Asn]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Asn->Opn]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Opn->Asn]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Asn->Fbk]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- #27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- #27421 [NoF->Csd]: mbstring.func_overload set in .htaccess becomes global
| « previous | php.bugs (#125631) | next » |
|---|