Skip to content

Commit d584681

Browse files
Tweaks and improvements
1 parent 3f4ff4f commit d584681

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

Zend/tests/attributes/constants/named_parameter_validation.phpt

Lines changed: 0 additions & 14 deletions
This file was deleted.

Zend/tests/attributes/deprecated/constants/error_code.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ set_error_handler(function (int $errno, string $errstr, ?string $errfile = null,
88
});
99

1010
#[\Deprecated]
11-
const Example = 5;
11+
const EXAMPLE = 5;
1212

13-
Example;
13+
EXAMPLE;
1414

1515
?>
1616
--EXPECT--

Zend/zend_vm_def.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8285,6 +8285,7 @@ ZEND_VM_HANDLER(210, ZEND_DECLARE_ATTRIBUTED_CONST, CONST, CONST)
82858285

82868286
HashTable *attributes = Z_PTR_P(GET_OP_DATA_ZVAL_PTR(BP_VAR_R));
82878287
zend_constant *registered = zend_get_constant_ptr(c.name);
8288+
ZEND_ASSERT(attributes != NULL);
82888289
ZEND_ASSERT(registered != NULL);
82898290
zend_constant_add_attributes(registered, attributes);
82908291

Zend/zend_vm_execute.h

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)