/PHP-5.4/ext/mysqli/tests/ |
H A D | mysqli_stmt_bind_param_call_user_func.phpt | 19 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 34 print "Regular, procedural, using variables\n"; 40 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 63 print "Call user func, procedural, using references for everything\n"; 69 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 97 printf("[015] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 125 printf("[020] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 152 printf("[025] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 181 printf("[025] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 210 printf("[030] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_class_mysqli_driver_interface.phpt | 16 printf("Parent class:\n"); 19 printf("\nMethods:\n"); 39 printf("Dumping list of missing methods.\n"); 43 printf("Dumping list of unexpected methods.\n"); 47 printf("ok\n"); 49 printf("\nClass variables:\n"); 53 printf("%s\n", $var); 55 printf("\nObject variables:\n"); 58 printf("%s\n", $var); 60 printf("\nMagic, magic properties:\n"); [all …]
|
H A D | mysqli_real_escape_string_nobackslash.phpt | 18 printf("[002] Expecting \\, got %s\n", $tmp); 21 printf("[003] Expecting \", got %s\n", $tmp); 24 printf("[004] Expecting '', got %s\n", $tmp); 26 if ("\n" !== ($tmp = mysqli_real_escape_string($link, "\n"))) 27 printf("[005] Expecting \\n, got %s\n", $tmp); 30 printf("[006] Expecting \\r, got %s\n", $tmp); 34 printf("[007] Expecting %s, got %s\n", "foo" . chr(0) . "bar", $tmp); 38 printf("[009] Cannot INSERT, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 42 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 51 printf("[012] Expecting \\, got %s\n", $tmp); [all …]
|
H A D | mysqli_affected_rows_oo.phpt | 15 printf("[000a] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error); 29 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error); 32 printf("[005] [%d] %s\n", $mysqli->errno, $mysqli->error); 43 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error); 49 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error); 55 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error); 62 printf("[014] [%d] %s\n", $mysqli->errno, $mysqli->error); 68 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error); 74 printf("[017] [%d] %s\n", $mysqli->errno, $mysqli->error); [all …]
|
H A D | mysqli_affected_rows.phpt | 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 30 printf("[005] Expecting int/0, got %s/%s. [%d] %s\n", 34 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 37 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 43 printf("[010] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 48 printf("[011] Expecting int/-1, got %s/%s\n", gettype($tmp), $tmp); 54 printf("[013] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 60 printf("[015] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
/PHP-5.4/Zend/tests/ |
H A D | closure_044.phpt | 20 echo "Before binding", "\n"; 21 $nonstaticUnscoped(); echo "\n"; 22 $nonstaticScoped(); echo "\n"; 24 echo "After binding, null scope, no instance", "\n"; 25 $d = $nonstaticUnscoped->bindTo(null, null); $d(); echo "\n"; 26 $d = $nonstaticScoped->bindTo(null, null); $d(); echo "\n"; 28 echo "After binding, null scope, with instance", "\n"; 32 echo "After binding, with scope, no instance", "\n"; 34 $d = $nonstaticScoped->bindTo(null, 'A'); $d(); echo "\n"; 36 echo "After binding, with scope, with instance", "\n"; [all …]
|
/PHP-5.4/ext/standard/tests/class_object/ |
H A D | forward_static_call_001.phpt | 10 echo static::NAME, "\n"; 19 echo self::NAME, "\n"; 24 echo self::NAME, "\n"; 29 echo self::NAME, "\n"; 40 echo self::NAME, "\n"; 46 echo "-\n"; 48 echo "-\n"; 50 echo "-\n"; 52 echo "-\n"; 54 echo "-\n"; [all …]
|
/PHP-5.4/ext/standard/tests/array/ |
H A D | count_recursive.phpt | 12 print "-- Testing NULL --\n"; 17 print "-- Testing arrays --\n"; 22 print "-- Testing hashes --\n"; 27 print "-- Testing strings --\n"; 59 echo "\n-- Iteration $i --\n"; 67 print "\n-- Testing count() on constants with no second argument --\n"; 71 print "\n-- Testing count() on NULL and Unset variables --\n"; 77 print "\n-- Testing count() on an empty sub-array --\n"; 82 echo "\n-- Testing count() on objects with Countable interface --\n"; 97 echo "\n-- Testing count() on resource type --\n"; [all …]
|
/PHP-5.4/ext/standard/tests/strings/ |
H A D | sha1_file.phpt | 35 echo "\n*** Testing for error conditions ***\n"; 37 echo "\n-- No filename --\n"; 40 echo "\n-- invalid filename --\n"; 43 echo "\n-- Scalar value as filename --\n"; 46 echo "\n-- NULL as filename --\n"; 49 echo "\n-- Zero arguments --\n"; 52 echo "\n-- More than valid number of arguments ( valid is 2) --\n"; 55 echo "\n-- Hexadecimal Output for Empty file as Argument --\n"; 58 echo "\n-- Raw Binary Output for Empty file as Argument --\n"; 61 echo "\n-- Hexadecimal Output for a valid file with some contents --\n"; [all …]
|
/PHP-5.4/ext/sysvsem/tests/ |
H A D | sysv.phpt | 15 echo "Start.\n"; 22 echo "Got semaphore $sem_id.\n"; 26 echo "Fail to acquire semaphore $sem_id.\n"; 30 echo "Success acquire semaphore $sem_id.\n"; 34 echo "Fail to attach shared memory.\n"; 47 echo "Write var1 to shared memory.\n"; 56 echo "Write var2 to shared memory.\n"; 63 echo "Read var1=$var1.\n"; 71 echo "Read var2=$var2.\n"; 77 echo "Semaphore $sem_id released.\n"; [all …]
|
/PHP-5.4/ext/shmop/tests/ |
H A D | 001.phpt | 18 die("failed\n"); 20 echo "ok\n"; 28 echo "failed\n"; 30 echo "ok\n"; 40 echo "failed\n"; 42 echo "ok\n"; 56 echo "failed\n"; 58 echo "ok\n"; 64 die("failed\n"); 66 echo "ok\n"; [all …]
|
/PHP-5.4/ext/spl/tests/ |
H A D | fixedarray_002.phpt | 10 public function offsetGet($n) { 11 echo "A::offsetGet\n"; 12 return parent::offsetGet($n); 14 public function offsetSet($n, $v) { 15 echo "A::offsetSet\n"; 16 return parent::offsetSet($n, $v); 18 public function offsetUnset($n) { 19 echo "A::offsetUnset\n"; 20 return parent::offsetUnset($n); 22 public function offsetExists($n) { [all …]
|
H A D | iterator_025.phpt | 10 echo __METHOD__ . "()\n"; 15 echo __METHOD__ . "()\n"; 23 foreach($it as $v) echo "$v\n"; 25 echo "===MORE===\n"; 27 foreach($it as $v) echo "$v\n"; 29 echo "===MORE===\n"; 32 foreach($it as $v) echo "$v\n"; 35 echo "===MANUAL===\n"; 40 echo $it->current() . "\n"; 47 echo $it->current() . "\n";
|
/PHP-5.4/ext/standard/tests/dir/ |
H A D | chdir_variation2.phpt | 14 echo "*** Testing chdir() : usage variations ***\n"; 28 echo "\n-- \$directory = './level_one': --\n"; 33 echo "\n-- \$directory = 'level_one/level_two': --\n"; 38 echo "\n-- \$directory = '..': --\n"; 42 echo "\n-- \$directory = 'level_two', '.': --\n"; 47 echo "\n-- \$directory = '../': --\n"; 51 echo "\n-- \$directory = './': --\n"; 56 echo "\n-- \$directory = '../../'level_one': --\n";
|
/PHP-5.4/ext/imap/tests/ |
H A D | imap_createmailbox_basic.phpt | 14 echo "*** Testing imap_createmailbox() : basic functionality ***\n"; 23 echo "Newname will be '$newname'\n"; 28 echo "Add a couple of msgs to '$newname' mailbox\n"; 34 echo "Messages: " . $status->messages . "\n"; 35 echo "Recent: " . $status->recent . "\n"; 36 echo "Unseen: " . $status->unseen . "\n"; 37 echo "UIDnext: " . $status->uidnext . "\n"; 38 echo "UIDvalidity: " . $status->uidvalidity . "\n"; 45 echo "Mailbox '$newname' removed to restore initial state\n"; 47 echo "imap_deletemailbox on new mailbox failed: " . implode("\n", imap_errors()) . "\n"; [all …]
|
H A D | imap_append_basic.phpt | 18 echo "Create a new mailbox for test\n"; 21 exit("TEST FAILED: Unable to create test mailbox\n"); 27 , "From: webmaster@something.com\r\n" 28 . "To: info@something.com\r\n" 29 . "Subject: Test message\r\n" 30 . "\r\n" 36 . "To: info@something.com\r\n" 37 . "Subject: Another test\r\n" 38 . "\r\n" 43 echo "Msg Count after append : ". $check->Nmsgs . "\n"; [all …]
|
/PHP-5.4/ext/dba/tests/ |
H A D | dba009.phpt | 11 echo "database handler: $handler\n"; 12 if (($db=dba_popen($db_file, "n", $handler))!==FALSE) { 13 echo "Opened\n"; 15 echo dba_fetch("a", $db)."\n"; 17 echo "Closed\n"; 19 echo "Error creating database\n"; 21 if (($db=dba_popen($db_file, "n", $handler))!==FALSE) { 22 echo "Opened\n"; 24 echo dba_fetch("a", $db)."\n";
|
/PHP-5.4/tests/lang/ |
H A D | 021.phpt | 8 echo "i=$i\n"; 12 echo "In branch 0\n"; 15 echo "In branch 1\n"; 18 echo "In branch 2\n"; 21 echo "In branch 3\n"; 24 echo "In branch 4\n"; 27 echo "In default\n"; 31 echo "hi\n";
|
/PHP-5.4/ext/pgsql/tests/ |
H A D | 05large_object.phpt | 12 echo "create/write/close LO\n"; 15 if (!$oid) echo ("pg_lo_create() error\n"); 17 if (!$handle) echo ("pg_lo_open() error\n"); 18 pg_lo_write ($handle, "large object data\n"); 22 echo "open/read/tell/seek/close LO\n"; 31 echo "open/read_all/close LO\n"; 39 echo "unlink LO\n"; 45 echo "Test without connection\n"; 51 echo "Test with string oid value\n"; 57 echo "import/export LO\n"; [all …]
|
/PHP-5.4/tests/classes/ |
H A D | __call_007.phpt | 24 echo "---> Invoke __call via simple method call.\n"; 28 echo "Exception caught OK; continuing.\n"; 31 echo "\n\n---> Invoke __call via scope resolution operator within instance.\n"; 35 echo "Exception caught OK; continuing.\n"; 38 echo "\n\n---> Invoke __call via scope resolution operator within child instance.\n"; 43 echo "Exception caught OK; continuing.\n"; 46 echo "\n\n---> Invoke __call via callback.\n"; 50 echo "Exception caught OK; continuing.\n";
|
/PHP-5.4/ext/standard/tests/file/ |
H A D | basename_bug66395_variation2-win32.phpt | 7 echo basename("y:") . "\n"; 8 echo basename("y:/") . "\n"; 9 echo basename("notdriveletter:file.txt") . "\n"; 10 echo basename("a:\\b:c:d:hello.txt\\hcd:c.txt") . "\n"; 11 echo basename("a:b:c:d:hello.txt\\d:some.txt") . "\n"; 12 echo basename("a:b:c:d:hello\world\a.bmp\c:d:e:f.txt") . "\n"; 15 echo basename("a:\\b:/c:d:hello\\world:somestream") . "\n"; 16 echo basename("a:\\b:\\c:d:hello\\world:some.stream") . "\n"; 18 echo basename("x:y:z:hello\world:my.stream:\$DATA") . "\n"; 19 echo basename("a:\\b:\\c:d:hello\\world:c:\$DATA") . "\n"; [all …]
|
H A D | filetype_variation.phpt | 31 echo "-- Checking with files --\n"; 32 print( filetype($file1) )."\n"; 33 print( filetype($file2) )."\n"; 36 echo "-- Checking with links: hardlink --\n"; 38 print( filetype($link1 ) )."\n"; 40 echo "-- Checking with links: symlink --\n"; 42 print( filetype($link2) )."\n"; 49 echo "-- Checking with directory --\n"; 54 echo "-- Checking with fifo --\n"; 56 print( filetype( $file3) )."\n"; [all …]
|
/PHP-5.4/ext/mbstring/tests/ |
H A D | mb_convert_encoding.phpt | 24 echo "== BASIC TEST ==\n"; 27 print("EUC-JP: $s\n"); // EUC-JP 31 print("EUC-JP: $s\n"); // EUC-JP 48 print("EUC-JP: $s\n"); // EUC-JP 65 print("EUC-JP: $s\n"); // EUC-JP 77 echo "== DETECT ORDER ==\n"; 81 print("EUC-JP: $s\n"); // EUC-JP 93 echo "== INVALID PARAMETER ==\n"; 96 print("INT: $s\n"); // EUC-JP 99 print("EUC-JP: $s\n"); // SJIS [all …]
|
/PHP-5.4/ext/hash/tests/ |
H A D | adler32.phpt | 7 echo hash('adler32', ''), "\n"; 8 echo hash('adler32', 'a'), "\n"; 9 echo hash('adler32', 'abc'), "\n"; 10 echo hash('adler32', 'message digest'), "\n"; 11 echo hash('adler32', 'abcdefghijklmnopqrstuvwxyz'), "\n"; 12 echo hash('adler32', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'), "\n"; 13 …dler32', '12345678901234567890123456789012345678901234567890123456789012345678901234567890'), "\n";
|
/PHP-5.4/ext/calendar/tests/ |
H A D | jdtofrench.phpt | 7 echo jdtofrench(0). "\n"; 8 echo jdtofrench(2375840). "\n"; 9 echo jdtofrench(2375850). "\n"; 10 echo jdtofrench(2375940). "\n"; 11 echo jdtofrench(2376345). "\n"; 12 echo jdtofrench(2385940). "\n";
|