mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
- New tests related to #52098
This commit is contained in:
parent
d596ea742a
commit
42c4bafbbd
1 changed files with 19 additions and 0 deletions
19
ext/pdo/tests/pdo_037.phpt
Normal file
19
ext/pdo/tests/pdo_037.phpt
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue