com php-src: Fix test location: ext/gmp/bug67917.phpt ext/gmp/tests/bug67917.phpt
| From: | Kalle Sommer Nielsen | Date: | Thu, 17 Aug 2017 20:11:20 +0000 |
| Subject: | com php-src: Fix test location: ext/gmp/bug67917.phpt ext/gmp/tests/bug67917.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99076@lists.php.net to get a copy of this message | ||
Commit: 0ae3b45d25896bdce3791d97250f6338367009c0
Author: Kalle Sommer Nielsen <kalle@php.net> Thu, 17 Aug 2017 22:11:20 +0200
Parents: 8bcc4eea8b818100dd11ed3ef1c0fe1086e8f034
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0ae3b45d25896bdce3791d97250f6338367009c0
Log:
Fix test location
Changed paths:
D ext/gmp/bug67917.phpt
A ext/gmp/tests/bug67917.phpt
Diff:
diff --git a/ext/gmp/bug67917.phpt b/ext/gmp/bug67917.phpt
deleted file mode 100644
index 93d46cb..0000000
--- a/ext/gmp/bug67917.phpt
+++ /dev/null
@@ -1,17 +0,0 @@
---TEST--
-Bug #67917: Using GMP objects with overloaded operators can cause memory exhaustion
---FILE--
-<?php
-
-$mem1 = memory_get_usage();
-for ($i = 0; $i < 1000; $i++) {
- $gmp = gmp_init(42);
- $gmp <<= 1;
-}
-$mem2 = memory_get_usage();
-
-var_dump($mem2 - $mem1 < 100000);
-
-?>
---EXPECT--
-bool(true)
diff --git a/ext/gmp/tests/bug67917.phpt b/ext/gmp/tests/bug67917.phpt
new file mode 100644
index 0000000..93d46cb
--- /dev/null
+++ b/ext/gmp/tests/bug67917.phpt
@@ -0,0 +1,17 @@
+--TEST--
+Bug #67917: Using GMP objects with overloaded operators can cause memory exhaustion
+--FILE--
+<?php
+
+$mem1 = memory_get_usage();
+for ($i = 0; $i < 1000; $i++) {
+ $gmp = gmp_init(42);
+ $gmp <<= 1;
+}
+$mem2 = memory_get_usage();
+
+var_dump($mem2 - $mem1 < 100000);
+
+?>
+--EXPECT--
+bool(true)