Hi,

I'm following Sara Golemon's book Extending and Embedding PHP. Now I want to 
have my development sandbox totally separated from my stable PHP 
installation. (I'm running Debian Lenny with PHP4 and 5 installed from 
Debian.)

So I do
./configure --enable-debug \
            --enable-maintainer-zts \
            --disable-cgi \
            --enable-cli \
            --disable-pear \
            --disable-xml \
            --disable-sqlite \
            --without-mysql \
            --enable-embed \
            --prefix=/var/builds/php5_3 \
            --with-config-file-path=/var/builds/php5_3/etc

So the only difference to the book is, that I give the --prefix 
and --with-config-file-path options. Now after 'make cli' and 'make install' 
I have my first problem. PHP does not load a php.ini located 
at /var/builds/php5_3/etc/php.ini. 

The next problem comes after compiling the sample extension from the book:
Warning: dl(): ical: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20071006, debug=1, thread-safety=1
These options need to match

I did use the phpize from my custom PHP build!

/var/builds/php5_3/bin/phpize --version
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20071006
Zend Extension Api No:   220070929

Does somebody has any hints on my two issues?

Best regards,

-- 
Thomas Koch, Software Developer

Young Media Concepts GmbH
Sonnenstr. 4
CH-8280 Kreuzlingen
Switzerland

Tel    +41 (0)71 / 508 24 86
Fax    +41 (0)71 / 560 53 89
Mobile +49 (0)170 / 753 89 16
Web    www.ymc.ch

Reply via email to