uawdijnntqw1x1x1
IP : 216.73.216.136
Hostname : dhandapanilive
Kernel : Linux dhandapanilive 5.15.0-139-generic #149~20.04.1-Ubuntu SMP Wed Apr 16 08:29:56 UTC 2025 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
html
/
oci8-3.0.1
/
tests
/
statement_type.phpt
/
/
--TEST-- oci_statement_type() --SKIPIF-- <?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?> --FILE-- <?php require __DIR__."/connect.inc"; $sqls = Array( "SELECT * FROM table", "DELETE FROM table WHERE id = 1", "INSERT INTO table VALUES(1)", "UPDATE table SET id = 1", "DROP TABLE table", "CREATE OR REPLACE PROCEDURE myproc(v1 NUMBER) as BEGIN DBMS_OUTPUT.PUT_LINE(v1); END;", "CREATE TABLE table (id NUMBER)", "ALTER TABLE table ADD (col1 NUMBER)", "BEGIN NULL; END;", "DECLARE myn NUMBER BEGIN myn := 1; END;", "CALL myproc(1)", "WRONG SYNTAX", "" ); foreach ($sqls as $sql) { $s = oci_parse($c, $sql); var_dump(oci_statement_type($s)); } echo "Done\n"; ?> --EXPECT-- string(6) "SELECT" string(6) "DELETE" string(6) "INSERT" string(6) "UPDATE" string(4) "DROP" string(6) "CREATE" string(6) "CREATE" string(5) "ALTER" string(5) "BEGIN" string(7) "DECLARE" string(4) "CALL" string(7) "UNKNOWN" string(7) "UNKNOWN" Done
/var/www/html/oci8-3.0.1/tests/statement_type.phpt