<?php
try {new \SQLite3("ddas");
}catch(\Exception $e) {
var_dump($e);
}
- Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
- Warning: SQLite3::__construct(): open_basedir restriction in effect. File(/ddas) is not within the allowed path(s): (/tmp:/in:/etc) in /in/T5QbN on line 3
object(Exception)#2 (7) {
["message":protected]=>
string(36) "open_basedir prohibits opening /ddas"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(9) "/in/T5QbN"
["line":protected]=>
int(3)
["trace":"Exception":private]=>
array(1) {
[0]=>
array(6) {
["file"]=>
string(9) "/in/T5QbN"
["line"]=>
int(3)
["function"]=>
string(11) "__construct"
["class"]=>
string(7) "SQLite3"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
string(4) "ddas"
}
}
}
["previous":"Exception":private]=>
NULL
}
- Output for 7.1.10, 7.2.0, 7.3.32 - 7.3.33, 7.4.33, 8.0.13
- object(Exception)#2 (7) {
["message":protected]=>
string(53) "Unable to open database: unable to open database file"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(9) "/in/T5QbN"
["line":protected]=>
int(3)
["trace":"Exception":private]=>
array(1) {
[0]=>
array(6) {
["file"]=>
string(9) "/in/T5QbN"
["line"]=>
int(3)
["function"]=>
string(11) "__construct"
["class"]=>
string(7) "SQLite3"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
string(4) "ddas"
}
}
}
["previous":"Exception":private]=>
NULL
}
- Output for 7.1.20, 7.2.6
- Warning: SQLite3::__construct(): open_basedir restriction in effect. File(/ddas) is not within the allowed path(s): (/tmp:/in) in /in/T5QbN on line 3
object(Exception)#2 (7) {
["message":protected]=>
string(36) "open_basedir prohibits opening /ddas"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(9) "/in/T5QbN"
["line":protected]=>
int(3)
["trace":"Exception":private]=>
array(1) {
[0]=>
array(6) {
["file"]=>
string(9) "/in/T5QbN"
["line"]=>
int(3)
["function"]=>
string(11) "__construct"
["class"]=>
string(7) "SQLite3"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
string(4) "ddas"
}
}
}
["previous":"Exception":private]=>
NULL
}
- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
- Warning: SQLite3::__construct(): open_basedir restriction in effect. File(/ddas) is not within the allowed path(s): (/tmp/) in /in/T5QbN on line 3
object(Exception)#2 (7) {
["message":protected]=>
string(36) "open_basedir prohibits opening /ddas"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(9) "/in/T5QbN"
["line":protected]=>
int(3)
["trace":"Exception":private]=>
array(1) {
[0]=>
array(6) {
["file"]=>
string(9) "/in/T5QbN"
["line"]=>
int(3)
["function"]=>
string(11) "__construct"
["class"]=>
string(7) "SQLite3"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
string(4) "ddas"
}
}
}
["previous":"Exception":private]=>
NULL
}
preferences:
129.11 ms | 403 KiB | 174 Q