php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch 0001-tests-014.phpt-Fix-checking-timezone-info-with-some-.patch for geoip Bug #61834

Patch version 2012-04-24 11:55 UTC

Return to Bug #61834 | Download this patch
Patch Revisions:

Developer: solo@altlinux.ru

From b1912fa9e8a1a88fa609d9dfcbbda7d50b75148f Mon Sep 17 00:00:00 2001
From: Aleksey Avdeev <solo@altlinux.ru>
Date: Mon, 23 Apr 2012 21:20:03 +0400
Subject: [PATCH] tests/014.phpt: Fix checking timezone info with (some) empty fields
 for lib GeoIP >= 1.4.5

Signed-off-by: Aleksey Avdeev <solo@altlinux.ru>
---
 tests/014.phpt |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/014.phpt b/tests/014.phpt
index a673963..f530786 100644
--- a/tests/014.phpt
+++ b/tests/014.phpt
@@ -7,17 +7,17 @@ Checking timezone info with (some) empty fields
 --FILE--
 <?php
 
-var_dump(geoip_time_zone_by_country_and_region('CA',''));
-var_dump(geoip_time_zone_by_country_and_region('CA',NULL));
-var_dump(geoip_time_zone_by_country_and_region('CA'));
+var_dump(geoip_time_zone_by_country_and_region('CF',''));
+var_dump(geoip_time_zone_by_country_and_region('CF',NULL));
+var_dump(geoip_time_zone_by_country_and_region('CF'));
 var_dump(geoip_time_zone_by_country_and_region(NULL,''));
 var_dump(geoip_time_zone_by_country_and_region(NULL,NULL));
 
 ?>
 --EXPECTF--
-string(%d) "America/%s"
-string(%d) "America/%s"
-string(%d) "America/%s"
+string(%d) "Africa/%s"
+string(%d) "Africa/%s"
+string(%d) "Africa/%s"
 
 Warning: geoip_time_zone_by_country_and_region(): You need to specify at least the country code. in %s on line %d
 bool(false)
-- 
1.7.3.4

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 06:01:29 2024 UTC