From:             agreenbu at nyx dot net
Operating system: Mac OS X 10.3.8
PHP version:      5.0.3
PHP Bug Type:     Apache related
Bug description:  Apache 1.3.33 unresolved symbols in DSO

Description:
------------
After building PHP 5.0.3 as a DSO and enabling in httpd.conf,  Apache
crashes on apachectl start with a crashdump, but no error messages.

If I disable the LoadModule and AddModule lines for php5 in httpd.conf,
and start Apache, it starts, and then if I re-enable php5 in httpd.conf
and run apachectl restart, it reloads with working PHP 5. This has
happened on previous releases of PHP 5 as well.

Reproduce code:
---------------
1. Build clean Apache 1.3.33 from source in /usr/local/apache.
2. Build PHP with settings:
./configure  --prefix=/usr/local --with-apxs=/usr/local/apache/sbin/apxs
--with-curl=/usr/local --with-zlib --with-mysql=shared,/usr/local/mysql
--with-mysqli --enable-soap --enable-sockets --with-openssl
make
make install

3. Enable PHP module in httpd.conf

4. Start Apache
/usr/local/apache/sbin/apachectl start
-- Should crash.

5. Disable PHP module in httpd.conf

6. Start Apache
/usr/local/apache/sbin/apachectl start
-- Should work.

7. Enable PHP module in httpd.conf

8. Restart Apache
/usr/local/apache/sbin/apachectl restart
-- Should work.


Expected result:
----------------
Apache should load the module on the first try.

Actual result:
--------------
I get the following crash dump when running apachectl start:

Link (dyld) error:

dyld: /usr/local/apache/sbin/httpd Undefined symbols:
_OnUpdateLong
_OnUpdateString
_OnUpdateStringUnempty
__array_init
__convert_to_string
__efree
__emalloc
__erealloc
__estrdup
__estrndup
__object_and_properties_init
__object_init
__object_init_ex
__safe_emalloc
__zend_get_parameters_array_ex
__zend_hash_add_or_update
__zend_hash_init
__zend_list_addref
__zend_list_delete
__zend_list_find
__zval_copy_ctor
__zval_ptr_dtor
_add_assoc_null_ex
_add_assoc_zval_ex
_add_index_long
_add_index_null
_add_index_zval
_add_property_long_ex
_add_property_string_ex
_ap_php_snprintf
_convert_to_array
_convert_to_boolean
_convert_to_double
_convert_to_long
_core_globals
_display_ini_entries
_display_link_numbers
_empty_string
_executor_globals
_get_active_function_name
_le_index_ptr
_php_addslashes
_php_error_docref0
_php_get_current_user
_php_info_print_table_end
_php_info_print_table_header
_php_info_print_table_row
_php_info_print_table_start
_php_set_error_handling
_php_sprintf
_zend_call_functi

-- 
Edit bug report at http://bugs.php.net/?id=32005&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32005&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32005&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32005&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32005&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32005&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32005&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32005&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32005&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32005&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32005&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32005&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32005&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32005&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32005&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32005&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32005&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32005&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32005&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32005&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32005&r=mysqlcfg

Reply via email to