Bug 108096

Summary: several PHP5 extension modules in FreeBSD 6.2 generate a Segmentation fault: 11 (core dumped) or a Undefined symbol "ps_globals
Product: Ports & Packages Reporter: Henri Witteveen <info>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Henri Witteveen 2007-01-18 14:50:15 UTC
After installing all the PHP5 extension I got a errors when running a simple PHP CLI program. The errors are:

Segmentation fault: 11 (core dumped) and

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/soap
.so' - /usr/local/lib/php/20060613/soap.so: Undefined symbol "ps_globals" in Unknown on line 0

I checked all the extensions and the problems arise when enabling the modules:

extension=recode.so -> Segmentation fault
extension=soap.so -> Undefined symbol "ps_globals"
extension=wddx.so -> Undefined symbol "ps_globals"
extension=yaz.so -> Segmentation fault

How-To-Repeat: The simple test used is:

#!/usr/local/bin/php
<?php
for ($i=0;$i<10 ;$i++) {
        print("\$i: $i\n");
}
?>
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2007-01-18 15:20:14 UTC
Responsible Changed
From-To: freebsd-bugs->ale

Over to maintainer.
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2007-01-18 19:12:36 UTC
State Changed
From-To: open->closed

These are well documented issues. Read php.net.
Comment 3 vandal 2007-02-18 13:42:37 UTC
vandal@nietykalni.org~(0) uname -a
Same on: 
FreeBSD nietykalni.org 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Sat Jul  8 
13:56:58 CEST 2006     vandal@nietykalni.org:/usr/obj/usr/src/sys/GENERIC-NIETYKALNI3  i386

vandal@nietykalni.org~(0) ./php5test.php
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20060613-debug/xsl.so' - /usr/local/lib/php/200
60613-debug/xsl.so: Undefined symbol "dom_node_class_entry" in Unknown on 
line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20060613-debug/soap.so' - /usr/local/lib/php/20
060613-debug/soap.so: Undefined symbol "ps_globals" in Unknown on line 0
$i: 0
$i: 1
$i: 2
$i: 3
$i: 4
$i: 5
$i: 6
$i: 7
$i: 8
$i: 9

But w/o Segmentation fault.