Bug #15356: Warning when running CGI
| From: | eric at schorvitz dot com | Date: | Sun, 03 Feb 2002 16:45:56 +0000 |
| Subject: | Bug #15356: Warning when running CGI | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-78960@lists.php.net to get a copy of this message | ||
From: eric@schorvitz.com
Operating system: Red Hat Linux 7.2
PHP version: 4.1.0
PHP Bug Type: Scripting Engine problem
Bug description: Warning when running CGI
I run PHP 4.1.0 as an apache module and as a cgi (for command line and cron
activities). I installed the newest version of the Zend Accelerator and
everything appeared to be working just fine until I tried to run php from
the command line. I get the following warning:
[user@box user]$ php --version
Content-type: text/html
PHP Warning: (null): Unable to initialize module
Module compiled with debug=96, thread-safety=75 module API=1079959680
PHP compiled with debug=0, thread-safety=0 module API=20010901
These options need to match
in Unknown on line 0 ¼': Unable to initialize module
Module compiled with debug=144, thread-safety=167 module API=1073877708
PHP compiled with debug=0, thread-safety=0 module API=20010901
These options need to match
in Unknown on line 0
My code executes correctly from the Web (via module compile) and from
command line (even though I get the error everything executes fine). When
I do phpinfo() from the browser, the Zend Accelerator info displays
correctly.
Here is how I build the cgi (and the commented out line is what I include
to compile the module):
#! /bin/sh
./configure \
--with-mysql=/home/mysql \
--with-gettext=/usr/share \
--with-gd \
--with-freetype-dir=/usr/local/src/freetype-2.0.5 \
--with-jpeg-dir=/usr/local/src/jpeg-6b \
--with-t1lib=/usr/local/src/t1lib-1.3.1 \
--with-zlib-dir=/usr/local/src/zlib-1.1.3 \
--with-png-dir=/usr/local/src/libpng-1.2.1 \
--with-curl=/usr/local/src/curl-7.9.2 \
--with-pspell
#--with-apxs=/home/apache/bin/apxs \
Im running:
Apache 1.3.22
PHP 4.1.0
RedHat 7.2
--
Edit bug report at http://bugs.php.net/?id=15356&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15356&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15356&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15356&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15356&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15356&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15356&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15356&r=notenoughinfo