php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32005 Apache 1.3.33 unresolved symbols in DSO
Submitted: 2005-02-16 22:59 UTC Modified: 2005-02-17 14:18 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: agreenbu at nyx dot net Assigned:
Status: Closed Package: Apache related
PHP Version: 5.0.3 OS: Mac OS X 10.3.8
Private report: No CVE-ID: None
 [2005-02-16 22:59 UTC] agreenbu at nyx dot net
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-17 10:35 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip


 [2005-02-17 14:16 UTC] agreenbu at nyx dot net
This snapshot fixed the problem. Thanks!
 [2005-02-17 14:18 UTC] derick@php.net
Great, lets close it then.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 10 14:01:27 2024 UTC