Open mcfog opened 4 years ago
[exec] PHP Version: 7.3.12 (Darwin)
[exec] PHPDox Version: 0.12.0-dev
[exec] ErrorException: E_WARNING
[exec] Location: /Volumes/OfficeExternalHDD/office/projects/recipe-system-api/vendor/theseer/fxsl/src/fxsltprocessor.php (Line 192)
[exec]
[exec] XSLTProcessor::transformToDoc(): No stylesheet associated to this object
[exec]
[exec] No stacktrace available
I also built the PHP binary using phpbrew and I can confirm the above solution works. Thank you, @mcfog !
Thanks for the heads up! :)
run into something like #255 again on my mac today with some error information like
I thought I find the problem why it's hard to reproduce by someone, it's related to php build flags. I build my own php binary on my machine (with phpbrew). It seems like phpdox depends on some feature inside EXSLT somehow and a simple
--with-xsl
build flag leads to a build that support XSL but not EXSLT somehow.I solved this on my machine by a
brew install libxslt
and rebuild php with flag--with-xsl=$(brew --prefix libxslt)
,it can be verified via diff ofphp -i
looks likeIn PHP layer, I found https://www.php.net/manual/en/xsltprocessor.hasexsltsupport.php can also detect this
So some detailed documentation about the EXSLT dependency and / or runtime detection with
XSLTProcessor::hasExsltSupport
maybe a good solution to this.