digitalnature / php-ref

A better alternative to print_r / var_dump
347 stars 59 forks source link

preg_grep() error line 773 #32

Closed marekpw closed 9 years ago

marekpw commented 9 years ago

ErrorException in ref.php line 773: preg_grep(): Compilation failed: unknown property name after \P or \p at offset 12

Bukashk0zzz commented 9 years ago

Have same issue ErrorException in ref.php line 804: preg_grep(): Compilation failed: unknown property name after \P or \p at offset 12

Bukashk0zzz commented 9 years ago

I changed

if(!$function || !preg_grep("/{$function}/i" , static::$config['shortcutFunc']))

to

if(!$function || !in_array((string)$function , static::$config['shortcutFunc']))

And now all ok.