There is a Bug in dev-libs/libpcre-8.13 which breaks the package dev-lang/php. The bug report for pcre (http://bugs.exim.org/show_bug.cgi?id=1136) contains a patch to fix this issue. This bug is similar to https://bugs.gentoo.org/show_bug.cgi?id=382687 Reproducible: Always Actual Results: preg_replace_callback(): Compilation failed: POSIX collating elements are not supported at offset ... Expected Results: It should work as expected. Downgrading to dev-libs/libpcre-8.12 fix this issue.
should be all set now in the tree; thanks for the report! Commit message: Add fix from upstream for posix regex behavior http://sources.gentoo.org/dev-libs/libpcre/files/libpcre-8.13-posix-regex.patch?rev=1.1 http://sources.gentoo.org/dev-libs/libpcre/libpcre-8.13-r1.ebuild?rev=1.1