php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15356 Warning when running CGI
Submitted: 2002-02-03 11:45 UTC Modified: 2002-02-03 12:07 UTC
From: eric at schorvitz dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.1.0 OS: Red Hat Linux 7.2
Private report: No CVE-ID: None
 [2002-02-03 11:45 UTC] eric at schorvitz dot com
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-03 12:07 UTC] sander@php.net
If it does work normally WITHOUT the Zend-thing, it's a problem with Zend. Report this somewhere on their site.
If not, reopen this report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC