mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Fix php 8.0's opcache flags for pathinfo()
See https://php.net/pathinfo
This fixes a bug introduced in the cleanup for commit
0d79c70cf3
`pathinfo($str, PATHINFO_EXTENSION)` will always return a string
(if there is no extension, the function returns the empty string)
This commit is contained in:
parent
678e3eb0b7
commit
cdc82f19d8
@ -194,7 +194,7 @@ static const func_info_t func_infos[] = {
|
|||||||
FN("nl2br", MAY_BE_STRING),
|
FN("nl2br", MAY_BE_STRING),
|
||||||
F1("basename", MAY_BE_STRING),
|
F1("basename", MAY_BE_STRING),
|
||||||
F1("dirname", MAY_BE_NULL | MAY_BE_STRING),
|
F1("dirname", MAY_BE_NULL | MAY_BE_STRING),
|
||||||
F1("pathinfo", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_STRING),
|
F1("pathinfo", MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_STRING),
|
||||||
F1("stripslashes", MAY_BE_STRING),
|
F1("stripslashes", MAY_BE_STRING),
|
||||||
F1("stripcslashes", MAY_BE_STRING),
|
F1("stripcslashes", MAY_BE_STRING),
|
||||||
F1("strstr", MAY_BE_FALSE | MAY_BE_STRING),
|
F1("strstr", MAY_BE_FALSE | MAY_BE_STRING),
|
||||||
|
@ -1666,7 +1666,7 @@ PHP_FUNCTION(dirname)
|
|||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* {{{ proto array pathinfo(string path[, int options])
|
/* {{{ proto array|string pathinfo(string path[, int options])
|
||||||
Returns information about a certain string */
|
Returns information about a certain string */
|
||||||
PHP_FUNCTION(pathinfo)
|
PHP_FUNCTION(pathinfo)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user