File tree 3 files changed +19
-0
lines changed
3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ PHP NEWS
76
76
. Fixed bug #62900 (Wrong namespace on xsd import error message). (nielsdos)
77
77
. Fixed bug GH-15711 (SoapClient can't convert BackedEnum to scalar value).
78
78
(nielsdos)
79
+ . Fixed bug GH-16237 (Segmentation fault when cloning SoapServer). (nielsdos)
79
80
80
81
- SPL:
81
82
. Fixed bug GH-15918 (Assertion failure in ext/spl/spl_fixedarray.c).
Original file line number Diff line number Diff line change @@ -412,6 +412,7 @@ PHP_MINIT_FUNCTION(soap)
412
412
memcpy (& soap_server_object_handlers , & std_object_handlers , sizeof (zend_object_handlers ));
413
413
soap_server_object_handlers .offset = XtOffsetOf (soap_server_object , std );
414
414
soap_server_object_handlers .free_obj = soap_server_object_free ;
415
+ soap_server_object_handlers .clone_obj = NULL ;
415
416
416
417
/* Register SoapFault class */
417
418
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