php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25433 php-cli crashes on php -m with Zend Optimizer
Submitted: 2003-09-08 08:52 UTC Modified: 2003-09-08 08:59 UTC
From: yavo at siava dot org Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.3.3 OS: RedHat 7.2
Private report: No CVE-ID: None
 [2003-09-08 08:52 UTC] yavo at siava dot org
Description:
------------
I have php v4.3.3 with zend optimizer v2.1.0 loaded.
When I run php -m I get a Segmentation fault.

Other than this it appears that the system runs ok.

here are the compiled modules

[root@customers root]# php -m
[PHP Modules]
Turck MMCache
Zend Optimizer
bcmath
bz2
calendar
ctype
dba
dbx
dio
exif
ftp
gd
gettext
gmp
iconv
mbstring
mysql
ncurses
openssl
overload
pcre
posix
pspell
session
shmop
sockets
standard
sysvsem
sysvshm
tokenizer
wddx
xml
xmlrpc
yp
zlib

[Zend Modules]
Turck MMCache
Zend Optimizer

Segmentation fault
[root@**** root]# php -v
PHP 4.3.3 (cli) (built: Sep  1 2003 13:46:25)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
    with Turck MMCache v2.3.20, Copyright (c) 2002-2003 TurckSoft, St. Petersburg, by Dmitry Stogov
    with Zend Optimizer v2.1.0, Copyright (c) 1998-2003, by Zend Technologies
[root@**** root]# 

Actual result:
--------------
[root@**** root]# gdb /usr/bin/php
GNU gdb Red Hat Linux (5.2-2)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(gdb) run 
Starting program: /usr/bin/php 



Program exited normally.
(gdb) Quit
(gdb) run -m
Starting program: /usr/bin/php -m
[PHP Modules]
Turck MMCache
Zend Optimizer
bcmath
bz2
calendar
ctype
dba
dbx
dio
exif
ftp
gd
gettext
gmp
iconv
mbstring
mysql
ncurses
openssl
overload
pcre
posix
pspell
session
shmop
sockets
standard
sysvsem
sysvshm
tokenizer
wddx
xml
xmlrpc
yp
zlib

[Zend Modules]
Turck MMCache
Zend Optimizer


Program received signal SIGSEGV, Segmentation fault.
zend_unregister_functions (functions=0x4257cb70, count=-1, function_table=0x0)
    at /usr/local/src/php-4.3.3/Zend/zend_API.c:1079
1079            while (ptr->fname) {
(gdb) 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-08 08:59 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 21:01:33 2025 UTC