mirror of
https://github.com/php/php-src.git
synced 2026-04-29 19:23:22 +02:00
9452257b04
The __construct function name was leaked. Avoid this by simply throwing directly from row_get_ctor instead of indirecting through an actual __construct function.
16 lines
309 B
PHP
16 lines
309 B
PHP
--TEST--
|
|
Trying instantiate a PDORow object manually
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded('pdo')) die('skip'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
new PDORow;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught PDOException: You may not create a PDORow manually in %spdorow.php:3
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %spdorow.php on line 3
|