From:             andreas dot lindemann at de dot bp dot com
Operating system: Solaris 10
PHP version:      5.4.11
Package:          SOAP related
Bug Type:         Bug
Bug description:Soapserver::fault bus error on Solaris CLI/CGI/FPM

Description:
------------
Reproducably received a bus error/core dump when returning a Soapfault from
the 
Soapserver on Solaris.

Tried different execution paths and could reproduce on all of them:

1) PHP-CGI via Apache/mod_fcgid
2) PHP-FPM as backend for nginx
3) PHP-CLI from command line

$ php -f test_script.php
Bus Error (core dumped)

$ uname -a
SunOS testhost 5.10 Generic_147440-10 sun4u sparc SUNW,SPARC-Enterprise

$ php -v
PHP 5.4.11 (cli) (built: Feb  2 2013 12:02:33)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

$ php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
filter
ftp
gd
iconv
json
ldap
libxml
mbstring
oci8
openssl
pcntl
pcre
PDO
posix
Reflection
session
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlrpc
xsl
zip
zlib


Test script:
---------------
<?php
  $options['uri'] = 'urn:someNamespace';
  $server = new SoapServer(null, $options);
  $server->fault("Server", "message"); // <- Bus error, core Dumped


Expected result:
----------------
A correctly generated Soap XML response.

Actual result:
--------------
Program terminated with signal 10, Bus error.

Backtrace: 
#0  0x00000001003d0654 in php_escape_html_entities_ex ()
#1  0x00000001003cf830 in php_escape_html_entities ()
#2  0x00000001002dc170 in serialize_response_call ()
#3  0x00000001002d1954 in soap_server_fault_ex ()
#4  0x00000001002d1c88 in soap_server_fault ()
#5  0x00000001002d150c in zim_SoapServer_fault ()
#6  0x00000001005ae62c in zend_do_fcall_common_helper_SPEC ()
#7  0x00000001005af5fc in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER ()
#8  0x00000001005acc50 in execute ()
#9  0x000000010055e2e4 in zend_execute_scripts ()
#10 0x0000000100495f60 in php_execute_script ()
#11 0x00000001006c8294 in main ()


-- 
Edit bug report at https://bugs.php.net/bug.php?id=64233&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64233&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64233&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64233&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64233&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64233&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64233&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64233&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64233&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64233&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64233&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64233&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64233&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64233&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64233&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64233&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64233&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64233&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64233&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64233&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64233&r=mysqlcfg

Reply via email to