ywarnier пре 14 година
родитељ
комит
d077843994
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      tests/simpletest/compatibility.php

+ 1 - 0
tests/simpletest/compatibility.php

@@ -21,6 +21,7 @@ class SimpleTestCompatibility {
      */
     function copy($object) {
         if (version_compare(phpversion(), '5') >= 0) {
+            $copy = null;
             eval('$copy = clone $object;');
             return $copy;
         }