diff options
| author | Remi Collet <remi@php.net> | 2017-03-29 07:25:01 +0200 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2017-03-29 07:25:01 +0200 |
| commit | 012dc336a6ae01208c394994b648c221337bf81d (patch) | |
| tree | a98bce697cfac1f2f9a87dd49f5114bd2032b8b1 /ext/pdo_sqlite/tests | |
| parent | d11211fb5379324e99dc67cdd7a0ec5031874ae7 (diff) | |
| download | php-git-012dc336a6ae01208c394994b648c221337bf81d.tar.gz | |
Fix buid with system libsqlite, see bug #74217
SQLITE_DETERMINISTIC only exists in recent version
e.g. missing on 3.7 which is the default on RHEL/CentOS-7
and probably others (wheezy have 3.7, jessie 3.8...)
Diffstat (limited to 'ext/pdo_sqlite/tests')
| -rw-r--r-- | ext/pdo_sqlite/tests/pdo_sqlite_createfunction_with_flags.phpt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/pdo_sqlite/tests/pdo_sqlite_createfunction_with_flags.phpt b/ext/pdo_sqlite/tests/pdo_sqlite_createfunction_with_flags.phpt index 4f0b6754a1..d826d93ddf 100644 --- a/ext/pdo_sqlite/tests/pdo_sqlite_createfunction_with_flags.phpt +++ b/ext/pdo_sqlite/tests/pdo_sqlite_createfunction_with_flags.phpt @@ -1,7 +1,10 @@ --TEST-- PDO_sqlite: Testing sqliteCreateFunction() with flags --SKIPIF-- -<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?> +<?php +if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; +if (!defined('PDO::SQLITE_DETERMINISTIC')) die('skip system sqlite is to old'); +?> --FILE-- <?php |
