mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
18 lines
358 B
PHP
18 lines
358 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+
|