Date: 01/25/01
- Next message: Vibol Hou: "RE: [phplib] URGENT: Crosslinked sessions between MS IE4.01 users"
- Previous message: Todd Wyatt: "[phplib] Problems with PHP 4.0.4, template.inc, and the modified preg_replace()"
- In reply to: Todd Wyatt: "[phplib] Problems with PHP 4.0.4, template.inc, and the modified preg_replace()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I encountered it on 12/20 and reported it as a PHP bug. See:
http://bugs.php.net/bugs.php?id=8339
There was also a little discussion on this list regarding that
issue. See:
http://marc.theaimsgroup.com/?l=phplib&m=97733249324120&w=2
You can follow the thread using the above website.
I haven't had time to download and test the CVS version of
PHP which supposedly fixes this problem. Regardless, the
explanation in the bug seems to indicate that we will need
to somehow escape data before passing it through to the
template.
-- Padraic Renaghan /pad-rik ren-a-han/ padraic <email protected> AOL IM(gaim): PadraicRenaghan http://renaghan.com/pcr/* Todd Wyatt <wyatt <email protected>> [Jan 25 4:04pm]: > Sorry for the semi-offtopic-ness, I know PHPlib is not officially written > for PHP4. I've been using these amazing libraries for over 2 years now, > and never had an issue until now. > > Apparently the PHP development team has modified the preg_replace() > function in PHP4.0.4 to support perl back-references... i.e. using $1 $2, > etc, to refer to matched patterns. > > Well thats fine and dandy, but now my content which is served using the > template class happens to contain text like "$50.00". The preg_replace > function is wiping out my content, and I'm left with ".00" instead of "$50.00". > > Anyway... I've gone back to using PHP 4.0.3 for obvious reasons. I've > searched for people having the same difficulty, as well as trying to escape > the values myself before they get preg'd (using the preg_quote function, > for example). No luck. :( > > Has anyone else encountered this problem? > Any help appreciated! > > Todd Wyatt
--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Vibol Hou: "RE: [phplib] URGENT: Crosslinked sessions between MS IE4.01 users"
- Previous message: Todd Wyatt: "[phplib] Problems with PHP 4.0.4, template.inc, and the modified preg_replace()"
- In reply to: Todd Wyatt: "[phplib] Problems with PHP 4.0.4, template.inc, and the modified preg_replace()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

