Bug #77088 [NEW]: Segfault when using SoapClient with null options

From: Date: Wed, 31 Oct 2018 11:54:33 +0000
Subject: Bug #77088 [NEW]: Segfault when using SoapClient with null options
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217769@lists.php.net to get a copy of this message
From: projektsage at gmail dot com Operating system: linux PHP version: 7.3.0RC4 Package: SOAP related Bug Type: Bug Bug description:Segfault when using SoapClient with null options Description: ------------ PHP7.3.0RC4 Thread Safe Configure: './configure' '--prefix=/opt/apache/apache-24-php-7.3.0RC4-x64/php-7.3.0RC4/php_bin' '--with-apxs2=/opt/apache/httpd-24-x64/bin/apxs' '--with-zlib' '--with-curl' '--with-mysql' '--with-mysqli' '--with-pdo-mysql' '--with-pgsql=/opt/postgresql' '--with-oci8=instantclient,/opt/oracle/instantclient_10_2' '--enable-soap' BT: #0 0x00007ffff1c19ed4 in add_property_zval_ex (arg=arg@entry=0x7fffcc054360, key=key@entry=0x7ffff22aeb4c "__soap_fault", key_len=key_len@entry=12, value=value@entry=0x7fffe53f0260) at /opt/apache/apache-24-php-7.3.0RC4-x64/php-7.3.0RC4/Zend/zend_API.c:1825 #1 0x00007ffff1aabfbf in add_soap_fault_ex (fault=fault@entry=0x7fffe53f0260, obj=0x7fffcc054360, fault_code=fault_code@entry=0x7ffff22ae2db "Client", fault_string=fault_string@entry=0x7fffe53f0350 "Uncaught TypeError: SoapClient::SoapClient() expects parameter 2 to be array, null given in /***/***/httpd-php/php-htdocs/php-htdocs/soap/soap-client"..., fault_detail=0x0, fault_actor=0x0) at /opt/apache/apache-24-php-7.3.0RC4-x64/php-7.3.0RC4/ext/soap/soap.c:3204 #2 0x00007ffff1aaee7c in soap_error_handler (error_num=1, error_filename=0x7fffd5076158 "/***/***/httpd-php/php-htdocs/php-htdocs/soap/soap-client-wsdl-null-context.php", error_lineno=6, format=0x7ffff22ecf58 "Uncaught %s\n thrown", args=0x7fffe53f0788) at /opt/apache/apache-24-php-7.3.0RC4-x64/php-7.3.0RC4/ext/soap/soap.c:2144 #3 0x00007ffff1849368 in zend_error_va (type=type@entry=1, file=<optimized out>, lineno=<optimized out>, format=format@entry=0x7ffff22ecf58 "Uncaught %s\n thrown") at /opt/apache/apache-24-php-7.3.0RC4-x64/php-7.3.0RC4/Zend/zend_exceptions.c:946 #4 0x00007ffff184990a in zend_exception_error (ex=0x7fffd5076000, severity=severity@entry=1) at /opt/apache/apache-24-php-7.3.0RC4-x64/php-7.3.0RC4/Zend/zend_exceptions.c:1018 #5 0x00007ffff1c16c4b in zend_execute_scripts (type=type@entry=8, retval=retval@entry=0x0, file_count=file_count@entry=3) at /opt/apache/apache-24-php-7.3.0RC4-x64/php-7.3.0RC4/Zend/zend.c:1572 #6 0x00007ffff1baa626 in php_execute_script (primary_file=primary_file@entry=0x7fffe53f1c10) at /opt/apache/apache-24-php-7.3.0RC4-x64/php-7.3.0RC4/main/main.c:2630 #7 0x00007ffff1ca773a in php_handler (r=<optimized out>) at /opt/apache/apache-24-php-7.3.0RC4-x64/php-7.3.0RC4/sapi/apache2handler/sapi_apache2.c:699 #8 0x000000000044a280 in ap_run_handler (r=0x7fffd009b390) at config.c:170 #9 0x000000000044e49e in ap_invoke_handler (r=0x7fffd009b390) at config.c:439 #10 0x0000000000460d9a in ap_process_async_request (r=0x7fffd009b390) at http_request.c:317 #11 0x000000000045d420 in ap_process_http_async_connection (c=<optimized out>) at http_core.c:143 #12 ap_process_http_connection (c=0x7fffe0037420) at http_core.c:228 #13 0x0000000000454e40 in ap_run_process_connection (c=0x7fffe0037420) at connection.c:41 #14 0x0000000000469b4d in process_socket (my_thread_num=<optimized out>, my_child_num=<optimized out>, cs=0x7fffe00373a8, sock=<optimized out>, p=<optimized out>, thd=<optimized out>) at event.c:970 #15 worker_thread (thd=<optimized out>, dummy=<optimized out>) at event.c:1815 #16 0x00007ffff6ee66ba in start_thread (arg=0x7fffe53f2700) at pthread_create.c:333 #17 0x00007ffff6a1841d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109 Test script: --------------- <?php try { $options = NULL; $sClient = new SoapClient("test.wsdl", $options); } catch(SoapFault $e) { echo "There is a fault:<br/>"; var_dump($e); } ?> -- Edit bug report at https://bugs.php.net/bug.php?id=77088&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77088&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77088&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77088&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77088&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77088&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77088&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77088&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77088&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77088&r=support Expected behavior: https://bugs.php.net/fix.php?id=77088&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77088&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77088&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77088&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77088&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77088&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77088&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77088&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77088&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77088&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77088&r=mysqlcfg

« previous php.bugs (#217769) next »