File tree 3 files changed +21
-0
lines changed
3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,9 @@ PHP NEWS
90
90
. Fixed bug GHSA-9pqp-7h25-4f32 (Erroneous parsing of multipart form data).
91
91
(CVE-2024-8925) (Arnaud)
92
92
93
+ - SOAP:
94
+ . Fixed bug GH-16237 (Segmentation fault when cloning SoapServer). (nielsdos)
95
+
93
96
- Standard:
94
97
. Fixed bug GH-16053 (Assertion failure in Zend/zend_hash.c). (Arnaud)
95
98
. Fixed bug GH-15169 (stack overflow when var serialization in
Original file line number Diff line number Diff line change @@ -508,6 +508,7 @@ PHP_MINIT_FUNCTION(soap)
508
508
memcpy (& soap_server_object_handlers , & std_object_handlers , sizeof (zend_object_handlers ));
509
509
soap_server_object_handlers .offset = XtOffsetOf (soap_server_object , std );
510
510
soap_server_object_handlers .free_obj = soap_server_object_free ;
511
+ soap_server_object_handlers .clone_obj = NULL ;
511
512
512
513
/* Register SoapFault class */
513
514
soap_fault_class_entry = register_class_SoapFault (zend_ce_exception );
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ GH-16237 (Segmentation fault when cloning SoapServer)
3
+ --EXTENSIONS--
4
+ soap
5
+ --FILE--
6
+ <?php
7
+
8
+ $ server = new SoapServer (null , ['uri ' =>"http://testuri.org " ]);
9
+ try {
10
+ clone $ server ;
11
+ } catch (Error $ e ) {
12
+ echo $ e ->getMessage (), "\n" ;
13
+ }
14
+
15
+ ?>
16
+ --EXPECT--
17
+ Trying to clone an uncloneable object of class SoapServer
You can’t perform that action at this time.
0 commit comments