I'm having a weird problem. I can't seem to force php to load an
extension using php.ini, but it loads perfectly if I use dl() at the
beginning of a test script.
In php.ini I've got:
extension_dir = "/correct/verified/path/to/extension/dir/"
extension=imagick.so
Apache will not restart if both those lines are present in php.ini
(and apache's error_log doesn't report anything either).
If I remove the extension load line, e.g.:
extension_dir = "/correct/verified/path/to/extension/dir/"
; extension=imagick.so
Apache will restart normally (without the extension loaded, but with
the correct extension path).
The confusing thing is that the extension then loads fine with dl():
<?php
dl("imagick.so")
phpinfo();
?>
and phpinfo displays the extension info normally.
The problem seems to be with apache, but since there's nothing in the
error_log I'm unsure how to proceed.
system info:
freebsd 7 on x86_64 architecture
apache 1.3.41
php 5.2.5
Has anyone encountered this problem before?