diff options
author | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
commit | 88ec761548b66f58acc1a86cdd0fc164ca925476 (patch) | |
tree | d0af978fa00d83bb1d82c613f66477fbd6bb18aa /tests/basic | |
parent | 268984b4787e797db6054313fc9ba3b9e845306e (diff) | |
download | php-git-PECL_OPENSSL.tar.gz |
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'tests/basic')
-rw-r--r-- | tests/basic/001.phpt | 6 | ||||
-rw-r--r-- | tests/basic/002.phpt | 11 | ||||
-rw-r--r-- | tests/basic/003.phpt | 14 | ||||
-rw-r--r-- | tests/basic/004.phpt | 12 | ||||
-rw-r--r-- | tests/basic/005.phpt | 12 | ||||
-rw-r--r-- | tests/basic/006.phpt | 6 | ||||
-rw-r--r-- | tests/basic/007.phpt | 6 | ||||
-rw-r--r-- | tests/basic/008.phpt | 6 | ||||
-rw-r--r-- | tests/basic/009.phpt | 6 | ||||
-rw-r--r-- | tests/basic/010.phpt | 6 | ||||
-rw-r--r-- | tests/basic/011.phpt | 27 | ||||
-rw-r--r-- | tests/basic/012.phpt | 28 | ||||
-rw-r--r-- | tests/basic/013.phpt | 15 | ||||
-rw-r--r-- | tests/basic/014.phpt | 17 | ||||
-rw-r--r-- | tests/basic/015.phpt | 15 | ||||
-rw-r--r-- | tests/basic/016.phpt | 17 | ||||
-rw-r--r-- | tests/basic/017.phpt | 19 | ||||
-rw-r--r-- | tests/basic/018.phpt | 36 | ||||
-rw-r--r-- | tests/basic/019.phpt | 19 | ||||
-rw-r--r-- | tests/basic/020.phpt | 17 | ||||
-rw-r--r-- | tests/basic/021.phpt | 42 | ||||
-rw-r--r-- | tests/basic/bug20539.phpt | 11 | ||||
-rwxr-xr-x | tests/basic/bug29971.phpt | 15 |
23 files changed, 0 insertions, 363 deletions
diff --git a/tests/basic/001.phpt b/tests/basic/001.phpt deleted file mode 100644 index d0cc1ca082..0000000000 --- a/tests/basic/001.phpt +++ /dev/null @@ -1,6 +0,0 @@ ---TEST-- -Trivial "Hello World" test ---FILE-- -<?php echo "Hello World"?> ---EXPECT-- -Hello World diff --git a/tests/basic/002.phpt b/tests/basic/002.phpt deleted file mode 100644 index e9330c8bf9..0000000000 --- a/tests/basic/002.phpt +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Simple POST Method test ---SKIPIF-- -<?php if (php_sapi_name()=='cli') echo 'skip'; ?> ---POST-- -a=Hello+World ---FILE-- -<?php -echo $_POST['a']; ?> ---EXPECT-- -Hello World diff --git a/tests/basic/003.phpt b/tests/basic/003.phpt deleted file mode 100644 index ae6603f448..0000000000 --- a/tests/basic/003.phpt +++ /dev/null @@ -1,14 +0,0 @@ ---TEST-- -GET and POST Method combined ---SKIPIF-- -<?php if (php_sapi_name()=='cli') echo 'skip'; ?> ---POST-- -a=Hello+World ---GET-- -b=Hello+Again+World&c=Hi+Mom ---FILE-- -<?php -error_reporting(0); -echo "post-a=({$_POST['a']}) get-b=({$_GET['b']}) get-c=({$_GET['c']})"?> ---EXPECT-- -post-a=(Hello World) get-b=(Hello Again World) get-c=(Hi Mom) diff --git a/tests/basic/004.phpt b/tests/basic/004.phpt deleted file mode 100644 index 86bf431860..0000000000 --- a/tests/basic/004.phpt +++ /dev/null @@ -1,12 +0,0 @@ ---TEST-- -Two variables in POST data ---SKIPIF-- -<?php if (php_sapi_name()=='cli') echo 'skip'; ?> ---POST-- -a=Hello+World&b=Hello+Again+World ---FILE-- -<?php -error_reporting(0); -echo "{$_POST['a']} {$_POST['b']}" ?> ---EXPECT-- -Hello World Hello Again World diff --git a/tests/basic/005.phpt b/tests/basic/005.phpt deleted file mode 100644 index aa1d199825..0000000000 --- a/tests/basic/005.phpt +++ /dev/null @@ -1,12 +0,0 @@ ---TEST-- -Three variables in POST data ---SKIPIF-- -<?php if (php_sapi_name()=='cli') echo 'skip'; ?> ---POST-- -a=Hello+World&b=Hello+Again+World&c=1 ---FILE-- -<?php -error_reporting(0); -echo "{$_POST['a']} {$_POST['b']} {$_POST['c']}"?> ---EXPECT-- -Hello World Hello Again World 1 diff --git a/tests/basic/006.phpt b/tests/basic/006.phpt deleted file mode 100644 index c614cd9619..0000000000 --- a/tests/basic/006.phpt +++ /dev/null @@ -1,6 +0,0 @@ ---TEST-- -Add 3 variables together and print result ---FILE-- -<?php $a=1; $b=2; $c=3; $d=$a+$b+$c; echo $d?> ---EXPECT-- -6 diff --git a/tests/basic/007.phpt b/tests/basic/007.phpt deleted file mode 100644 index dc808b73b6..0000000000 --- a/tests/basic/007.phpt +++ /dev/null @@ -1,6 +0,0 @@ ---TEST-- -Multiply 3 variables and print result ---FILE-- -<?php $a=2; $b=4; $c=8; $d=$a*$b*$c; echo $d?> ---EXPECT-- -64 diff --git a/tests/basic/008.phpt b/tests/basic/008.phpt deleted file mode 100644 index 511aef0df4..0000000000 --- a/tests/basic/008.phpt +++ /dev/null @@ -1,6 +0,0 @@ ---TEST-- -Divide 3 variables and print result ---FILE-- -<?php $a=27; $b=3; $c=3; $d=$a/$b/$c; echo $d?> ---EXPECT-- -3 diff --git a/tests/basic/009.phpt b/tests/basic/009.phpt deleted file mode 100644 index fefe529af1..0000000000 --- a/tests/basic/009.phpt +++ /dev/null @@ -1,6 +0,0 @@ ---TEST-- -Subtract 3 variables and print result ---FILE-- -<?php $a=27; $b=7; $c=10; $d=$a-$b-$c; echo $d?> ---EXPECT-- -10 diff --git a/tests/basic/010.phpt b/tests/basic/010.phpt deleted file mode 100644 index 9cdfece9e1..0000000000 --- a/tests/basic/010.phpt +++ /dev/null @@ -1,6 +0,0 @@ ---TEST-- -Testing | and & operators ---FILE-- -<?php $a=8; $b=4; $c=8; echo $a|$b&$c?> ---EXPECT-- -8 diff --git a/tests/basic/011.phpt b/tests/basic/011.phpt deleted file mode 100644 index 34eed7915a..0000000000 --- a/tests/basic/011.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -Testing $argc and $argv handling (GET) ---SKIPIF-- -<?php if (php_sapi_name()=='cli') echo 'skip'; ?> ---INI-- -register_argc_argv=1 ---GET-- -ab+cd+ef+123+test ---FILE-- -<?php - -if (!ini_get('register_globals')) { - $argc = $_SERVER['argc']; - $argv = $_SERVER['argv']; -} - -for ($i=0; $i<$argc; $i++) { - echo "$i: ".$argv[$i]."\n"; -} - -?> ---EXPECT-- -0: ab -1: cd -2: ef -3: 123 -4: test diff --git a/tests/basic/012.phpt b/tests/basic/012.phpt deleted file mode 100644 index 3297853286..0000000000 --- a/tests/basic/012.phpt +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -Testing $argc and $argv handling (cli) ---SKIPIF-- -<?php if(php_sapi_name()!='cli') echo 'skip'; ?> ---INI-- -register_argc_argv=1 -variables_order=GPS ---ARGS-- -ab cd ef 123 test ---FILE-- -<?php - -if (!ini_get('register_globals')) { - $argc = $_SERVER['argc']; - $argv = $_SERVER['argv']; -} - -for ($i=1; $i<$argc; $i++) { - echo ($i-1).": ".$argv[$i]."\n"; -} - -?> ---EXPECT-- -0: ab -1: cd -2: ef -3: 123 -4: test diff --git a/tests/basic/013.phpt b/tests/basic/013.phpt deleted file mode 100644 index a4155dcf64..0000000000 --- a/tests/basic/013.phpt +++ /dev/null @@ -1,15 +0,0 @@ ---TEST-- -POST Method test and arrays ---SKIPIF-- -<?php if (php_sapi_name()=='cli') echo 'skip'; ?> ---POST-- -a[]=1 ---FILE-- -<?php -var_dump($_POST['a']); -?> ---EXPECT-- -array(1) { - [0]=> - string(1) "1" -} diff --git a/tests/basic/014.phpt b/tests/basic/014.phpt deleted file mode 100644 index 9b7e59f987..0000000000 --- a/tests/basic/014.phpt +++ /dev/null @@ -1,17 +0,0 @@ ---TEST-- -POST Method test and arrays - 2 ---SKIPIF-- -<?php if (php_sapi_name()=='cli') echo 'skip'; ?> ---POST-- -a[]=1&a[]=1 ---FILE-- -<?php -var_dump($_POST['a']); -?> ---EXPECT-- -array(2) { - [0]=> - string(1) "1" - [1]=> - string(1) "1" -} diff --git a/tests/basic/015.phpt b/tests/basic/015.phpt deleted file mode 100644 index b297265bbc..0000000000 --- a/tests/basic/015.phpt +++ /dev/null @@ -1,15 +0,0 @@ ---TEST-- -POST Method test and arrays - 3 ---SKIPIF-- -<?php if (php_sapi_name()=='cli') echo 'skip'; ?> ---POST-- -a[]=1&a[0]=5 ---FILE-- -<?php -var_dump($_POST['a']); -?> ---EXPECT-- -array(1) { - [0]=> - string(1) "5" -} diff --git a/tests/basic/016.phpt b/tests/basic/016.phpt deleted file mode 100644 index 2772531689..0000000000 --- a/tests/basic/016.phpt +++ /dev/null @@ -1,17 +0,0 @@ ---TEST-- -POST Method test and arrays - 4 ---SKIPIF-- -<?php if (php_sapi_name()=='cli') echo 'skip'; ?> ---POST-- -a[a]=1&a[b]=3 ---FILE-- -<?php -var_dump($_POST['a']); -?> ---EXPECT-- -array(2) { - ["a"]=> - string(1) "1" - ["b"]=> - string(1) "3" -} diff --git a/tests/basic/017.phpt b/tests/basic/017.phpt deleted file mode 100644 index 69424caa6c..0000000000 --- a/tests/basic/017.phpt +++ /dev/null @@ -1,19 +0,0 @@ ---TEST-- -POST Method test and arrays - 5 ---SKIPIF-- -<?php if (php_sapi_name()=='cli') echo 'skip'; ?> ---POST-- -a[]=1&a[a]=1&a[b]=3 ---FILE-- -<?php -var_dump($_POST['a']); -?> ---EXPECT-- -array(3) { - [0]=> - string(1) "1" - ["a"]=> - string(1) "1" - ["b"]=> - string(1) "3" -} diff --git a/tests/basic/018.phpt b/tests/basic/018.phpt deleted file mode 100644 index 5cae5e8a67..0000000000 --- a/tests/basic/018.phpt +++ /dev/null @@ -1,36 +0,0 @@ ---TEST-- -POST Method test and arrays - 6 ---SKIPIF-- -<?php if (php_sapi_name()=='cli') echo 'skip'; ?> ---POST-- -a[][]=1&a[][]=3&b[a][b][c]=1&b[a][b][d]=1 ---FILE-- -<?php -var_dump($_POST['a']); -var_dump($_POST['b']); -?> ---EXPECT-- -array(2) { - [0]=> - array(1) { - [0]=> - string(1) "1" - } - [1]=> - array(1) { - [0]=> - string(1) "3" - } -} -array(1) { - ["a"]=> - array(1) { - ["b"]=> - array(2) { - ["c"]=> - string(1) "1" - ["d"]=> - string(1) "1" - } - } -} diff --git a/tests/basic/019.phpt b/tests/basic/019.phpt deleted file mode 100644 index 467d4e6bf2..0000000000 --- a/tests/basic/019.phpt +++ /dev/null @@ -1,19 +0,0 @@ ---TEST-- -POST Method test and arrays - 7 ---SKIPIF-- -<?php if (php_sapi_name()=='cli') echo 'skip'; ?> ---POST-- -a[]=1&a[]]=3&a[[]=4 ---FILE-- -<?php -var_dump($_POST['a']); -?> ---EXPECT-- -array(3) { - [0]=> - string(1) "1" - [1]=> - string(1) "3" - ["["]=> - string(1) "4" -} diff --git a/tests/basic/020.phpt b/tests/basic/020.phpt deleted file mode 100644 index 0d4704e7f9..0000000000 --- a/tests/basic/020.phpt +++ /dev/null @@ -1,17 +0,0 @@ ---TEST-- -POST Method test and arrays - 8 ---SKIPIF-- -<?php if (php_sapi_name()=='cli') echo 'skip'; ?> ---POST-- -a[a[]]=1&a[b[]]=3 ---FILE-- -<?php -var_dump($_POST['a']); -?> ---EXPECT-- -array(2) { - ["a["]=> - string(1) "1" - ["b["]=> - string(1) "3" -} diff --git a/tests/basic/021.phpt b/tests/basic/021.phpt deleted file mode 100644 index d8f7c1c0ed..0000000000 --- a/tests/basic/021.phpt +++ /dev/null @@ -1,42 +0,0 @@ ---TEST-- -Bug #37276 (problems witch $_POST array) ---SKIPIF-- -<?php if (php_sapi_name()=='cli') die('skip'); ?> ---POST_RAW-- -Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737 ------------------------------20896060251896012921717172737 -Content-Disposition: form-data; name="submitter" - -testname ------------------------------20896060251896012921717172737 -Content-Disposition: form-data; name="pics"; filename="bug37276.txt" -Content-Type: text/plain - -bug37276 - ------------------------------20896060251896012921717172737-- ---FILE-- -<?php -var_dump($_FILES); -var_dump($_POST); -?> ---EXPECTF-- -array(1) { - ["pics"]=> - array(5) { - ["name"]=> - string(12) "bug37276.txt" - ["type"]=> - string(10) "text/plain" - ["tmp_name"]=> - string(%d) "%s" - ["error"]=> - int(0) - ["size"]=> - int(9) - } -} -array(1) { - ["submitter"]=> - string(8) "testname" -} diff --git a/tests/basic/bug20539.phpt b/tests/basic/bug20539.phpt deleted file mode 100644 index 372285bfae..0000000000 --- a/tests/basic/bug20539.phpt +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Bug #20539 (PHP CLI Segmentation Fault) ---INI-- -session.auto_start=1 -session.save_handler=files ---FILE-- -<?php - print "good :)\n"; -?> ---EXPECT-- -good :) diff --git a/tests/basic/bug29971.phpt b/tests/basic/bug29971.phpt deleted file mode 100755 index d4b654bdb1..0000000000 --- a/tests/basic/bug29971.phpt +++ /dev/null @@ -1,15 +0,0 @@ ---TEST-- -Bug #29971 (variables_order behaviour) ---INI-- -variables_order=GPC ---FILE-- -<?php -var_dump($_ENV,$_SERVER); -var_dump(ini_get("variables_order")); -?> ---EXPECT-- -array(0) { -} -array(0) { -} -string(3) "GPC" |