[PHP] web server crashing with either 4.1.0 or 4.0.6

2001-12-20 Thread Ian McNish


when trying at access any php scripts my web server is crashing. i'm
experiencing this problem with both php 4.0.6 and 4.1.0 on iplanet
enterprise 6.0sp1 on solaris 8. my web server is logging the following
error:

catastrophe (21929): Server crash detected (signal SIGSEGV)
info (21929): Crash occurred in NSAPI SAF php4_execute
info (21929): Crash occurred in function _pthread_mutex_lock from module
/usr/lib/libthread.so.1


i'm getting this behavior with php code as simple as:




any help would be appreciated.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] ldap_connect question

2001-08-29 Thread Ian McNish

"Brad S. Jackson" wrote:
> 
> It looks like the documentation is wrong.  The C source code for the LDAP module
> doesn't do anything special with zero arguments.
> 
>  switch(ZEND_NUM_ARGS()) {
>   case 0:
>host = NULL;
>port = 0;


that would explain why "ldap_connect()" would return "0", but that
wouldn't explain why the script would stop executing when i call
"ldap_connect()".

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] ldap_connect question

2001-08-29 Thread Ian McNish


the ldap_connect man page states that calling ldap_connect with no
arguements should return the link identifier to the open ldap
connection. in the following code i find that the script stops before
writing the second printf statement:

$LDAP_CONNECTION = ldap_connect($MY_LDAP_SERVER);
printf("stop1.1 ==> LDAP_CONNECTION -->%d<--", $LDAP_CONNECTION);
printf("stop1.2 ==> current link id -->%d<--", ldap_connect());


the first printf statement tells me that the link id is 1. if i use
"ldap_connect('')", then i get a link id of 2; it seems as though
ldap_connect is trying to connect to a null server name. if i use
"ldap_connect" then i get a link id of 0.

any ideas?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]