summaryrefslogtreecommitdiff
path: root/ext/pdo/tests/pdo_037.phpt
blob: 3d9bc59dd07e3680bdca4d96d6f98491cf719a7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--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: Uncaught EngineException: Call to undefined method MyStatement::foo() in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d