From: Wez Furlong Date: Sun, 19 Sep 2004 18:13:09 +0000 (+0000) Subject: Use NO_PERM code here X-Git-Tag: PRE_NEW_VM_GEN_PATCH~276 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f40608230b5d4532b5a4596edfddb694c5e42cf2;p=php Use NO_PERM code here --- diff --git a/ext/pdo_sqlite/sqlite_driver.c b/ext/pdo_sqlite/sqlite_driver.c index 3fd2152702..9f2d3f953b 100644 --- a/ext/pdo_sqlite/sqlite_driver.c +++ b/ext/pdo_sqlite/sqlite_driver.c @@ -307,7 +307,7 @@ static int pdo_sqlite_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS filename = make_filename_safe(dbh->data_source TSRMLS_CC); if (!filename) { - zend_throw_exception_ex(php_pdo_get_exception(), PDO_ERR_CANT_MAP TSRMLS_CC, + zend_throw_exception_ex(php_pdo_get_exception(), PDO_ERR_NO_PERM TSRMLS_CC, "safe_mode/open_basedir prohibits opening %s", dbh->data_source); goto cleanup;