Sfoglia il codice sorgente

Remove count() echo statements

These cause the test to fail on old v8 versions like 3.24.10
since the Array.prototype.push implementation calls count() twice
with that version (causing a second echo-line that makes the
test fail).
Stefan Siegl 10 anni fa
parent
commit
b25960786d
1 ha cambiato i file con 0 aggiunte e 4 eliminazioni
  1. 0 4
      tests/array_access_002.phpt

+ 0 - 4
tests/array_access_002.phpt

@@ -28,7 +28,6 @@ class MyArray implements ArrayAccess, Countable {
     }
 
     public function count() {
-	echo 'count() = ', count($this->data), "\n";
         return count($this->data);
     }
 }
@@ -51,11 +50,8 @@ $v8->executeString('var_dump(PHP.myarr.join(","));');
 ?>
 ===EOF===
 --EXPECT--
-count() = 3
 set[3] = 23
-count() = 4
 int(4)
 int(23)
-count() = 4
 string(16) "one,two,three,23"
 ===EOF===