xref: /PHP-8.1/ext/pdo/tests/pdo_037.phpt (revision 74859783)
1--TEST--
2Crash when calling a method of a class that inherits PDOStatement
3--EXTENSIONS--
4pdo
5--FILE--
6<?php
7
8class MyStatement extends PDOStatement
9{
10}
11
12$obj = new MyStatement;
13var_dump($obj->foo());
14
15?>
16--EXPECTF--
17Fatal error: Uncaught Error: Call to undefined method MyStatement::foo() in %s:%d
18Stack trace:
19#0 {main}
20  thrown in %s on line %d
21