diff --git a/geoip/geoip.php b/geoip/geoip.php index 0108871f..5ec47af2 100644 --- a/geoip/geoip.php +++ b/geoip/geoip.php @@ -1,6 +1,6 @@ @@ -206,5 +206,53 @@ define ('GEOIP_DIALUP_SPEED', 1); define ('GEOIP_CABLEDSL_SPEED', 2); define ('GEOIP_CORPORATE_SPEED', 3); -// End of geoip v.1.0.8 -?> +/** + * (PECL geoip >= 1.1.0)
+ *

+ * The geoip_asnum_by_name() function will return the Autonomous System Numbers (ASN) associated with an IP address. + *

+ * @link https://secure.php.net/manual/en/function.geoip-asnum-by-name.php + * @param string $hostname The hostname or IP address + * + * @return string|false Returns the ASN on success, or FALSE if the address cannot be found in the database. + * @since 1.1.0 + */ +function geoip_asnum_by_name ($hostname) {} + +/** + * (PECL geoip >= 1.1.0)
+ *

+ * The geoip_netspeedcell_by_name() function will return the Internet connection type and speed corresponding to a hostname or an IP address.
+ *
+ * This function is only available if using GeoIP Library version 1.4.8 or newer.
+ *
+ * This function is currently only available to users who have bought a commercial GeoIP NetSpeedCell Edition. A warning will be issued if the proper database cannot be located.
+ *
+ * The return value is a string, common values are:
+ * - Cable/DSL
+ * - Dialup
+ * - Cellular
+ * - Corporate
+ *

+ * @link https://secure.php.net/manual/en/function.geoip-netspeedcell-by-name.php + * @param string $hostname The hostname or IP address + * + * @return string|false Returns the connection speed on success, or FALSE if the address cannot be found in the database. + * @since 1.1.0 + */ +function geoip_netspeedcell_by_name ($hostname) {} + +/** + * (PECL geoip >= 1.1.0)
+ *

+ * The geoip_setup_custom_directory() function will change the default directory of the GeoIP database. This is equivalent to changing geoip.custom_directory + *

+ * @link https://secure.php.net/manual/en/function.geoip-setup-custom-directory.php + * @param string $path The full path of where the GeoIP database is on disk. + * + * @return void + * @since 1.1.0 + */ +function geoip_setup_custom_directory ($path) {} + +// End of geoip v.1.1.0 \ No newline at end of file diff --git a/meta/.phpstorm.meta.php b/meta/.phpstorm.meta.php index 3752fb08..f8743b5f 100644 --- a/meta/.phpstorm.meta.php +++ b/meta/.phpstorm.meta.php @@ -417,6 +417,7 @@ namespace PHPSTORM_META { expectedArguments(\debug_print_backtrace(), 0, DEBUG_BACKTRACE_IGNORE_ARGS); expectedArguments(\debug_backtrace(), 0, DEBUG_BACKTRACE_PROVIDE_OBJECT|DEBUG_BACKTRACE_IGNORE_ARGS); + expectedArguments(\geoip_database_info(), 0, GEOIP_COUNTRY_EDITION,GEOIP_REGION_EDITION_REV0,GEOIP_CITY_EDITION_REV0,GEOIP_ORG_EDITION,GEOIP_ISP_EDITION,GEOIP_CITY_EDITION_REV1,GEOIP_REGION_EDITION_REV1,GEOIP_PROXY_EDITION,GEOIP_ASNUM_EDITION,GEOIP_NETSPEED_EDITION,GEOIP_DOMAIN_EDITION); expectedArguments(\count_chars(), 1, 0, 1, 2, 3, 4); expectedArguments(\cubrid_fetch_array(), 1, CUBRID_NUM, CUBRID_ASSOC, CUBRID_BOTH); expectedArguments(\imagelayereffect(), 1, IMG_EFFECT_REPLACE, IMG_EFFECT_ALPHABLEND, IMG_EFFECT_NORMAL, IMG_EFFECT_OVERLAY, IMG_EFFECT_MULTIPLY);