After emerging php-5.2.2-r1 with the pcre use flag I still cannot use pcre functions. phpinfo() confirms that php was compiled with '--without-pcre-regex'. Also, some other use flags disagree with the eventual configuration. Reproducible: Always Steps to Reproduce: 1. Set use flags for php to: apache2 berkdb cgi cli crypt ctype mysql ncurses nls pcre pic readline session ssl suhosin unicode zlib (maybe the fact that I'm running a hardened system has something to do with it too) 2.emerge "=dev-lang/php-5.2.2-r1" 3.run a php script with "<?php phpinfo(); ?> or try to use pcre functions Actual Results: The pcre fuctions return the error: Fatal error: Call to undefined function preg_match_all() The configure options end up having the incorrect options: '--disable-ctype' '--without-pcre-regex' '--disable-session' Although, I'm not sure which one is supposed to be there for the mysql use flag, but since everything that might be it is disabled, it is also not in there. While all the other options are correct: '--prefix=/usr/lib/php5' '--host=i486-pc-linux-gnu' '--mandir=/usr/lib/php5/man' '--infodir=/usr/lib/php5/info' '--sysconfdir=/etc' '--cache-file=./config.cache' '--disable-cli' '--with-apxs2=/usr/sbin/apxs2' '--with-config-file-path=/etc/php/apache2-php5' '--with-config-file-scan-dir=/etc/php/apache2-php5/ext-active' '--without-pear' '--disable-bcmath' '--without-bz2' '--disable-calendar' '--without-curl' '--without-curlwrappers' '--disable-dbase' '--disable-dom' '--disable-exif' '--without-fbsql' '--without-fdftk' '--disable-filter' '--disable-ftp' '--with-gettext' '--without-gmp' '--disable-hash' '--without-iconv' '--disable-ipv6' '--disable-json' '--without-kerberos' '--disable-libxml' '--disable-mbstring' '--with-mcrypt' '--without-mhash' '--without-msql' '--without-mssql' '--with-ncurses' '--with-openssl' '--with-openssl-dir=/usr' '--disable-pcntl' '--disable-pdo' '--without-pgsql' '--disable-posix' '--without-pspell' '--without-recode' '--disable-reflection' '--disable-simplexml' '--disable-shmop' '--without-snmp' '--disable-soap' '--disable-sockets' '--disable-spl' '--without-sybase' '--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--without-tidy' '--disable-tokenizer' '--disable-wddx' '--disable-xml' '--disable-xmlreader' '--disable-xmlwriter' '--without-xmlrpc' '--without-xsl' '--disable-zip' '--with-zlib' '--disable-debug' '--enable-dba' '--without-cdb' '--with-db4' '--without-flatfile' '--without-gdbm' '--without-inifile' '--without-qdbm' '--without-freetype-dir' '--without-t1lib' '--disable-gd-jis-conv' '--without-jpeg-dir' '--without-png-dir' '--without-xpm-dir' '--without-gd' '--without-mysqli' '--with-readline' '--without-libedit' '--without-sqlite' '--with-pic' Also: I did grep "pcre-regex" on the log for the emerge and it returned: * Enabling pcre-regex * Enabling pcre-regex * Enabling pcre-regex Expected Results: '--without-pcre-regex', and others should not be set as so in the configure options, or at least an error to pop up during the emerge process, notifying me that certain use flags could not be enabled for whatever reason
Kindly post emerge -pv php output.
*** Bug 186035 has been marked as a duplicate of this bug. ***
These are the packages that would be merged, in order: Calculating dependencies ...... done! [ebuild R ] dev-lang/php-5.2.2-r1 USE="apache2 berkdb cgi cli crypt ctype mysql ncurses nls pcre pic readline session ssl suhosin unicode zlib -adabas -bcmath -birdstep -bzip2 -calendar -cdb -cjk -concurrentmodphp -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filter -firebird -flatfile -force-cgi-redirect -frontbase -ftp -gd -gd-external -gdbm -gmp -hash -iconv -imap -inifile -interbase -iodbc -ipv6 -java-external -json -kerberos -ldap -ldap-sasl -libedit -mcve -mhash -msql -mssql -mysqli -oci8 (-oci8-instant-client) -odbc -pcntl -pdo -pdo-external -posix -postgres -qdbm -recode -reflection -sapdb -sharedext -sharedmem -simplexml -snmp -soap -sockets -solid -spell -spl -sqlite -sybase -sybase-ct -sysvipc -threads -tidy -tokenizer -truetype -wddx -xml -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip -zip-external" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB
Attach the complete compile log here, please.
You can find the compile log at http://www.cs.rpi.edu/~dugass/php.log (it's slightly over 1000kb so it won't let me attach it)
Uhm; pcre is clearly enabled there. stat /usr/bin/php /usr/bin/php-cgi /usr/bin/phpize /usr/bin/php-config | grep File
Here's the output from "stat /usr/bin/php /usr/bin/php-cgi /usr/bin/phpize /usr/bin/php-config | grep File": File: `/usr/bin/php' -> `/usr/lib/php5/bin/php' File: `/usr/bin/php-cgi' -> `/usr/lib/php5/bin/php-cgi' File: `/usr/bin/phpize' -> `/usr/lib/php5/bin/phpize' File: `/usr/bin/php-config' -> `/usr/lib/php5/bin/php-config'
Restarting Apache appears to have made it start working.
Eh...
*** Bug 205677 has been marked as a duplicate of this bug. ***