summaryrefslogtreecommitdiff
path: root/ext/pdo/tests/pdo_037.phpt
blob: fb4c5e1e83ded34a459e9bc3df6c46b627ee330a (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 Error: Call to undefined method MyStatement::foo() in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d