Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ PHP NEWS
(timwolla)
. Returning null from __debugInfo() has been deprecated. (DanielEScherzer)
. Support #[\Override] on properties. (Jiří Pudil)
. The report_memleaks and register_argc_argv INI directives have been
deprecated. (alexandre-daubois)

- Curl:
. The curl_close() function has been deprecated. (DanielEScherzer)
Expand Down
1 change: 1 addition & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ PHP 8.5 UPGRADE NOTES
. Returning null from __debugInfo() has been deprecated.
Return an empty array instead.
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_debuginfo_returning_null
. The report_memleaks and register_argc_argv INI directives have been deprecated.

- Curl:
. The curl_close() function has been deprecated, as CurlHandle objects are
Expand Down
2 changes: 2 additions & 0 deletions main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2397,6 +2397,8 @@ zend_result php_module_startup(sapi_module_struct *sf, zend_module_entry *additi
"Directive '%s' is deprecated",
{
"allow_url_include",
"report_memleaks",
"register_argc_argv",
NULL
}
},
Expand Down
3 changes: 3 additions & 0 deletions php.ini-development
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ ignore_repeated_errors = Off
; https://php.net/ignore-repeated-source
ignore_repeated_source = Off

; DEPRECATED: This INI setting is deprecated and will be removed in PHP 9.0.
; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This is only effective in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
Expand Down Expand Up @@ -670,6 +671,8 @@ variables_order = "GPCS"
; https://php.net/request-order
request_order = "GP"

; DEPRECATED: This INI setting is deprecated and will be hardcoded to Off in
; no-CLI SAPI and On in CLI SAPI on PHP 9.0.
; This directive determines whether PHP registers $argv & $argc each time it
; runs. $argv contains an array of all the arguments passed to PHP when a script
; is invoked. $argc contains an integer representing the number of arguments
Expand Down
3 changes: 3 additions & 0 deletions php.ini-production
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ ignore_repeated_errors = Off
; https://php.net/ignore-repeated-source
ignore_repeated_source = Off

; DEPRECATED: This INI setting is deprecated and will be removed in PHP 9.0.
; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This is only effective in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
Expand Down Expand Up @@ -672,6 +673,8 @@ variables_order = "GPCS"
; https://php.net/request-order
request_order = "GP"

; DEPRECATED: This INI setting is deprecated and will be hardcoded to Off in
; no-CLI SAPI and On in CLI SAPI on PHP 9.0.
; This directive determines whether PHP registers $argv & $argc each time it
; runs. $argv contains an array of all the arguments passed to PHP when a script
; is invoked. $argc contains an integer representing the number of arguments
Expand Down
14 changes: 14 additions & 0 deletions tests/basic/ini_directive_deprecated.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--TEST--
Deprecated INI directive report_memleaks/register_argc_argv warning
--INI--
register_argc_argv=1
report_memleaks=1
--FILE--
<?php
echo "Testing deprecated report_memleaks INI directive.\n";
?>
--EXPECT--
Deprecated: Directive 'report_memleaks' is deprecated in Unknown on line 0

Deprecated: Directive 'register_argc_argv' is deprecated in Unknown on line 0
Testing deprecated report_memleaks INI directive.
Loading