[php] Fix widespread use of bare strings in testsuite

These generate warnings with PHP 7.3, which will become errors in a
future version.
This commit is contained in:
Olly Betts 2019-02-08 15:32:30 +13:00
commit 704ec59f29
47 changed files with 95 additions and 99 deletions

View file

@ -31,8 +31,8 @@ class check {
$extra=array();
$extrags=array();
$df=get_defined_functions();
$df=array_flip($df[internal]);
foreach($_original_functions[internal] as $func) unset($df[$func]);
$df=array_flip($df['internal']);
foreach($_original_functions['internal'] as $func) unset($df[$func]);
// Now chop out any get/set accessors
foreach(array_keys($df) as $func)
if ((self::GETSET && preg_match('/_[gs]et$/', $func)) ||