Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

nielsdos
Copy link
Member

Does fix #13097
But does not fix #13142 (see #13142 (comment))

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks sensible to me, @iluuu1994 ?

Comment on lines 1131 to 1132
// TODO Change to void
RETURN_TRUE;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Random aside: the stub for this function is bool instead of true.

php_printf("%s<br />\n<b>%s</b>: %s in <b>%s</b> on line <b>%" PRIu32 "</b><br />\n%s", STR_PRINT(prepend_string), error_type_str, ZSTR_VAL(message), ZSTR_VAL(error_filename), error_lineno, STR_PRINT(append_string));
zval tmp;
ZVAL_STR(&tmp, message);
php_printf_unchecked("%s<br />\n<b>%s</b>: %Z in <b>%s</b> on line <b>%" PRIu32 "</b><br />\n%s", STR_PRINT(prepend_string), error_type_str, &tmp, ZSTR_VAL(error_filename), error_lineno, STR_PRINT(append_string));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it possibly makes sense to create a new custom format for master %S that takes a zend_string?

Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nielsdos nielsdos closed this in 2cde4b2 Jan 16, 2024
nicolas-grekas added a commit to symfony/symfony that referenced this pull request Feb 22, 2024
… classes on PHP >= 8.3.3 (nicolas-grekas)

This PR was merged into the 5.4 branch.

Discussion
----------

[ErrorHandler] Fix parsing messages that contain anonymous classes on PHP >= 8.3.3

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

Follows php/php-src#13153 and #40065

Commits
-------

699f400 [ErrorHandler] Fix parsing messages that contain anonymous classes on PHP >= 8.3.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Anonymous class reference in trigger_error / thrown Exception
3 participants