xref: /PHP-7.4/Zend/tests/bug70914.phpt (revision d7a3edd4)
1--TEST--
2Bug #70914 zend_throw_or_error() format string vulnerability
3--SKIPIF--
4<?php
5if (!extension_loaded("pdo_sqlite")) {
6	die("skip pdo_sqlite required");
7}
8?>
9--FILE--
10<?php
11
12$db = new PDO('sqlite::memory:');
13$st = $db->query('SELECT 1');
14$re = $st->fetchObject('%Z');
15?>
16--EXPECTREGEX--
17Fatal error: Class '%Z' not found in .+bug70914.php on line \d+
18