diff options
author | Felipe Pena <felipe@php.net> | 2010-06-16 23:33:01 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2010-06-16 23:33:01 +0000 |
commit | 5bf26f9a90bd2867cf84ce24995ce05f5a4bbbe6 (patch) | |
tree | 0bbfa94ff60a723ba17fdbc178ba839effcc25e2 | |
parent | 93cd95fb3549439753cf3de66d85d9a962501597 (diff) | |
download | php-git-5bf26f9a90bd2867cf84ce24995ce05f5a4bbbe6.tar.gz |
- New tests related to #52098
-rw-r--r-- | ext/pdo/tests/pdo_037.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/pdo/tests/pdo_037.phpt b/ext/pdo/tests/pdo_037.phpt new file mode 100644 index 0000000000..a0ead4b75f --- /dev/null +++ b/ext/pdo/tests/pdo_037.phpt @@ -0,0 +1,19 @@ +--TEST-- +Crash when calling a method of a class that inherits PDOStatement +--SKIPIF-- +<?php +if (!extension_loaded('pdo')) die('skip'); +?> +--FILE-- +<?php + +class MyStatement extends PDOStatement +{ +} + +$obj = new MyStatement; +var_dump($obj->foo()); + +?> +--EXPECTF-- +Fatal error: Call to undefined method MyStatement::foo() in %s on line %d |