#41005 [NEW]: calling Exception in shutdown_function causes Apache to crash

2007-04-05 Thread maboiteaspam at gmail dot com
From: maboiteaspam at gmail dot com
Operating system: Solaris 8
PHP version:  5.2.1
PHP Bug Type: Reproducible crash
Bug description:  calling Exception in shutdown_function causes Apache to crash

Description:

If you call register_shutdown_function, and then in the registered
function make a call to PHP Exception, Apache segfaults.  

Here's a sample script:

Reproduce code:
---
class   DodService
{
private $connexion;

function__construct()
{
register_shutdown_function(array($this, "out"));
}
  
function out()
{
throw new SoapFault("ERROR", "Internal Server Error.");
return true;
}
}

Actual result:
--
Extract of Apache log:

[Thu Apr 05 14:15:16 2007] [error] [client xxx.xxx.xxx.xxx] PHP Fatal
error:  Exception thrown without a stack frame in Unknown on line 0
[Thu Apr 05 14:15:16 2007] [notice] child pid 11357 exit signal
Segmentation fault (11)

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


#40210 [Fbk->Csd]: SOAP client crash when parse WSDL file located on a SSL/TLS apache server

2007-01-25 Thread maboiteaspam at gmail dot com
 ID:   40210
 User updated by:  maboiteaspam at gmail dot com
 Reported By:  maboiteaspam at gmail dot com
-Status:   Feedback
+Status:   Closed
 Bug Type: SOAP related
 Operating System: Solaris 8
 PHP Version:  5.2.0
 New Comment:

The last version solved this problem thanks a lot !


Previous Comments:


[2007-01-23 14:13:56] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2007-01-23 13:57:07] maboiteaspam at gmail dot com

Description:

The built-in SOAP client for PHP 5.2 crashs (SegFault) when trying to
parse a WSDL file located on a secure Apache server configuring to
support client authentication via X.509v3 certificates.
The same WSDL works fine on an identical build on a Linux and Solaris
server with HTTP and HTTPS connections without strong client
authentification.

But when the web server is configuring to be limited only to the web
browsers that present a valid certificate, PHP SOAP SSL connection
crashs.

Reproduce code:
---
Here is a working example:
---
$soapClient = new SoapClient( 
"https://monserveur/generate_wsdl.php";,
array( 'local_cert'=> "asg-newCert.crt" ) );

The same example but we enable client authentication in the Apache's
web server:
---
$soapClient = new SoapClient( 
"https://monserveur/wservices/generate_wsdl.php";,
array( 'local_cert'=> "asg-newCert.crt" ) );

To enable the use of client certificates, we need to add the following
directives to httpd.conf:


SSLVerifyClient require
SSLVerifyDepth  5
SSLCACertificateFile /opt/apache/conf/ssl/ca.pem
SSLOptions   +FakeBasicAuth
SSLRequireSSL








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


#40210 [NEW]: SOAP client crash when parse WSDL file located on a SSL/TLS apache server

2007-01-23 Thread maboiteaspam at gmail dot com
From: maboiteaspam at gmail dot com
Operating system: Solaris 8
PHP version:  5.2.0
PHP Bug Type: SOAP related
Bug description:  SOAP client crash when parse WSDL file located on a SSL/TLS 
apache server

Description:

The built-in SOAP client for PHP 5.2 crashs (SegFault) when trying to
parse a WSDL file located on a secure Apache server configuring to support
client authentication via X.509v3 certificates.
The same WSDL works fine on an identical build on a Linux and Solaris
server with HTTP and HTTPS connections without strong client
authentification.

But when the web server is configuring to be limited only to the web
browsers that present a valid certificate, PHP SOAP SSL connection crashs.

Reproduce code:
---
Here is a working example:
---
$soapClient = new SoapClient( 
"https://monserveur/generate_wsdl.php";,
array( 'local_cert'=> "asg-newCert.crt" ) );

The same example but we enable client authentication in the Apache's web
server:
---
$soapClient = new SoapClient( 
"https://monserveur/wservices/generate_wsdl.php";,
array( 'local_cert'=> "asg-newCert.crt" ) );

To enable the use of client certificates, we need to add the following
directives to httpd.conf:


SSLVerifyClient require
SSLVerifyDepth  5
SSLCACertificateFile /opt/apache/conf/ssl/ca.pem
SSLOptions   +FakeBasicAuth
SSLRequireSSL




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


#39283 [Com]: SSL: fatal protocol error

2007-01-11 Thread maboiteaspam at gmail dot com
 ID:   39283
 Comment by:   maboiteaspam at gmail dot com
 Reported By:  cboden at gmail dot com
 Status:   Assigned
 Bug Type: SOAP related
 Operating System: Linux
 PHP Version:  5.2.0RC5
 Assigned To:  wez
 New Comment:

Got the same problem with Apache and mod_ssl on Solaris 9.0.
SoapClient works well in http but fail when try to get the WSDL file in
https stream.


Previous Comments:


[2006-12-25 14:48:52] [EMAIL PROTECTED]

Wez, could you please look into this bug.
It is related to openssl streams and I cannot understand what the
following code.

case SSL_ERROR_SYSCALL:
  if (ERR_peek_error() == 0) {
if (nr_bytes == 0) {
  if (!is_http_stream_talking_to_iis(stream TSRMLS_CC)) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL: fatal
protocol error");




[2006-11-03 18:00:34] cboden at gmail dot com

Now installed PHP-5.2.0
 - No longer receive SoapFault (although, may have been an error in my
WSDL file originally)
 - Sill receive "SSL: fatal protocol error" warning
 - Able to suppress SoapClient::__construct to ignore (@)
 - Besides the warning, working as expected, __getLast functions
generate expected results



[2006-10-27 16:50:10] cboden at gmail dot com

Description:

Soap fails to connect to the WSDL.

The server is an Apache-SSL server running on Linux (Note: Not Apache
using mod_ssl).  I am using  PHP (5.2.0RC7). 
php5.2-200610260230.tar.bz2 is the build file.

Reproduce code:
---

https://localhost:443/wsdl.php',
Array(
'allow_self_signed' => 1,
'verify_peer'   => 0,
'trace' => 1,
'exceptions'=> 1,
));
} catch (Exception $e) {
   die(print_r($e));
}
?>

Actual result:
--
Warning:  SoapClient::SoapClient() [function.SoapClient-SoapClient]:
SSL: fatal protocol error in /client.php on line 9

SoapFault Object

(

[message:protected] => SOAP-ERROR: Parsing WSDL: Couldn't load from
'https://localhost:443/wsdl.php'

[string:private] => 

[code:protected] => 0

[file:protected] => /client.php

[line:protected] => 9

[trace:private] => Array

(

[0] => Array

(

[file] => /client.php

[line] => 9

[function] => SoapClient

[class] => SoapClient

[type] => ->

[args] => Array

(

[0] => https://localhost:443/wsdl.php

[1] => Array

(

[allow_self_signed] => 1

[verify_peer] => 0

[trace] => 1

[exceptions] => 1

)



)



)



)



[faultstring] => SOAP-ERROR: Parsing WSDL: Couldn't load from
'https://localhost:443/wsdl.php'

[faultcode] => WSDL

)






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