mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Disable resource-heavy tests by default (>1GB of memory usage), unless the RUN_RESOURCE_HEAVY_TESTS env variable is set. Fixes GH-20762 Closes GH-20935
22 lines
485 B
PHP
22 lines
485 B
PHP
--TEST--
|
|
Bug #81740 (PDO::quote() may return unquoted string)
|
|
--EXTENSIONS--
|
|
pdo
|
|
pdo_sqlite
|
|
--SKIPIF--
|
|
<?php
|
|
if (!getenv('RUN_RESOURCE_HEAVY_TESTS')) die('skip resource-heavy test');
|
|
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
|
|
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
|
|
?>
|
|
--INI--
|
|
memory_limit=-1
|
|
--FILE--
|
|
<?php
|
|
$pdo = new PDO("sqlite::memory:");
|
|
$string = str_repeat("a", 0x80000000);
|
|
var_dump($pdo->quote($string));
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|