ID:               38882
 Updated by:       [EMAIL PROTECTED]
 Reported By:      d dot wynne at ljmu dot ac dot uk
-Status:           Open
+Status:           Feedback
 Bug Type:         LDAP related
 Operating System: SuSE 10.1 x86_64
 PHP Version:      4.4.4
 New Comment:

`make clean` is required.


Previous Comments:
------------------------------------------------------------------------

[2006-09-29 14:44:04] d dot wynne at ljmu dot ac dot uk

.....
 Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo
Zend/zend_multibyte.lo
 Zend/zend_strtod.lo Zend/zend_execute.lo sapi/cli/php_cli.lo
sapi/cli/getopt.lo
 main/internal_functions_cli.lo -lcrypt -lcrypt -lsybdb -lldap -llber
-lresolv -
lm -ldl -lnsl -lssl -lcrypto -ldl -ldl -lm -lnsl -lirc -lclntsh -lcrypt
-lcrypt 
 -o sapi/cli/php
ext/standard/info.lo: In function `php_info_print_table_header':
/home/cmstechs/cmsdwynn/SuSE/php-4.4.4/ext/standard/info.c:756:
undefined refere
nce to `ts_resource_ex'
ext/standard/info.lo: In function `php_info_print_table_row':
/home/cmstechs/cmsdwynn/SuSE/php-4.4.4/ext/standard/info.c:800:
undefined refere
nce to `ts_resource_ex'
ext/standard/info.lo: In function `php_print_gpcse_array':
/home/cmstechs/cmsdwynn/SuSE/php-4.4.4/ext/standard/info.c:119:
undefined refere
nce to `executor_globals_id'
ext/standard/info.lo: In function `php_info_write_wrapper':
/home/cmstechs/cmsdwynn/SuSE/php-4.4.4/ext/standard/info.c:67:
undefined referen
ce to `ts_resource_ex'
ext/standard/info.lo: In function `php_print_info':
/home/cmstechs/cmsdwynn/SuSE/php-4.4.4/ext/standard/info.c:624:
undefined refere
nce to `executor_globals_id'
/home/cmstechs/cmsdwynn/SuSE/php-4.4.4/ext/standard/info.c:554:
undefined refere
nce to `sapi_globals_id'

------------------------------------------------------------------------

[2006-09-29 14:06:23] [EMAIL PROTECTED]

>a) The PHP build fails if I do
>--enable-experimental-zts

Please elaborate.

------------------------------------------------------------------------

[2006-09-29 14:00:00] d dot wynne at ljmu dot ac dot uk

Now I'm stuck:

a) The PHP build fails if I do
--enable-experimental-zts

b) SuSE 10.1 only ships with apache2 binary RPM's. I downloaded apache
1.3 source and compiled / installed  & ran, but httpd just dies, no
errors in the loge either. In any case a downgrade to apache 1.3 isn't
an option as I have other apache 2.x only modules that I besides PHP.

c) No updates on the SuSE update server for either apache2 or
openldap.

Problem appears to point to OpenLDAP, so all I can think of next is to
compile / install the latest build. Maybe this is an anomaly with 64
bit machines, which is why it's reporing is not more widespread.

------------------------------------------------------------------------

[2006-09-29 10:43:08] [EMAIL PROTECTED]

Well, you can also try to compile PHP CLI with
--enable-experimental-zts and see if it works for you OR (I'd prefer
this one) use Apache 1.x for tests.

------------------------------------------------------------------------

[2006-09-29 10:29:41] d dot wynne at ljmu dot ac dot uk

Not used valgrind at all, but I've done a bit of searching & I've found
someone else with exactly the same problme as I'm having. The exact
version of PHP is not mentioned, but the same backtrace including:

#0  0x00002aaaab1f2151 in ldap_unbind_ext () 
from /usr/lib64/libldap-2.3.so.0

is. Also it's 64 bit linux and the same version of Apache ( 2.2.0 ). He
claims that the code works using the PHP CLI. I have tested this with:


#! /usr/bin/php
<?php
$ldapServer = "bydc1.jmu.ac.uk";
echo "<p>Connecting</p>\n";
$ds=ldap_connect($ldapServer);
echo "<p>Disconnecting</p>\n";
ldap_close($ds);
?>

and indeed it does. No Segmentatio fault.

Does that mean that PHP / MySQL / LDAP are all red herringd and the
culprit could be Apache, as the CLI version works, and the problem only
occurs when running it through a browser ?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/38882

-- 
Edit this bug report at http://bugs.php.net/?id=38882&edit=1

Reply via email to