summaryrefslogtreecommitdiff
path: root/Zend/tests/bug34045.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug34045.phpt')
-rwxr-xr-xZend/tests/bug34045.phpt28
1 files changed, 0 insertions, 28 deletions
diff --git a/Zend/tests/bug34045.phpt b/Zend/tests/bug34045.phpt
deleted file mode 100755
index 61886cf354..0000000000
--- a/Zend/tests/bug34045.phpt
+++ /dev/null
@@ -1,28 +0,0 @@
---TEST--
-Bug #34045 (Buffer overflow with serialized object)
---FILE--
-<?php
-class BasicSingleton
-{
- private static $instance;
-
- public function __wakeup() {
- self::$instance = $this;
- }
-
- public static function singleton() {
- if (!(self::$instance instanceof BasicSingleton)) {
- $c = __CLASS__;
- self::$instance = new $c;
- }
- return self::$instance;
- }
-}
-
-$db = BasicSingleton::singleton();
-$db_str = serialize($db);
-$db2 = unserialize($db_str);
-echo "ok\n";
-?>
---EXPECT--
-ok