Added new functions of geoip 1.1.0 WI-45203 (#504)
Added new functions of geoip 1.1.0 WI-45203
This commit is contained in:
parent
87a531acc5
commit
d446777319
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
// Start of geoip v.1.0.8
|
||||
// Start of geoip v.1.1.0
|
||||
|
||||
/**
|
||||
* (PECL geoip >= 0.2.0)<br/>
|
||||
|
@ -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)<br/>
|
||||
* <p>
|
||||
* The geoip_asnum_by_name() function will return the Autonomous System Numbers (ASN) associated with an IP address.
|
||||
* </p>
|
||||
* @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 <b>FALSE</b> if the address cannot be found in the database.
|
||||
* @since 1.1.0
|
||||
*/
|
||||
function geoip_asnum_by_name ($hostname) {}
|
||||
|
||||
/**
|
||||
* (PECL geoip >= 1.1.0)<br/>
|
||||
* <p>
|
||||
* The geoip_netspeedcell_by_name() function will return the Internet connection type and speed corresponding to a hostname or an IP address.<br>
|
||||
* <br>
|
||||
* This function is only available if using GeoIP Library version 1.4.8 or newer.<br>
|
||||
* <br>
|
||||
* 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.<br >
|
||||
* <br>
|
||||
* The return value is a string, common values are:<br>
|
||||
* - Cable/DSL<br>
|
||||
* - Dialup<br>
|
||||
* - Cellular<br>
|
||||
* - Corporate<br>
|
||||
* </p>
|
||||
* @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 <b>FALSE</b> if the address cannot be found in the database.
|
||||
* @since 1.1.0
|
||||
*/
|
||||
function geoip_netspeedcell_by_name ($hostname) {}
|
||||
|
||||
/**
|
||||
* (PECL geoip >= 1.1.0)<br/>
|
||||
* <p>
|
||||
* The geoip_setup_custom_directory() function will change the default directory of the GeoIP database. This is equivalent to changing geoip.custom_directory
|
||||
* </p>
|
||||
* @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
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue