summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2010-06-16 23:33:01 +0000
committerFelipe Pena <felipe@php.net>2010-06-16 23:33:01 +0000
commit42c4bafbbd429c47a585ff9db2fa74dc70c88c66 (patch)
tree0c907dc9746af34a88187ff529a870640cde2504
parentd596ea742a1b08f0eab8c5d0bd2a06b73039002c (diff)
downloadphp-git-42c4bafbbd429c47a585ff9db2fa74dc70c88c66.tar.gz
- New tests related to #52098
-rw-r--r--ext/pdo/tests/pdo_037.phpt19
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