Skip to content

Commit a8123e5

Browse files
committed
Debug tracing JIT assertion error
1 parent 2f2e7aa commit a8123e5

File tree

2 files changed

+22
-14
lines changed

2 files changed

+22
-14
lines changed

ext/dom/php_dom.stub.php

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ class DOMAttr extends DOMNode
253253

254254
public ?DOMElement $ownerElement;
255255

256-
public mixed $schemaTypeInfo = null;
256+
/** @var mixed */
257+
public $schemaTypeInfo = null;
257258

258259
public function __construct(string $name, string $value = "") {}
259260

@@ -265,7 +266,8 @@ class DOMElement extends DOMNode implements DOMParentNode, DOMChildNode
265266
{
266267
public string $tagName;
267268

268-
public mixed $schemaTypeInfo = null;
269+
/** @var mixed */
270+
public $schemaTypeInfo = null;
269271

270272
public ?DOMElement $firstElementChild;
271273

@@ -385,8 +387,11 @@ class DOMDocument extends DOMNode implements DOMParentNode
385387
/** @var string|null */
386388
public $documentURI;
387389

388-
/** @deprecated */
389-
public mixed $config = null;
390+
/**
391+
* @deprecated
392+
* @var mixed
393+
*/
394+
public $config = null;
390395

391396
/** @var bool */
392397
public $formatOutput = false;
@@ -570,11 +575,14 @@ class DOMEntity extends DOMNode
570575

571576
public ?string $notationName;
572577

573-
public mixed $actualEncoding = null;
578+
/** @var mixed */
579+
public $actualEncoding = null;
574580

575-
public mixed $encoding = null;
581+
/** @var mixed */
582+
public $encoding = null;
576583

577-
public mixed $version = null;
584+
/** @var mixed */
585+
public $version = null;
578586
}
579587

580588
class DOMEntityReference extends DOMNode

ext/dom/php_dom_arginfo.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 7278d11a4af54d320aa33103396abc9b4f4d15e6 */
2+
* Stub hash: 43586d7dda60cb6a13ab9f912423dd7d1daa5c38 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_dom_import_simplexml, 0, 1, DOMElement, 1)
55
ZEND_ARG_TYPE_INFO(0, node, IS_OBJECT, 0)
@@ -1240,7 +1240,7 @@ static zend_class_entry *register_class_DOMAttr(zend_class_entry *class_entry_DO
12401240
zval property_schemaTypeInfo_default_value;
12411241
ZVAL_NULL(&property_schemaTypeInfo_default_value);
12421242
zend_string *property_schemaTypeInfo_name = zend_string_init("schemaTypeInfo", sizeof("schemaTypeInfo") - 1, 1);
1243-
zend_declare_typed_property(class_entry, property_schemaTypeInfo_name, &property_schemaTypeInfo_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ANY));
1243+
zend_declare_property_ex(class_entry, property_schemaTypeInfo_name, &property_schemaTypeInfo_default_value, ZEND_ACC_PUBLIC, NULL);
12441244
zend_string_release(property_schemaTypeInfo_name);
12451245

12461246
return class_entry;
@@ -1263,7 +1263,7 @@ static zend_class_entry *register_class_DOMElement(zend_class_entry *class_entry
12631263
zval property_schemaTypeInfo_default_value;
12641264
ZVAL_NULL(&property_schemaTypeInfo_default_value);
12651265
zend_string *property_schemaTypeInfo_name = zend_string_init("schemaTypeInfo", sizeof("schemaTypeInfo") - 1, 1);
1266-
zend_declare_typed_property(class_entry, property_schemaTypeInfo_name, &property_schemaTypeInfo_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ANY));
1266+
zend_declare_property_ex(class_entry, property_schemaTypeInfo_name, &property_schemaTypeInfo_default_value, ZEND_ACC_PUBLIC, NULL);
12671267
zend_string_release(property_schemaTypeInfo_name);
12681268

12691269
zend_string *property_firstElementChild_class_DOMElement = zend_string_init("DOMElement", sizeof("DOMElement")-1, 1);
@@ -1389,7 +1389,7 @@ static zend_class_entry *register_class_DOMDocument(zend_class_entry *class_entr
13891389
zval property_config_default_value;
13901390
ZVAL_NULL(&property_config_default_value);
13911391
zend_string *property_config_name = zend_string_init("config", sizeof("config") - 1, 1);
1392-
zend_declare_typed_property(class_entry, property_config_name, &property_config_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ANY));
1392+
zend_declare_property_ex(class_entry, property_config_name, &property_config_default_value, ZEND_ACC_PUBLIC, NULL);
13931393
zend_string_release(property_config_name);
13941394

13951395
zval property_formatOutput_default_value;
@@ -1529,19 +1529,19 @@ static zend_class_entry *register_class_DOMEntity(zend_class_entry *class_entry_
15291529
zval property_actualEncoding_default_value;
15301530
ZVAL_NULL(&property_actualEncoding_default_value);
15311531
zend_string *property_actualEncoding_name = zend_string_init("actualEncoding", sizeof("actualEncoding") - 1, 1);
1532-
zend_declare_typed_property(class_entry, property_actualEncoding_name, &property_actualEncoding_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ANY));
1532+
zend_declare_property_ex(class_entry, property_actualEncoding_name, &property_actualEncoding_default_value, ZEND_ACC_PUBLIC, NULL);
15331533
zend_string_release(property_actualEncoding_name);
15341534

15351535
zval property_encoding_default_value;
15361536
ZVAL_NULL(&property_encoding_default_value);
15371537
zend_string *property_encoding_name = zend_string_init("encoding", sizeof("encoding") - 1, 1);
1538-
zend_declare_typed_property(class_entry, property_encoding_name, &property_encoding_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ANY));
1538+
zend_declare_property_ex(class_entry, property_encoding_name, &property_encoding_default_value, ZEND_ACC_PUBLIC, NULL);
15391539
zend_string_release(property_encoding_name);
15401540

15411541
zval property_version_default_value;
15421542
ZVAL_NULL(&property_version_default_value);
15431543
zend_string *property_version_name = zend_string_init("version", sizeof("version") - 1, 1);
1544-
zend_declare_typed_property(class_entry, property_version_name, &property_version_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ANY));
1544+
zend_declare_property_ex(class_entry, property_version_name, &property_version_default_value, ZEND_ACC_PUBLIC, NULL);
15451545
zend_string_release(property_version_name);
15461546

15471547
return class_entry;

0 commit comments

Comments
 (0)