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
*** This bug has been marked as a duplicate of bug 186031 ***