mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 10:17:23 +01:00
Update Base.php to include 'mysql_*' in the list of restricted functions
This commit is contained in:
@ -23,10 +23,24 @@ final class Base extends AbstractPreset
|
|||||||
'dump',
|
'dump',
|
||||||
'ray',
|
'ray',
|
||||||
'die',
|
'die',
|
||||||
'goto',
|
'goto',
|
||||||
'var_dump',
|
'var_dump',
|
||||||
'phpinfo',
|
'phpinfo',
|
||||||
'echo',
|
'echo',
|
||||||
|
'mysql_connect',
|
||||||
|
'mysql_pconnect',
|
||||||
|
'mysql_query',
|
||||||
|
'mysql_select_db',
|
||||||
|
'mysql_fetch_array',
|
||||||
|
'mysql_fetch_assoc',
|
||||||
|
'mysql_fetch_object',
|
||||||
|
'mysql_fetch_row',
|
||||||
|
'mysql_num_rows',
|
||||||
|
'mysql_affected_rows',
|
||||||
|
'mysql_free_result',
|
||||||
|
'mysql_insert_id',
|
||||||
|
'mysql_error',
|
||||||
|
'mysql_real_escape_string',
|
||||||
'print',
|
'print',
|
||||||
'print_r',
|
'print_r',
|
||||||
'var_export',
|
'var_export',
|
||||||
@ -71,7 +85,7 @@ final class Base extends AbstractPreset
|
|||||||
'xdebug_stop_trace',
|
'xdebug_stop_trace',
|
||||||
'xdebug_time_index',
|
'xdebug_time_index',
|
||||||
'xdebug_var_dump',
|
'xdebug_var_dump',
|
||||||
'trap',
|
'trap',
|
||||||
])->not->toBeUsed();
|
])->not->toBeUsed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user