PHP Deprecated causes failures #47

Closed
opened 2026-01-24 11:40:31 +01:00 by admin · 3 comments
Owner

Originally created by @hollyhuiLi on GitHub (Sep 5, 2019).

For deprecated functions, both message and behavior are different

Related test cases:
ext/mbstring/tests/bug52931.phpt
ext/opcache/tests/bug68644.phpt
ext/opcache/tests/bug75729.phpt
zend/tests/bug47320.phpt

Example diff for ext/mbstring/tests/bug52931.phpt
@@ -1,5 +1,1 @@
+PHP Deprecated: The mbstring.func_overload directive is deprecated in Unknown on line 0
-Deprecated: The mbstring.func_overload directive is deprecated in Unknown on line 0
-int(27)
-int(27)
-int(20)
-int(20)

Originally created by @hollyhuiLi on GitHub (Sep 5, 2019). For deprecated functions, both message and behavior are different Related test cases: ext/mbstring/tests/bug52931.phpt ext/opcache/tests/bug68644.phpt ext/opcache/tests/bug75729.phpt zend/tests/bug47320.phpt Example diff for ext/mbstring/tests/bug52931.phpt @@ -1,5 +1,1 @@ +PHP Deprecated: The mbstring.func_overload directive is deprecated in Unknown on line 0 -Deprecated: The mbstring.func_overload directive is deprecated in Unknown on line 0 -int(27) -int(27) -int(20) -int(20)
admin added the bug label 2026-01-24 11:40:31 +01:00
admin closed this issue 2026-01-24 11:40:31 +01:00
Author
Owner

@cmb69 commented on GitHub (Sep 5, 2019):

Apparently, your INI settings are display_errors=0 (which suppresses the expected message) and log_errors=1 (which triggers the message you've got). I wonder why error_log defaults to on; might be something that we want to change. Anyhow, you have to fix your php.ini accordingly.

@cmb69 commented on GitHub (Sep 5, 2019): Apparently, your INI settings are `display_errors=0` (which suppresses the expected message) and `log_errors=1` (which triggers the message you've got). I wonder why [`error_log` defaults to on](https://github.com/php/pftt2/blob/1354c8c0f18ed9a49f3fd353d8a6f823131ea7b6/src/com/mostc/pftt/model/smoke/RequiredExtensionsSmokeTest.java#L237); might be something that we want to change. Anyhow, you have to fix your php.ini accordingly.
Author
Owner

@cmb69 commented on GitHub (Oct 10, 2019):

Since this is just about a PHP INI setting, I'm closing this ticket. Thanks.

@cmb69 commented on GitHub (Oct 10, 2019): Since this is just about a PHP INI setting, I'm closing this ticket. Thanks.
Author
Owner

@cmb69 commented on GitHub (Oct 17, 2019):

Well, actually this is a bug in PFTT, since it uses wrong defaults for these INI settings.

@cmb69 commented on GitHub (Oct 17, 2019): Well, actually this is a bug in PFTT, since it uses wrong defaults for these INI settings.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: php/pftt2#47