Files
archived-pecl-database-dbase/tests/dbase_create_error_open_basedir.phpt
Christoph Michael Becker 55f9cdc270 Add tests for error conditions
git-svn-id: http://svn.php.net/repository/pecl/dbase/trunk@340833 c90b9560-bf6c-de11-be94-00142212c4b1
2016-11-01 16:17:38 +00:00

18 lines
405 B
PHP

--TEST--
dbase_create(): open_basedir restriction
--SKIPIF--
<?php
if (!extension_loaded('dbase')) die('skip dbase extension not available');
?>
--INI--
open_basedir=.
--FILE--
<?php
var_dump(dbase_create('../bad', array()));
?>
===DONE===
--EXPECTF--
Warning: dbase_create(): open_basedir restriction in effect. File(../bad) is not within the allowed path(s): (.) in %s on line %d
bool(false)
===DONE===