www-apps/owncloud should use RDEPEND="dev-lang/php[foo,bar]" instead of failing in pkg_setup if php use flags dependencies aren't satisfied. Reproducible: Always
Thanks for the report! This is fixed in 3.0.0