fedora-cvs-commits@redhat.com
[Top] [All Lists]

rpms/php-pear/devel relocate.php,1.2,1.3

Subject: rpms/php-pear/devel relocate.php,1.2,1.3
From:
Date: Mon, 5 Feb 2007 07:48:00 -0500
Author: jorton

Update of /cvs/dist/rpms/php-pear/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv17573

Modified Files:
        relocate.php 
Log Message:
- relocate array keys safely



Index: relocate.php
===================================================================
RCS file: /cvs/dist/rpms/php-pear/devel/relocate.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- relocate.php        5 Feb 2007 12:33:03 -0000       1.2
+++ relocate.php        5 Feb 2007 12:47:58 -0000       1.3
@@ -37,7 +37,9 @@
     $result = array();
 
     foreach ($array as $key => $value) {
-        $key = relocate_string($key);
+        if (is_string($key)) {
+            $key = relocate_string($key);
+        }
         $result[$key] = relocate_value($value);
     }
 

-- 
fedora-cvs-commits mailing list
fedora-cvs-commits@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-cvs-commits

<Prev in Thread] Current Thread [Next in Thread>
  • rpms/php-pear/devel relocate.php,1.2,1.3, fedora-cvs-commits <=