Created
June 20, 2019 15:53
-
-
Save fabtho/edd0d6e05db976bb6293272c00d015b2 to your computer and use it in GitHub Desktop.
search for PHP 5.6 function not working in PHP 7.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source http://php.net/manual/en/migration70.incompatible.php | |
# Changes to the handling of indirect variables, properties, and methods | |
ag --php --literal \$\$ . | |
# list() no longer assigns variables in reverse order, change in list($a[], $a[], $a[]) = [1, 2, 3]; | |
ag --php " list\(.*?\[.*?\)" | |
# Empty list() assignments have been removed | |
ag --php --literal " list()" | |
# Array ordering when elements are automatically created during by reference assignments has changed | |
ag --php --literal " =& " | |
# Negative bitshifts | |
ag --php " >>.*?-" | |
# Hexadecimal strings are no longer considered numeric | |
ag --php --literal "is_numeric" | |
# \u{ may cause errors | |
ag --php --literal "\u{" | |
# Removed functions | |
ag --php "call_user_method.*?\(" | |
ag --php "call_user_method_array.*?\(" | |
ag --php "ereg_replace.*?\(" | |
ag --php "ereg.*?\(" | |
ag --php "eregi.*?\(" | |
#fix: eregi('pattern', $string, $matches) -> preg_match('/pattern/i', $string, $matches) | |
ag --php "eregi_replace.*?\(" | |
ag --php "split.*?\(" | |
ag --php "spliti.*?\(" | |
ag --php "sql_regcase.*?\(" | |
ag --php "mcrypt_generic_end.*?\(" | |
ag --php "mcrypt_ecb.*?\(" | |
ag --php "mcrypt_cbc.*?\(" | |
ag --php "mcrypt_cfb.*?\(" | |
ag --php "mcrypt_ofb" | |
# All ext/mysql functions were removed. For details about choosing a different MySQL API, see Choosing a MySQL API.*?\(. | |
ag --php "mysql_affected_rows.*?\(" | |
ag --php "mysql_client_encoding.*?\(" | |
ag --php "mysql_close.*?\(" | |
ag --php "mysql_connect.*?\(" | |
ag --php "mysql_create_db.*?\(" | |
ag --php "mysql_data_seek.*?\(" | |
ag --php "mysql_db_name.*?\(" | |
ag --php "mysql_db_query.*?\(" | |
ag --php "mysql_drop_db.*?\(" | |
ag --php "mysql_errno.*?\(" | |
ag --php "mysql_error.*?\(" | |
ag --php "mysql_escape_string.*?\(" | |
ag --php "mysql_fetch_array.*?\(" | |
ag --php "mysql_fetch_assoc.*?\(" | |
ag --php "mysql_fetch_field.*?\(" | |
ag --php "mysql_fetch_lengths.*?\(" | |
ag --php "mysql_fetch_object.*?\(" | |
ag --php "mysql_fetch_row.*?\(" | |
ag --php "mysql_field_flags.*?\(" | |
ag --php "mysql_field_len.*?\(" | |
ag --php "mysql_field_name.*?\(" | |
ag --php "mysql_field_seek.*?\(" | |
ag --php "mysql_field_table.*?\(" | |
ag --php "mysql_field_type.*?\(" | |
ag --php "mysql_free_result.*?\(" | |
ag --php "mysql_get_client_info.*?\(" | |
ag --php "mysql_get_host_info.*?\(" | |
ag --php "mysql_get_proto_info.*?\(" | |
ag --php "mysql_get_server_info.*?\(" | |
ag --php "mysql_info.*?\(" | |
ag --php "mysql_insert_id.*?\(" | |
ag --php "mysql_list_dbs.*?\(" | |
ag --php "mysql_list_fields.*?\(" | |
ag --php "mysql_list_processes.*?\(" | |
ag --php "mysql_list_tables.*?\(" | |
ag --php "mysql_num_fields.*?\(" | |
ag --php "mysql_num_rows.*?\(" | |
ag --php "mysql_pconnect.*?\(" | |
ag --php "mysql_ping.*?\(" | |
ag --php "mysql_query.*?\(" | |
ag --php "mysql_real_escape_string.*?\(" | |
ag --php "mysql_result.*?\(" | |
ag --php "mysql_select_db.*?\(" | |
ag --php "mysql_set_charset.*?\(" | |
ag --php "mysql_stat.*?\(" | |
ag --php "mysql_tablename.*?\(" | |
ag --php "mysql_thread_id.*?\(" | |
ag --php "mysql_unbuffered_query" | |
# All ext/mysql functions were removed. For details about choosing a different MySQL API, see Choosing a MySQL API. | |
# not done | |
#intl aliase.*?\(s | |
ag --php "datefmt_set_timezone_id.*?\(" | |
ag --php "IntlDateFormatter::setTimeZoneID" | |
#GD Type1 functions | |
ag --php "imagepsbbox*?\(" | |
ag --php "imagepsencodefont.*?\(" | |
ag --php "imagepsextendfont.*?\(" | |
ag --php "imagepsfreefont.*?\(" | |
ag --php "imagepsloadfont.*?\(" | |
ag --php "imagepsslantfont.*?\(" | |
ag --php "imagepstext.*?\(" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment