Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
  Fix lineno for inheritance errors of early bound classes
This commit is contained in:
Ilija Tovilo 2024-10-22 15:17:11 +02:00
commit e02085359d
No known key found for this signature in database
GPG key ID: 5050C66BFCD1015A
3 changed files with 24 additions and 0 deletions

View file

@ -3410,6 +3410,8 @@ ZEND_API zend_class_entry *zend_try_early_bind(zend_class_entry *ce, zend_class_
CG(current_linking_class) = is_cacheable ? ce : NULL;
zend_try{
CG(zend_lineno) = ce->info.user.line_start;
if (is_cacheable) {
zend_begin_record_errors();
}