RE: [PHP] New Member: PHP 4 bug?
| From: | Maxim Maletsky | Date: | Tue, 12 Sep 2000 09:52:13 +0000 |
| Subject: | RE: [PHP] New Member: PHP 4 bug? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-16313@lists.php.net to get a copy of this message | ||
I had the same thing, when I tried to use Perl RegExpressions it often
didn't work in PHP(4)
Pls. Tell me if you'll find out the answers like what to use instead if it's
not allowed at all..
Good Luck!
-----Original Message-----
From: Ernst de Moor [mailto:ernst@creagraphy.nl]
Sent: Tuesday, September 12, 2000 6:20 PM
To: php-general@lists.php.net
Subject: [PHP] New Member: PHP 4 bug?
Hi all,
I have no idea how big this list is, or it's technical level, but as I have
a question I thought it would be nice to start
introducing myself.
Having a technical background, I do some web development, and recently
started using php to automate some of the web tasks. I do
have a small LinuxPPC machine at home to do the development, and we do
support several websites at our production webserver (Redhat
Linux) for a few clients.
At the server we have PHP 4.0.1 pl2, at the development server I do have PHP
3.0.12.
I developed a small program that works fine at the development server, but
not at the production server. Specifically the statement:
ereg_replace("\W", "_", $id); seems to be not processed at all (meaning:
replace all non alphanumeric characters by an underscore).
Other ereg_replace calls are processed correctly on both servers.
Does anybody know why PHP 3.0.12 processes this correctly and PHP 4.0.1 pl2
doesn't? Is this a bug?
Thanks in advance,
Ernst de Moor (the Netherlands)
---
If you have a spare minute or two:
http://www.creagraphy.com
Als U een momentje of twee over heeft:
http://www.creagraphy.nl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net