diff options
author | Tyson Andre <tysonandre775@hotmail.com> | 2019-06-09 16:55:56 -0400 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2019-06-11 09:09:50 +0200 |
commit | cdc82f19d8b6dc72f74abb819eab24589e3aa489 (patch) | |
tree | be70600cb6818127d29c4f3f1d349ca648dff80b /ext/standard/string.c | |
parent | 678e3eb0b70c01d1c17d7d28dae7994b77184268 (diff) | |
download | php-git-cdc82f19d8b6dc72f74abb819eab24589e3aa489.tar.gz |
Fix php 8.0's opcache flags for pathinfo()
See https://php.net/pathinfo
This fixes a bug introduced in the cleanup for commit
0d79c70cf3c10f60a2e8fbfd68903d8716b7b43c
`pathinfo($str, PATHINFO_EXTENSION)` will always return a string
(if there is no extension, the function returns the empty string)
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r-- | ext/standard/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index 8fb256970d..5c56bb4f62 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -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 */ PHP_FUNCTION(pathinfo) { |