Re: undefined function preg_replace()



pp wrote:

Hi,

I got a problem with calling preg_replace() in php5.2
The system s running a FreeBSD 6.2.
I installed php5 first, then compiled php5-xxxx extensions one-by-one
from the ports.
Here is what I have installed:
# pkg_info | grep -i php
adodb-4.80 Database library for PHP
php5-5.2.0 PHP Scripting Language (Apache Module and CLI)
php5-gettext-5.2.0 The gettext shared extension for php
php5-mbstring-5.2.0 The mbstring shared extension for php
php5-mhash-5.2.0 The mhash shared extension for php
php5-mysql-5.2.0 The mysql shared extension for php
php5-openssl-5.2.0 The openssl shared extension for php
php5-pcre-5.2.0 The pcre shared extension for php
php5-pgsql-5.2.0 The pgsql shared extension for php
php5-session-5.2.0 The session shared extension for php
php5-xml-5.2.0 The xml shared extension for php
phppgadmin-4.0.1 Web Based Postgres Administration


the php5-pcre extension is already here. why my php script still giving
the undefined preg_replace() error?

Thanks
S

Just a wild guess before I run off to work, but do you have the pcre port
installed? I'm behind in my upgrading and still using php-5.2.1 and pcre
7.0 here. Currently they are up to php-5.2.2 and pcre 7.1. Time for a
portupgrade run here real soon - :-)

-Jason

.



Relevant Pages

  • Upgrading 5.3 > 6.0 buildworld failure in libkrb5
    ... gnomelibs-1.4.2_3 Libraries for GNOME, a GNU desktop environment ... kdeaccessibility-3.4.3 Accessibility applications for KDE ... libmcrypt-2.5.7_1 Multi-cipher cryptographic library (used in PHP) ... php4-bcmath-4.4.1_3 The bcmath shared extension for php ...
    (freebsd-stable)
  • Re: error: syntax error before "_X_SENTINEL"
    ... freefont-ttf-20060126 Free UCS Outline Fonts ... libmcrypt-2.5.7_2 Multi-cipher cryptographic library (used in PHP) ... php4-bcmath-4.4.2_2 The bcmath shared extension for php ... pkg-config-0.20_2 A utility to retrieve information about installed libraries ...
    (freebsd-stable)
  • RE: apache13_modssl + mod_php4 + php4-extenstions +mysql323-*+myphpadmin = ...
    ... XFree86-libraries-4.4.0_3 XFree86-4 libraries and headers ... libmcrypt-2.5.7_1 Multi-cipher cryptographic library (used in PHP) ... pear-Archive_Tar-1.2 PEAR tar file management class ... php4-domxml-4.3.10_2 The domxml shared extension for php ...
    (freebsd-questions)
  • Re: phpMyAdmin install stopped in dependency libXau-1.0.4
    ... I tried installing phpMyAdmin in an ezjail created jail already ... The port install failed when dependency 'libXau-1.0.4' configure ... libmcrypt-2.5.8 Multi-cipher cryptographic library (used in PHP) ... php5-ctype-5.2.11_1 The ctype shared extension for php ...
    (freebsd-questions)
  • FreeBSD php{4,5} w/ LDAP + SSL/TLS ldap_start_tls()
    ... The ldap client binaries are linked to SSL fine and can talk both ldaps:// ... LDAP and SSL php extension modules installed: ... The php4 box's ldap module is linked to OpenSSL: ... php4-ctype-4.4.0 The ctype shared extension for php ...
    (freebsd-questions)