Date: 01/25/01
- Next message: Padraic Renaghan: "Re: [phplib] Problems with PHP 4.0.4, template.inc, and the modified preg_replace()"
- Previous message: Andy Worthington: "[phplib] session mysql error message"
- Next in thread: Padraic Renaghan: "Re: [phplib] Problems with PHP 4.0.4, template.inc, and the modified preg_replace()"
- Reply: Padraic Renaghan: "Re: [phplib] Problems with PHP 4.0.4, template.inc, and the modified preg_replace()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
...................................................................
Todd Wyatt
www.universal-net.com
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Padraic Renaghan: "Re: [phplib] Problems with PHP 4.0.4, template.inc, and the modified preg_replace()"
- Previous message: Andy Worthington: "[phplib] session mysql error message"
- Next in thread: Padraic Renaghan: "Re: [phplib] Problems with PHP 4.0.4, template.inc, and the modified preg_replace()"
- Reply: Padraic Renaghan: "Re: [phplib] Problems with PHP 4.0.4, template.inc, and the modified preg_replace()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

