mirror of
https://github.com/php/php-src.git
synced 2025-01-12 05:54:13 +08:00
1934d6d9ab
c/p mistake :)
18 lines
359 B
PHP
18 lines
359 B
PHP
--TEST--
|
|
Bug #70914 zend_throw_or_error() format string vulnerability
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded("pdo_sqlite")) {
|
|
die("skip pdo_sqlite required");
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$db = new PDO('sqlite::memory:');
|
|
$st = $db->query('SELECT 1');
|
|
$re = $st->fetchObject('%Z');
|
|
?>
|
|
--EXPECTREGEX--
|
|
Fatal error: Class '%Z' not found in .+bug70914.php on line \d+
|