]> granicus.if.org Git - php/commitdiff
- New tests related to #52098
authorFelipe Pena <felipe@php.net>
Wed, 16 Jun 2010 23:33:01 +0000 (23:33 +0000)
committerFelipe Pena <felipe@php.net>
Wed, 16 Jun 2010 23:33:01 +0000 (23:33 +0000)
ext/pdo/tests/pdo_037.phpt [new file with mode: 0644]

diff --git a/ext/pdo/tests/pdo_037.phpt b/ext/pdo/tests/pdo_037.phpt
new file mode 100644 (file)
index 0000000..a0ead4b
--- /dev/null
@@ -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