mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
19 lines
372 B
PHP
19 lines
372 B
PHP
--TEST--
|
|
GH-18304 (Changing the properties of a DateInterval through dynamic properties triggers a SegFault)
|
|
--CREDITS--
|
|
orose-assetgo
|
|
--EXTENSIONS--
|
|
simplexml
|
|
--FILE--
|
|
<?php
|
|
$sxe = simplexml_load_string('<root><abc/></root>');
|
|
$field = 'abc';
|
|
$sxe->$field .= 'hello';
|
|
var_dump($sxe->$field);
|
|
?>
|
|
--EXPECTF--
|
|
object(SimpleXMLElement)#%d (1) {
|
|
[0]=>
|
|
string(5) "hello"
|
|
}
|