diff --git a/ext/pdo/tests/bug61292.phpt b/ext/pdo/tests/bug61292.phpt new file mode 100644 index 00000000000..2381fd1a238 --- /dev/null +++ b/ext/pdo/tests/bug61292.phpt @@ -0,0 +1,36 @@ +--TEST-- +Bug #61292 (Segfault while calling a method on an overloaded PDO object) +--SKIPIF-- + +--FILE-- + TRUE); + parent::__construct(getenv("PDOTEST_DSN"), getenv("PDOTEST_USER"), getenv("PDOTEST_PASS"), $options); + } + + var $bar = array(); + + public function foo() + { + var_dump($this->bar); + } +} + +(new Database_SQL)->foo(); +?> +--EXPECTF-- +array(0) { +}