[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array array_diff_key_error.phpt array_diff_key_variation1.phpt array_diff_key_variation2.phpt array_diff_key_variation3.phpt array_diff_key_variatio

2008-08-12 Thread Josie Messa
jmessa  Tue Aug 12 11:02:00 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   array_diff_key_variation3.phpt 
array_diff_key_variation2.phpt 
array_diff_key_variation5.phpt 
array_diff_key_error.phpt 
array_diff_key_variation4.phpt 
array_diff_key_variation8.phpt 
array_diff_key_variation6.phpt 
array_diff_key_variation7.phpt 

  Modified files:  
/php-src/ext/standard/tests/array   array_diff_key_variation1.phpt 
  Log:
  - Committing new array_diff_key tests for Sanjay Mantoor
  http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_diff_key_variation1.phpt?r1=1.1.2.1r2=1.1.2.2diff_format=u
Index: php-src/ext/standard/tests/array/array_diff_key_variation1.phpt
diff -u php-src/ext/standard/tests/array/array_diff_key_variation1.phpt:1.1.2.1 
php-src/ext/standard/tests/array/array_diff_key_variation1.phpt:1.1.2.2
--- php-src/ext/standard/tests/array/array_diff_key_variation1.phpt:1.1.2.1 
Fri Jan 25 00:13:48 2008
+++ php-src/ext/standard/tests/array/array_diff_key_variation1.phpt Tue Aug 
12 11:01:59 2008
@@ -1,89 +1,310 @@
 --TEST--
-array_diff_key() : type variations 
+Test array_diff_key() function : usage variation - Passing unexpected values 
to first argument
 --FILE--
 ?php
-/*
-* proto array array_diff_key(array arr1, array arr2 [, array ...])
-* Function is implemented in ext/standard/array.c
-*/
-/*
-* Testing how array_diff_key treats keys that are numbers, floating point 
numbers or strings.
-*/
-$arr1 = array(1 = 'a', 2 = 'b', 3 = 'c', 'key1' = 'value');
-$arr2 = array(1.00 = 'a', 2.00 = 'b', 3.00 = 'c', 'key2' = 'value');
-$arr3 = array('1' = 'a', '2' = 'b', '3' = 'c', 'key3' = 'value');
-$arr4 = array('1.00' = 'a', '2.00' = 'b', '3.00' = 'c', 'key4' = 'value'); 
//$arr4 looks different to the other three arrays.
-print Result of comparing integers and floating point value:\n; //1 and 1.00 
are treated as the same thing
-print_r(array_diff_key($arr1, $arr2));
-print_r(array_diff_key($arr2, $arr1));
-print Result of comparing integers and strings containing an integers:\n; 
//1 and the string 1 are treated as the same thing
-print_r(array_diff_key($arr1, $arr3));
-print_r(array_diff_key($arr3, $arr1));
-print Result of comparing integers and strings containing floating 
points:\n; //1 and the string 1.00 are not treated as the same thing
-print_r(array_diff_key($arr1, $arr4));
-print_r(array_diff_key($arr4, $arr1));
-print Result of comparing floating points and strings containing integers:\n;
-print_r(array_diff_key($arr2, $arr3)); //1.00 and the string 1 are treated as 
the same thing
-print_r(array_diff_key($arr3, $arr2));
-print Result of comparing strings containing integers and strings containing 
floating points:\n; //the strings 1 and 1.00 are not treated as the same thing.
-print_r(array_diff_key($arr3, $arr4));
-print_r(array_diff_key($arr4, $arr3));
+/* Prototype  : array array_diff_key(array arr1, array arr2 [, array ...])
+ * Description: Returns the entries of arr1 that have keys which are not 
present in any of the others arguments. 
+ * Source code: ext/standard/array.c
+ */
+
+echo *** Testing array_diff_key() : usage variation ***\n;
+
+// Initialise function arguments not being substituted (if any)
+$array2 = array('green' = 5, 'blue' = 6, 'yellow' = 7, 'cyan' = 8);
+$array3 = array(1, 2, 3, 4, 5);
+
+//get an unset variable
+$unset_var = 10;
+unset ($unset_var);
+
+//resource variable
+$fp = fopen(__FILE__, r);
+
+// define some classes
+class classWithToString
+{
+   public function __toString() {
+   return Class A object;
+   }
+}
+
+class classWithoutToString
+{
+}
+
+// heredoc string
+$heredoc = EOT
+hello world
+EOT;
+
+//array of values to iterate over
+$inputs = array(
+
+  // int data
+  'int 0' = 0,
+  'int 1' = 1,
+  'int 12345' = 12345,
+  'int -12345' = -12345,
+
+  // float data
+  'float 10.5' = 10.5,
+  'float -10.5' = -10.5,
+  'float 12.3456789000e10' = 12.3456789000e10,
+  'float -12.3456789000e10' = -12.3456789000e10,
+  'float .5' = .5,
+
+  // null data
+  'uppercase NULL' = NULL,
+  'lowercase null' = null,
+
+  // boolean data
+  'lowercase true' = true,
+  'lowercase false' =false,
+  'uppercase TRUE' =TRUE,
+  'uppercase FALSE' =FALSE,
+
+  // empty data
+  'empty string DQ' = ,
+  'empty string SQ' = '',
+
+  // string data
+  'string DQ' = string,
+  'string SQ' = 'string',
+  'mixed case string' = sTrInG,
+  'heredoc' = $heredoc,
+
+  // object data
+  'instance of classWithToString' = new classWithToString(),
+  'instance of 

[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/strings similar_text_basic.phpt similar_text_error.phpt

2008-07-14 Thread Josie Messa
jmessa  Mon Jul 14 15:27:19 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/strings similar_text_error.phpt 
similar_text_basic.phpt 
  Log:
  - Tests from TestFest
  - Have slightly modified similar_text_error.phpt from original file
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/similar_text_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/strings/similar_text_error.phpt
+++ php-src/ext/standard/tests/strings/similar_text_error.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/similar_text_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/strings/similar_text_basic.phpt
+++ php-src/ext/standard/tests/strings/similar_text_basic.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/standard/tests/strings similar_text_basic.phpt similar_text_error.phpt

2008-07-14 Thread Josie Messa
jmessa  Mon Jul 14 15:28:51 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/strings similar_text_basic.phpt 
similar_text_error.phpt 
  Log:
  - Tests from TestFest
  - Have slightly modified similar_text_error.phpt from original file
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/similar_text_basic.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/strings/similar_text_basic.phpt
diff -u /dev/null php-src/ext/standard/tests/strings/similar_text_basic.phpt:1.2
--- /dev/null   Mon Jul 14 15:28:51 2008
+++ php-src/ext/standard/tests/strings/similar_text_basic.phpt  Mon Jul 14 
15:28:51 2008
@@ -0,0 +1,39 @@
+--TEST--
+similar_text(), basic tests
+--CREDITS--
+Mats Lindh mats at lindh.no
+#Testfest php.no
+--INIT--
+precision=14
+--FILE--
+?php
+/* Prototype  : proto int similar_text(string str1, string str2 [, float 
percent])
+* Description: Calculates the similarity between two strings
+* Source code: ext/standard/string.c
+*/
+var_dump(similar_text(abcdefgh, efg));
+var_dump(similar_text(abcdefgh, mno));
+var_dump(similar_text(abcdefghcc, c));
+var_dump(similar_text(abcdefghabcdef, abcdefggg));
+
+$percent = 0;
+similar_text(abcdefgh, efg, $percent);
+var_dump($percent);
+similar_text(abcdefgh, mno, $percent);
+var_dump($percent);
+similar_text(abcdefghcc, c, $percent);
+var_dump($percent);
+similar_text(abcdefghabcdef, abcdefggg, $percent);
+var_dump($percent);
+?
+===DONE===
+--EXPECTF--
+int(3)
+int(0)
+int(1)
+int(7)
+float(54.545454545455)
+float(0)
+float(18.181818181818)
+float(51.851851851852)
+===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/similar_text_error.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/strings/similar_text_error.phpt
diff -u /dev/null php-src/ext/standard/tests/strings/similar_text_error.phpt:1.2
--- /dev/null   Mon Jul 14 15:28:51 2008
+++ php-src/ext/standard/tests/strings/similar_text_error.phpt  Mon Jul 14 
15:28:51 2008
@@ -0,0 +1,29 @@
+--TEST--
+similar_text(), error tests for missing parameters
+--CREDITS--
+Mats Lindh mats at lindh.no
+#Testfest php.no
+--FILE--
+?php
+/* Prototype  : proto int similar_text(string str1, string str2 [, float 
percent])
+* Description: Calculates the similarity between two strings
+* Source code: ext/standard/string.c
+*/
+
+$extra_arg = 10;
+echo \n-- Testing similar_text() function with more than expected no. of 
arguments --\n;
+similar_text(abc, def, $percent, $extra_arg);
+
+echo \n-- Testing similar_text() function with less than expected no. of 
arguments --\n;
+similar_text(abc);
+?
+===DONE===
+--EXPECTF--
+-- Testing similar_text() function with more than expected no. of arguments --
+
+Warning: similar_text() expects at most 3 parameters, 4 given in %s on line %d
+
+-- Testing similar_text() function with less than expected no. of arguments --
+
+Warning: similar_text() expects at least 2 parameters, 1 given in %s on line %d
+===DONE===



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/dom/tests DOMCharacterData_appendData_basic.phpt DOMComment_appendData_basic_Sullivan.phpt DOMNode_issamenode_basic.phpt DOMText_appendData_basic.phpt

2008-05-21 Thread Josie Messa
jmessa  Wed May 21 15:00:59 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/dom/tests  DOMNode_issamenode_basic.phpt 
DOMCharacterData_appendData_basic.phpt 
DOMComment_appendData_basic_Sullivan.phpt 
DOMText_appendData_basic.phpt 
  Log:
  - Committing tests reviewed after London TestFest 08
  - Credits to: Mike Sullivan and James Lewis
  

http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMNode_issamenode_basic.phpt?view=markuprev=1.1
Index: php-src/ext/dom/tests/DOMNode_issamenode_basic.phpt
+++ php-src/ext/dom/tests/DOMNode_issamenode_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_appendData_basic.phpt?view=markuprev=1.1
Index: php-src/ext/dom/tests/DOMCharacterData_appendData_basic.phpt
+++ php-src/ext/dom/tests/DOMCharacterData_appendData_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMComment_appendData_basic_Sullivan.phpt?view=markuprev=1.1
Index: php-src/ext/dom/tests/DOMComment_appendData_basic_Sullivan.phpt
+++ php-src/ext/dom/tests/DOMComment_appendData_basic_Sullivan.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMText_appendData_basic.phpt?view=markuprev=1.1
Index: php-src/ext/dom/tests/DOMText_appendData_basic.phpt
+++ php-src/ext/dom/tests/DOMText_appendData_basic.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/dom/tests DOMCharacterData_appendData_basic.phpt DOMComment_appendData_basic_Sullivan.phpt DOMNode_issamenode_basic.phpt DOMText_appendData_basic.phpt

2008-05-21 Thread Josie Messa
jmessa  Wed May 21 15:04:13 2008 UTC

  Modified files:  
/php-src/ext/dom/tests  DOMComment_appendData_basic_Sullivan.phpt 
DOMNode_issamenode_basic.phpt 
DOMText_appendData_basic.phpt 
DOMCharacterData_appendData_basic.phpt 
  Log:
  - Committing tests reviewed after London TestFest 08
  - Credits to: Mike Sullivan and James Lewis
  
http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMComment_appendData_basic_Sullivan.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/dom/tests/DOMComment_appendData_basic_Sullivan.phpt
diff -u /dev/null 
php-src/ext/dom/tests/DOMComment_appendData_basic_Sullivan.phpt:1.2
--- /dev/null   Wed May 21 15:04:13 2008
+++ php-src/ext/dom/tests/DOMComment_appendData_basic_Sullivan.phpt Wed May 
21 15:04:13 2008
@@ -0,0 +1,36 @@
+--TEST--
+DOMComment::appendData basic functionality test
+--CREDITS--
+Mike Sullivan [EMAIL PROTECTED]
+#TestFest 2008 (London)
+--SKIPIF--
+--FILE--
+?php
+
+$document = new DOMDocument;
+$root = $document-createElement('root');
+$document-appendChild($root);
+
+$comment = $document-createElement('comment');
+$root-appendChild($comment);
+
+$commentnode = $document-createComment('');
+$comment-appendChild($commentnode);
+$commentnode-appendData('data');
+echo Comment Length (one append):  . $commentnode-length . \n;
+
+$commentnode-appendData('');
+echo Comment Length (two appends):  . $commentnode-length . \n;
+
+echo Comment Content:  . $commentnode-data . \n;
+
+echo \n . $document-saveXML();
+
+?
+--EXPECT--
+Comment Length (one append): 4
+Comment Length (two appends): 8
+Comment Content: data
+
+?xml version=1.0?
+rootcomment!--data--/comment/root
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMNode_issamenode_basic.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/dom/tests/DOMNode_issamenode_basic.phpt
diff -u /dev/null php-src/ext/dom/tests/DOMNode_issamenode_basic.phpt:1.2
--- /dev/null   Wed May 21 15:04:13 2008
+++ php-src/ext/dom/tests/DOMNode_issamenode_basic.phpt Wed May 21 15:04:13 2008
@@ -0,0 +1,33 @@
+--TEST--
+DOMNode: isSameNode() 
+--CREDITS--
+James Lewis [EMAIL PROTECTED]
+#TestFest 2008
+--FILE--
+?php
+require_once(dom_test.inc);
+
+$dom = new DOMDocument;
+$dom-loadXML($xmlstr);
+if(!$dom) {
+  echo Error while parsing the document\n;
+  exit;
+}
+
+$node = $dom-documentElement;
+if($node-isSameNode($node)) 
+   echo EXPECTING SAME NODE, PASSED\n ; 
+else
+   echo EXPECTING SAME NODE, FAILED\n ; 
+
+$nodelist=$dom-getElementsByTagName('tbody') ; 
+
+if($nodelist-item(0)-isSameNode($node))
+   echo EXPECTING NOT SAME NODE, FAILED\n ; 
+else
+   echo EXPECTING NOT SAME NODE, PASSED\n ; 
+   
+?
+--EXPECT--
+EXPECTING SAME NODE, PASSED
+EXPECTING NOT SAME NODE, PASSED
http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMText_appendData_basic.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/dom/tests/DOMText_appendData_basic.phpt
diff -u /dev/null php-src/ext/dom/tests/DOMText_appendData_basic.phpt:1.2
--- /dev/null   Wed May 21 15:04:13 2008
+++ php-src/ext/dom/tests/DOMText_appendData_basic.phpt Wed May 21 15:04:13 2008
@@ -0,0 +1,35 @@
+--TEST--
+DOMText::appendData basic functionality test
+--CREDITS--
+Mike Sullivan [EMAIL PROTECTED]
+#TestFest 2008 (London)
+--FILE--
+?php
+
+$document = new DOMDocument;
+$root = $document-createElement('root');
+$document-appendChild($root);
+
+$text = $document-createElement('text');
+$root-appendChild($text);
+
+$textnode = $document-createTextNode('');
+$text-appendChild($textnode);
+$textnode-appendData('data');
+echo Text Length (one append):  . $textnode-length . \n;
+
+$textnode-appendData('');
+echo Text Length (two appends):  . $textnode-length . \n;
+
+echo Text Content:  . $textnode-data . \n;
+
+echo \n . $document-saveXML();
+
+?
+--EXPECT--
+Text Length (one append): 4
+Text Length (two appends): 8
+Text Content: data
+
+?xml version=1.0?
+roottextdatagt;lt;amp;/text/root
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/php-src/ext/dom/tests/DOMCharacterData_appendData_basic.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/dom/tests/DOMCharacterData_appendData_basic.phpt
diff -u /dev/null 
php-src/ext/dom/tests/DOMCharacterData_appendData_basic.phpt:1.2
--- /dev/null   Wed May 21 15:04:13 2008
+++ php-src/ext/dom/tests/DOMCharacterData_appendData_basic.phptWed May 
21 15:04:13 2008
@@ -0,0 +1,35 @@
+--TEST--
+DOMCharacterData::appendData basic functionality test
+--CREDITS--
+Mike Sullivan [EMAIL PROTECTED]
+#TestFest 2008 (London)
+--FILE--
+?php
+
+$document = new DOMDocument;
+$root = $document-createElement('root');
+$document-appendChild($root);
+
+$cdata = $document-createElement('cdata');
+$root-appendChild($cdata);
+
+$cdatanode = $document-createCDATASection('');
+$cdata-appendChild($cdatanode);
+$cdatanode-appendData('data');
+echo CDATA Length (one append):  . 

[PHP-CVS] cvs: php-src(PHP_5_3) /ext/ctype/tests ctype_alnum_basic.phpt ctype_alnum_error.phpt ctype_alnum_variation1.phpt ctype_alnum_variation2.phpt ctype_alnum_variation3.phpt ctype_alnum_variation

2008-03-17 Thread Josie Messa
jmessa  Mon Mar 17 09:52:02 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/ctype/testsctype_lower_variation4.phpt 
ctype_print_variation2.phpt 
ctype_punct_variation2.phpt 
ctype_lower_error.phpt 
ctype_graph_variation3.phpt 
ctype_alnum_variation4.phpt 
ctype_lower_basic.phpt 
ctype_punct_variation4.phpt 
ctype_space_variation4.phpt 
ctype_alnum_variation3.phpt 
ctype_upper_variation2.phpt 
ctype_cntrl_variation3.phpt 
ctype_alpha_basic.phpt 
ctype_alnum_error.phpt 
ctype_alpha_variation2.phpt 
ctype_upper_variation3.phpt 
ctype_space_basic.phpt 
ctype_print_variation1.phpt 
ctype_space_variation2.phpt 
ctype_punct_basic.phpt 
ctype_cntrl_error.phpt 
ctype_space_variation1.phpt 
ctype_upper_error.phpt 
ctype_print_variation3.phpt 
ctype_upper_basic.phpt 
ctype_xdigit_variation4.phpt 
ctype_cntrl_variation1.phpt 
ctype_lower_variation2.phpt 
ctype_punct_error.phpt 
ctype_cntrl_variation4.phpt 
ctype_alpha_variation4.phpt 
ctype_alnum_variation1.phpt 
ctype_cntrl_variation2.phpt 
ctype_alnum_basic.phpt 
ctype_upper_variation1.phpt 
ctype_lower_variation3.phpt 
ctype_lower_variation1.phpt 
ctype_punct_variation1.phpt 
ctype_alnum_variation2.phpt 
ctype_graph_variation1.phpt 
ctype_print_variation4.phpt 
ctype_upper_variation4.phpt 
ctype_print_basic.phpt 
ctype_graph_variation2.phpt 
ctype_space_variation3.phpt 
ctype_xdigit_variation3.phpt 
ctype_digit_variation4.phpt 
ctype_graph_basic.phpt 
ctype_alpha_error.phpt 
ctype_print_error.phpt 
ctype_digit_variation1.phpt 
ctype_graph_error.phpt 
ctype_xdigit_basic.phpt 
ctype_graph_variation4.phpt 
ctype_xdigit_variation1.phpt 
ctype_alpha_variation3.phpt 
ctype_digit_basic.phpt 
ctype_alpha_variation1.phpt 
ctype_xdigit_variation2.phpt 
ctype_cntrl_basic.phpt 
ctype_digit_variation2.phpt 
ctype_digit_variation3.phpt 
ctype_digit_error.phpt 
ctype_xdigit_error.phpt 
ctype_space_error.phpt 
ctype_punct_variation3.phpt 
  Log:
  - new tests for ctype functions
  
http://cvs.php.net/viewvc.cgi/php-src/ext/ctype/tests/ctype_lower_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/ctype/tests/ctype_lower_variation4.phpt
+++ php-src/ext/ctype/tests/ctype_lower_variation4.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/ctype/tests/ctype_print_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/ctype/tests/ctype_print_variation2.phpt
+++ php-src/ext/ctype/tests/ctype_print_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/ctype/tests/ctype_punct_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/ctype/tests/ctype_punct_variation2.phpt
+++ php-src/ext/ctype/tests/ctype_punct_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/ctype/tests/ctype_lower_error.phpt?view=markuprev=1.1
Index: php-src/ext/ctype/tests/ctype_lower_error.phpt
+++ php-src/ext/ctype/tests/ctype_lower_error.phpt


[PHP-CVS] cvs: php-src(PHP_5_2) /ext/ctype/tests ctype_alnum_basic.phpt ctype_alnum_error.phpt ctype_alnum_variation1.phpt ctype_alnum_variation2.phpt ctype_alnum_variation3.phpt ctype_alnum_variation

2008-03-17 Thread Josie Messa
jmessa  Mon Mar 17 09:50:13 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/ctype/testsctype_alnum_variation1.phpt 
ctype_lower_error.phpt 
ctype_punct_variation2.phpt 
ctype_cntrl_basic.phpt 
ctype_upper_basic.phpt 
ctype_print_variation3.phpt 
ctype_punct_variation1.phpt 
ctype_xdigit_variation2.phpt 
ctype_alnum_variation2.phpt 
ctype_graph_variation1.phpt 
ctype_graph_variation3.phpt 
ctype_graph_variation4.phpt 
ctype_punct_variation3.phpt 
ctype_space_basic.phpt 
ctype_graph_error.phpt 
ctype_cntrl_variation4.phpt 
ctype_space_variation1.phpt 
ctype_lower_variation3.phpt 
ctype_lower_variation4.phpt 
ctype_space_error.phpt 
ctype_graph_variation2.phpt 
ctype_digit_variation1.phpt 
ctype_space_variation4.phpt 
ctype_upper_variation2.phpt 
ctype_alpha_variation4.phpt 
ctype_xdigit_variation4.phpt 
ctype_digit_variation3.phpt 
ctype_alpha_error.phpt 
ctype_alpha_variation1.phpt 
ctype_cntrl_variation3.phpt 
ctype_alpha_variation2.phpt 
ctype_alpha_variation3.phpt 
ctype_punct_variation4.phpt 
ctype_xdigit_basic.phpt 
ctype_cntrl_error.phpt 
ctype_alnum_basic.phpt 
ctype_punct_basic.phpt 
ctype_print_error.phpt 
ctype_punct_error.phpt 
ctype_space_variation2.phpt 
ctype_graph_basic.phpt 
ctype_alnum_variation3.phpt 
ctype_lower_basic.phpt 
ctype_lower_variation1.phpt 
ctype_xdigit_variation1.phpt 
ctype_xdigit_error.phpt 
ctype_upper_variation4.phpt 
ctype_digit_basic.phpt 
ctype_cntrl_variation2.phpt 
ctype_xdigit_variation3.phpt 
ctype_print_variation1.phpt 
ctype_alnum_error.phpt 
ctype_alnum_variation4.phpt 
ctype_upper_variation1.phpt 
ctype_lower_variation2.phpt 
ctype_print_basic.phpt 
ctype_print_variation4.phpt 
ctype_space_variation3.phpt 
ctype_digit_variation4.phpt 
ctype_upper_error.phpt 
ctype_digit_error.phpt 
ctype_print_variation2.phpt 
ctype_alpha_basic.phpt 
ctype_digit_variation2.phpt 
ctype_upper_variation3.phpt 
ctype_cntrl_variation1.phpt 
  Log:
  - new tests for ctype functions
  
http://cvs.php.net/viewvc.cgi/php-src/ext/ctype/tests/ctype_alnum_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/ctype/tests/ctype_alnum_variation1.phpt
+++ php-src/ext/ctype/tests/ctype_alnum_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/ctype/tests/ctype_lower_error.phpt?view=markuprev=1.1
Index: php-src/ext/ctype/tests/ctype_lower_error.phpt
+++ php-src/ext/ctype/tests/ctype_lower_error.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/ctype/tests/ctype_punct_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/ctype/tests/ctype_punct_variation2.phpt
+++ php-src/ext/ctype/tests/ctype_punct_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/ctype/tests/ctype_cntrl_basic.phpt?view=markuprev=1.1
Index: php-src/ext/ctype/tests/ctype_cntrl_basic.phpt
+++ php-src/ext/ctype/tests/ctype_cntrl_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/ctype/tests/ctype_upper_basic.phpt?view=markuprev=1.1

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/dir rewinddir_variation3.phpt

2008-03-11 Thread Josie Messa
jmessa  Tue Mar 11 10:01:31 2008 UTC

  Modified files:  (Branch: PHP_5_2)
/php-src/ext/standard/tests/dir rewinddir_variation3.phpt 
  Log:
  - Fix test
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/rewinddir_variation3.phpt?r1=1.1.2.2r2=1.1.2.3diff_format=u
Index: php-src/ext/standard/tests/dir/rewinddir_variation3.phpt
diff -u php-src/ext/standard/tests/dir/rewinddir_variation3.phpt:1.1.2.2 
php-src/ext/standard/tests/dir/rewinddir_variation3.phpt:1.1.2.3
--- php-src/ext/standard/tests/dir/rewinddir_variation3.phpt:1.1.2.2Tue Mar 
11 09:45:30 2008
+++ php-src/ext/standard/tests/dir/rewinddir_variation3.phptTue Mar 11 
10:01:31 2008
@@ -36,7 +36,6 @@
 resource(%d) of type (stream)
 
 Warning: rewinddir(): %d is not a valid Directory resource in %s on line %d
-bool(false)
 
 -- Check if rewinddir() has repositioned the file pointer --
 rewinddir() does not work on file pointers



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/dir closedir_error.phpt readdir_variation7.phpt

2008-03-11 Thread Josie Messa
jmessa  Tue Mar 11 09:55:26 2008 UTC

  Modified files:  (Branch: PHP_5_2)
/php-src/ext/standard/tests/dir readdir_variation7.phpt 
closedir_error.phpt 
  Log:
  - Modified tests
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation7.phpt?r1=1.1.2.2r2=1.1.2.3diff_format=u
Index: php-src/ext/standard/tests/dir/readdir_variation7.phpt
diff -u php-src/ext/standard/tests/dir/readdir_variation7.phpt:1.1.2.2 
php-src/ext/standard/tests/dir/readdir_variation7.phpt:1.1.2.3
--- php-src/ext/standard/tests/dir/readdir_variation7.phpt:1.1.2.2  Tue Mar 
11 09:45:30 2008
+++ php-src/ext/standard/tests/dir/readdir_variation7.phpt  Tue Mar 11 
09:55:26 2008
@@ -31,7 +31,6 @@
 *** Testing readdir() : usage variations ***
 resource(%d) of type (stream)
 
-
 Warning: readdir(): %d is not a valid Directory resource in %s on line %d
 bool(false)
 ===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/closedir_error.phpt?r1=1.1.2.1r2=1.1.2.2diff_format=u
Index: php-src/ext/standard/tests/dir/closedir_error.phpt
diff -u php-src/ext/standard/tests/dir/closedir_error.phpt:1.1.2.1 
php-src/ext/standard/tests/dir/closedir_error.phpt:1.1.2.2
--- php-src/ext/standard/tests/dir/closedir_error.phpt:1.1.2.1  Fri Mar  7 
15:58:38 2008
+++ php-src/ext/standard/tests/dir/closedir_error.phpt  Tue Mar 11 09:55:26 2008
@@ -25,7 +25,7 @@
 $extra_arg = 10;
 var_dump( closedir($dir_handle, $extra_arg) );
 
-//successfully close the directory handle so can delete in --CLEAN-- section
+//successfully close the directory handle so can delete in CLEAN section
 closedir($dir_handle);
 ?
 ===DONE===



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/dir closedir_variation3.phpt readdir_variation7.phpt rewinddir_variation3.phpt

2008-03-11 Thread Josie Messa
jmessa  Tue Mar 11 09:45:31 2008 UTC

  Modified files:  (Branch: PHP_5_2)
/php-src/ext/standard/tests/dir readdir_variation7.phpt 
closedir_variation3.phpt 
rewinddir_variation3.phpt 
  Log:
  - Added extra whitespace around error messages in expected output
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation7.phpt?r1=1.1.2.1r2=1.1.2.2diff_format=u
Index: php-src/ext/standard/tests/dir/readdir_variation7.phpt
diff -u php-src/ext/standard/tests/dir/readdir_variation7.phpt:1.1.2.1 
php-src/ext/standard/tests/dir/readdir_variation7.phpt:1.1.2.2
--- php-src/ext/standard/tests/dir/readdir_variation7.phpt:1.1.2.1  Fri Mar 
 7 16:19:39 2008
+++ php-src/ext/standard/tests/dir/readdir_variation7.phpt  Tue Mar 11 
09:45:30 2008
@@ -31,6 +31,7 @@
 *** Testing readdir() : usage variations ***
 resource(%d) of type (stream)
 
+
 Warning: readdir(): %d is not a valid Directory resource in %s on line %d
 bool(false)
 ===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/closedir_variation3.phpt?r1=1.1.2.1r2=1.1.2.2diff_format=u
Index: php-src/ext/standard/tests/dir/closedir_variation3.phpt
diff -u php-src/ext/standard/tests/dir/closedir_variation3.phpt:1.1.2.1 
php-src/ext/standard/tests/dir/closedir_variation3.phpt:1.1.2.2
--- php-src/ext/standard/tests/dir/closedir_variation3.phpt:1.1.2.1 Fri Mar 
 7 16:19:39 2008
+++ php-src/ext/standard/tests/dir/closedir_variation3.phpt Tue Mar 11 
09:45:30 2008
@@ -35,7 +35,9 @@
 resource(%d) of type (stream)
 
 -- Try to close the file pointer using closedir() --
+
 Warning: closedir(): %d is not a valid Directory resource in %s on line %d
+bool(false)
 
 -- Check file pointer: --
 resource(%d) of type (stream)
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/rewinddir_variation3.phpt?r1=1.1.2.1r2=1.1.2.2diff_format=u
Index: php-src/ext/standard/tests/dir/rewinddir_variation3.phpt
diff -u php-src/ext/standard/tests/dir/rewinddir_variation3.phpt:1.1.2.1 
php-src/ext/standard/tests/dir/rewinddir_variation3.phpt:1.1.2.2
--- php-src/ext/standard/tests/dir/rewinddir_variation3.phpt:1.1.2.1Fri Mar 
 7 16:19:39 2008
+++ php-src/ext/standard/tests/dir/rewinddir_variation3.phptTue Mar 11 
09:45:30 2008
@@ -34,7 +34,9 @@
 
 -- Open a file using fopen --
 resource(%d) of type (stream)
-NULL
+
+Warning: rewinddir(): %d is not a valid Directory resource in %s on line %d
+bool(false)
 
 -- Check if rewinddir() has repositioned the file pointer --
 rewinddir() does not work on file pointers



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/standard/tests/dir closedir_variation3.phpt rewinddir_variation3.phpt

2008-03-11 Thread Josie Messa
jmessa  Tue Mar 11 10:20:06 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/dir rewinddir_variation3.phpt 
closedir_variation3.phpt 
  Log:
  - Added extra whitespace around error messages in expected output
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/rewinddir_variation3.phpt?r1=1.2r2=1.3diff_format=u
Index: php-src/ext/standard/tests/dir/rewinddir_variation3.phpt
diff -u php-src/ext/standard/tests/dir/rewinddir_variation3.phpt:1.2 
php-src/ext/standard/tests/dir/rewinddir_variation3.phpt:1.3
--- php-src/ext/standard/tests/dir/rewinddir_variation3.phpt:1.2Fri Mar 
 7 16:21:30 2008
+++ php-src/ext/standard/tests/dir/rewinddir_variation3.phptTue Mar 11 
10:20:06 2008
@@ -34,7 +34,9 @@
 
 -- Open a file using fopen --
 resource(%d) of type (stream)
-NULL
+
+Warning: rewinddir(): %d is not a valid Directory resource in %s on line %d
+bool(false)
 
 -- Check if rewinddir() has repositioned the file pointer --
 rewinddir() does not work on file pointers
@@ -44,7 +46,9 @@
 
 -- Open a file using fopen --
 resource(%d) of type (stream)
-NULL
+
+Warning: rewinddir(): %d is not a valid Directory resource in %s on line %d
+bool(false)
 
 -- Check if rewinddir() has repositioned the file pointer --
 rewinddir() does not work on file pointers
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/closedir_variation3.phpt?r1=1.2r2=1.3diff_format=u
Index: php-src/ext/standard/tests/dir/closedir_variation3.phpt
diff -u php-src/ext/standard/tests/dir/closedir_variation3.phpt:1.2 
php-src/ext/standard/tests/dir/closedir_variation3.phpt:1.3
--- php-src/ext/standard/tests/dir/closedir_variation3.phpt:1.2 Fri Mar  7 
16:21:30 2008
+++ php-src/ext/standard/tests/dir/closedir_variation3.phpt Tue Mar 11 
10:20:06 2008
@@ -35,7 +35,9 @@
 resource(%d) of type (stream)
 
 -- Try to close the file pointer using closedir() --
+
 Warning: closedir(): %d is not a valid Directory resource in %s on line %d
+bool(false)
 
 -- Check file pointer: --
 resource(%d) of type (stream)
@@ -47,7 +49,9 @@
 resource(%d) of type (stream)
 
 -- Try to close the file pointer using closedir() --
+
 Warning: closedir(): %d is not a valid Directory resource in %s on line %d
+bool(false)
 
 -- Check file pointer: --
 resource(%d) of type (stream)



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/dir closedir_variation3.phpt rewinddir_variation3.phpt

2008-03-11 Thread Josie Messa
jmessa  Tue Mar 11 10:00:26 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/ext/standard/tests/dir rewinddir_variation3.phpt 
closedir_variation3.phpt 
  Log:
  - Added extra whitespace around error messages in expected output
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/rewinddir_variation3.phpt?r1=1.1.4.2r2=1.1.4.3diff_format=u
Index: php-src/ext/standard/tests/dir/rewinddir_variation3.phpt
diff -u php-src/ext/standard/tests/dir/rewinddir_variation3.phpt:1.1.4.2 
php-src/ext/standard/tests/dir/rewinddir_variation3.phpt:1.1.4.3
--- php-src/ext/standard/tests/dir/rewinddir_variation3.phpt:1.1.4.2Fri Mar 
 7 16:20:16 2008
+++ php-src/ext/standard/tests/dir/rewinddir_variation3.phptTue Mar 11 
10:00:26 2008
@@ -34,7 +34,8 @@
 
 -- Open a file using fopen --
 resource(%d) of type (stream)
-NULL
+
+Warning: rewinddir(): %d is not a valid Directory resource in %s on line %d
 
 -- Check if rewinddir() has repositioned the file pointer --
 rewinddir() does not work on file pointers
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/closedir_variation3.phpt?r1=1.1.4.2r2=1.1.4.3diff_format=u
Index: php-src/ext/standard/tests/dir/closedir_variation3.phpt
diff -u php-src/ext/standard/tests/dir/closedir_variation3.phpt:1.1.4.2 
php-src/ext/standard/tests/dir/closedir_variation3.phpt:1.1.4.3
--- php-src/ext/standard/tests/dir/closedir_variation3.phpt:1.1.4.2 Fri Mar 
 7 16:20:16 2008
+++ php-src/ext/standard/tests/dir/closedir_variation3.phpt Tue Mar 11 
10:00:26 2008
@@ -35,7 +35,9 @@
 resource(%d) of type (stream)
 
 -- Try to close the file pointer using closedir() --
+
 Warning: closedir(): %d is not a valid Directory resource in %s on line %d
+bool(false)
 
 -- Check file pointer: --
 resource(%d) of type (stream)



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/dir scandir_basic.phpt scandir_error1.phpt scandir_error2.phpt scandir_variation1.phpt scandir_variation2.phpt scandir_variation3.phpt scandir_varia

2008-03-10 Thread Josie Messa
jmessa  Mon Mar 10 14:09:05 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/dir scandir_variation6.phpt 
scandir_variation9.phpt 
scandir_variation7.phpt 
scandir_error2.phpt 
scandir_variation2.phpt 
scandir_variation1.phpt 
scandir_variation3.phpt 
scandir_variation4.phpt 
scandir_error1.phpt 
scandir_variation5.phpt 
scandir_variation8.phpt 
scandir_basic.phpt 
  Log:
  - New tests for scandir() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation6.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation6.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation9.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation9.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation9.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation7.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation7.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation7.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_error2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_error2.phpt
+++ php-src/ext/standard/tests/dir/scandir_error2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation2.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation1.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation3.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation4.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation4.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_error1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_error1.phpt
+++ php-src/ext/standard/tests/dir/scandir_error1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation5.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation5.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation8.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation8.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation8.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_basic.phpt
+++ php-src/ext/standard/tests/dir/scandir_basic.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/dir scandir_basic.phpt scandir_error1.phpt scandir_error2.phpt scandir_variation1.phpt scandir_variation2.phpt scandir_variation3.phpt scandir_varia

2008-03-10 Thread Josie Messa
jmessa  Mon Mar 10 14:12:41 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/dir scandir_variation7.phpt 
scandir_variation4.phpt 
scandir_variation3.phpt 
scandir_error1.phpt 
scandir_variation8.phpt 
scandir_variation6.phpt 
scandir_variation2.phpt 
scandir_variation9.phpt 
scandir_variation5.phpt 
scandir_basic.phpt 
scandir_variation1.phpt 
scandir_error2.phpt 
  Log:
  - New tests for scandir() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation7.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation7.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation7.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation4.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation4.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation3.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_error1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_error1.phpt
+++ php-src/ext/standard/tests/dir/scandir_error1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation8.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation8.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation8.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation6.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation6.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation2.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation9.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation9.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation9.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation5.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation5.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_basic.phpt
+++ php-src/ext/standard/tests/dir/scandir_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_variation1.phpt
+++ php-src/ext/standard/tests/dir/scandir_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/scandir_error2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/scandir_error2.phpt
+++ php-src/ext/standard/tests/dir/scandir_error2.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/dir dir_variation7.phpt opendir_error2.phpt opendir_variation1.phpt opendir_variation5.phpt opendir_variation6.phpt

2008-03-10 Thread Josie Messa
jmessa  Mon Mar 10 15:07:21 2008 UTC

  Modified files:  (Branch: PHP_5_2)
/php-src/ext/standard/tests/dir opendir_variation5.phpt 
opendir_variation6.phpt 
dir_variation7.phpt 
opendir_error2.phpt 
opendir_variation1.phpt 
  Log:
  - Modified expected output to allow tests to work on all platforms
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation5.phpt?r1=1.1.2.2r2=1.1.2.3diff_format=u
Index: php-src/ext/standard/tests/dir/opendir_variation5.phpt
diff -u php-src/ext/standard/tests/dir/opendir_variation5.phpt:1.1.2.2 
php-src/ext/standard/tests/dir/opendir_variation5.phpt:1.1.2.3
--- php-src/ext/standard/tests/dir/opendir_variation5.phpt:1.1.2.2  Tue Mar 
 4 11:16:39 2008
+++ php-src/ext/standard/tests/dir/opendir_variation5.phpt  Mon Mar 10 
15:07:20 2008
@@ -93,11 +93,11 @@
 
 -- After restricting 1st level parent directory --
 
-Warning: opendir(%s/opendir_variation5/sub_dir/child_dir): failed to open dir: 
Permission denied in %s on line %d
+Warning: opendir(%s/opendir_variation5/sub_dir/child_dir): failed to open dir: 
%s in %s on line %d
 bool(false)
 
 -- After restricting parent directory --
 
-Warning: opendir(%s/opendir_variation5/sub_dir/child_dir): failed to open dir: 
Permission denied in %s on line %d
+Warning: opendir(%s/opendir_variation5/sub_dir/child_dir): failed to open dir: 
%s in %s on line %d
 bool(false)
 ===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation6.phpt?r1=1.1.2.1r2=1.1.2.2diff_format=u
Index: php-src/ext/standard/tests/dir/opendir_variation6.phpt
diff -u php-src/ext/standard/tests/dir/opendir_variation6.phpt:1.1.2.1 
php-src/ext/standard/tests/dir/opendir_variation6.phpt:1.1.2.2
--- php-src/ext/standard/tests/dir/opendir_variation6.phpt:1.1.2.1  Tue Mar 
 4 10:39:31 2008
+++ php-src/ext/standard/tests/dir/opendir_variation6.phpt  Mon Mar 10 
15:07:20 2008
@@ -45,17 +45,17 @@
 
 -- Wildcard = '*' --
 
-Warning: opendir(%s/opendir_var*): failed to open dir: No such file or 
directory in %s on line %d
+Warning: opendir(%s/opendir_var*): failed to open dir: %s in %s on line %d
 bool(false)
 
-Warning: opendir(%s/*): failed to open dir: No such file or directory in %s on 
line %d
+Warning: opendir(%s/*): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Wildcard = '?' --
 
-Warning: opendir(%s/opendir_variation6/sub_dir?): failed to open dir: No such 
file or directory in %s on line %d
+Warning: opendir(%s/opendir_variation6/sub_dir?): failed to open dir: %s in %s 
on line %d
 bool(false)
 
-Warning: opendir(%s/opendir_variation6/sub?dir1): failed to open dir: No such 
file or directory in %s on line %d
+Warning: opendir(%s/opendir_variation6/sub?dir1): failed to open dir: %s in %s 
on line %d
 bool(false)
 ===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/dir_variation7.phpt?r1=1.1.4.3r2=1.1.4.4diff_format=u
Index: php-src/ext/standard/tests/dir/dir_variation7.phpt
diff -u php-src/ext/standard/tests/dir/dir_variation7.phpt:1.1.4.3 
php-src/ext/standard/tests/dir/dir_variation7.phpt:1.1.4.4
--- php-src/ext/standard/tests/dir/dir_variation7.phpt:1.1.4.3  Tue Dec 25 
16:16:32 2007
+++ php-src/ext/standard/tests/dir/dir_variation7.phpt  Mon Mar 10 15:07:20 2008
@@ -85,10 +85,10 @@
 *** Testing dir() : remove execute permission from the parent dir ***
 -- After restricting 1st level parent directory --
 
-Warning: dir(%s/dir_variation7/sub_dir/child_dir): failed to open dir: 
Permission denied in %s on line %d
+Warning: dir(%s/dir_variation7/sub_dir/child_dir): failed to open dir: %s in 
%s on line %d
 bool(false)
 -- After restricting parent directory --
 
-Warning: dir(%s/dir_variation7/sub_dir/child_dir): failed to open dir: 
Permission denied in %s on line %d
+Warning: dir(%s/dir_variation7/sub_dir/child_dir): failed to open dir: %s in 
%s on line %d
 bool(false)
 Done
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_error2.phpt?r1=1.1.2.1r2=1.1.2.2diff_format=u
Index: php-src/ext/standard/tests/dir/opendir_error2.phpt
diff -u php-src/ext/standard/tests/dir/opendir_error2.phpt:1.1.2.1 
php-src/ext/standard/tests/dir/opendir_error2.phpt:1.1.2.2
--- php-src/ext/standard/tests/dir/opendir_error2.phpt:1.1.2.1  Tue Mar  4 
10:39:31 2008
+++ php-src/ext/standard/tests/dir/opendir_error2.phpt  Mon Mar 10 15:07:20 2008
@@ -27,11 +27,11 @@
 
 -- Pass a non-existent absolute path: --
 
-Warning: opendir(%s/idonotexist): failed to open dir: No such file or 
directory in %s on line %d
+Warning: opendir(%s/idonotexist): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Pass a non-existent relative path: --
 
-Warning: opendir(idonotexist): failed to open dir: No such file or directory 
in %s on line %d
+Warning: opendir(idonotexist): 

[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/dir dir_variation7.phpt opendir_error2.phpt opendir_variation1.phpt opendir_variation5.phpt opendir_variation6.phpt

2008-03-10 Thread Josie Messa
jmessa  Mon Mar 10 15:10:32 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/ext/standard/tests/dir opendir_error2.phpt 
opendir_variation1.phpt 
dir_variation7.phpt 
opendir_variation6.phpt 
opendir_variation5.phpt 
  Log:
  - Modified expected output to allow tests to work on all platforms
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_error2.phpt?r1=1.1.4.2r2=1.1.4.3diff_format=u
Index: php-src/ext/standard/tests/dir/opendir_error2.phpt
diff -u php-src/ext/standard/tests/dir/opendir_error2.phpt:1.1.4.2 
php-src/ext/standard/tests/dir/opendir_error2.phpt:1.1.4.3
--- php-src/ext/standard/tests/dir/opendir_error2.phpt:1.1.4.2  Tue Mar  4 
10:40:36 2008
+++ php-src/ext/standard/tests/dir/opendir_error2.phpt  Mon Mar 10 15:10:32 2008
@@ -27,11 +27,11 @@
 
 -- Pass a non-existent absolute path: --
 
-Warning: opendir(%s/idonotexist): failed to open dir: No such file or 
directory in %s on line %d
+Warning: opendir(%s/idonotexist): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Pass a non-existent relative path: --
 
-Warning: opendir(idonotexist): failed to open dir: No such file or directory 
in %s on line %d
+Warning: opendir(idonotexist): failed to open dir: %s in %s on line %d
 bool(false)
 ===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation1.phpt?r1=1.1.4.2r2=1.1.4.3diff_format=u
Index: php-src/ext/standard/tests/dir/opendir_variation1.phpt
diff -u php-src/ext/standard/tests/dir/opendir_variation1.phpt:1.1.4.2 
php-src/ext/standard/tests/dir/opendir_variation1.phpt:1.1.4.3
--- php-src/ext/standard/tests/dir/opendir_variation1.phpt:1.1.4.2  Tue Mar 
 4 10:40:36 2008
+++ php-src/ext/standard/tests/dir/opendir_variation1.phpt  Mon Mar 10 
15:10:32 2008
@@ -115,47 +115,47 @@
 
 -- Iteration 1 --
 
-Warning: opendir(0): failed to open dir: No such file or directory in %s on 
line %d
+Warning: opendir(0): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 2 --
 
-Warning: opendir(1): failed to open dir: No such file or directory in %s on 
line %d
+Warning: opendir(1): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 3 --
 
-Warning: opendir(12345): failed to open dir: No such file or directory in %s 
on line %d
+Warning: opendir(12345): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 4 --
 
-Warning: opendir(-2345): failed to open dir: No such file or directory in %s 
on line %d
+Warning: opendir(-2345): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 5 --
 
-Warning: opendir(10.5): failed to open dir: No such file or directory in %s on 
line %d
+Warning: opendir(10.5): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 6 --
 
-Warning: opendir(-10.5): failed to open dir: No such file or directory in %s 
on line %d
+Warning: opendir(-10.5): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 7 --
 
-Warning: opendir(123456789000): failed to open dir: No such file or directory 
in %s on line %d
+Warning: opendir(123456789000): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 8 --
 
-Warning: opendir(1.23456789E-9): failed to open dir: No such file or directory 
in %s on line %d
+Warning: opendir(1.23456789E-9): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 9 --
 
-Warning: opendir(0.5): failed to open dir: No such file or directory in %s on 
line %d
+Warning: opendir(0.5): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 10 --
@@ -166,7 +166,7 @@
 
 -- Iteration 12 --
 
-Warning: opendir(1): failed to open dir: No such file or directory in %s on 
line %d
+Warning: opendir(1): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 13 --
@@ -174,7 +174,7 @@
 
 -- Iteration 14 --
 
-Warning: opendir(1): failed to open dir: No such file or directory in %s on 
line %d
+Warning: opendir(1): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 15 --
@@ -196,7 +196,7 @@
 
 -- Iteration 20 --
 
-Warning: opendir(string): failed to open dir: No such file or directory in %s 
on line %d
+Warning: opendir(string): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 21 --
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/dir_variation7.phpt?r1=1.1.2.3r2=1.1.2.4diff_format=u
Index: php-src/ext/standard/tests/dir/dir_variation7.phpt
diff -u php-src/ext/standard/tests/dir/dir_variation7.phpt:1.1.2.3 
php-src/ext/standard/tests/dir/dir_variation7.phpt:1.1.2.4
--- php-src/ext/standard/tests/dir/dir_variation7.phpt:1.1.2.3  Tue Dec 25 
16:15:34 2007
+++ php-src/ext/standard/tests/dir/dir_variation7.phpt  Mon Mar 10 15:10:32 2008
@@ -85,10 +85,10 @@
 *** Testing dir() : remove execute permission from the parent dir ***
 -- 

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/dir getcwd_basic.phpt getcwd_error.phpt

2008-03-10 Thread Josie Messa
jmessa  Mon Mar 10 15:21:16 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/dir getcwd_error.phpt getcwd_basic.phpt 
  Log:
  - New tests for getcwd() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/getcwd_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/getcwd_error.phpt
+++ php-src/ext/standard/tests/dir/getcwd_error.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/getcwd_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/getcwd_basic.phpt
+++ php-src/ext/standard/tests/dir/getcwd_basic.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/dir getcwd_basic.phpt getcwd_error.phpt

2008-03-10 Thread Josie Messa
jmessa  Mon Mar 10 15:22:47 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/dir getcwd_error.phpt getcwd_basic.phpt 
  Log:
  - New tests for getcwd() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/getcwd_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/getcwd_error.phpt
+++ php-src/ext/standard/tests/dir/getcwd_error.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/getcwd_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/getcwd_basic.phpt
+++ php-src/ext/standard/tests/dir/getcwd_basic.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/standard/tests/dir getcwd_basic.phpt getcwd_error.phpt

2008-03-10 Thread Josie Messa
jmessa  Mon Mar 10 15:24:14 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/dir getcwd_basic.phpt getcwd_error.phpt 
  Log:
  - New tests for getcwd() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/getcwd_basic.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/dir/getcwd_basic.phpt
diff -u /dev/null php-src/ext/standard/tests/dir/getcwd_basic.phpt:1.2
--- /dev/null   Mon Mar 10 15:24:14 2008
+++ php-src/ext/standard/tests/dir/getcwd_basic.phptMon Mar 10 15:24:14 2008
@@ -0,0 +1,39 @@
+--TEST--
+Test getcwd() function : basic functionality
+--FILE--
+?php
+/* Prototype  : mixed getcwd(void)
+ * Description: Gets the current directory 
+ * Source code: ext/standard/dir.c 
+ */
+
+/*
+ * Test basic functionality of getcwd()
+ */
+
+echo *** Testing getcwd() : basic functionality ***\n;
+
+//create temporary directory for test, removed in CLEAN section
+$directory = dirname(__FILE__) . /getcwd_basic;
+mkdir($directory);
+
+var_dump(getcwd());
+chdir($directory);
+var_dump(getcwd());
+?
+===DONE===
+--CLEAN--
+?php
+$directory = dirname(__FILE__) . /getcwd_basic;
+rmdir($directory);
+?
+--EXPECTF--
+*** Testing getcwd() : basic functionality ***
+string(%d) %s
+string(%d) %s%egetcwd_basic
+===DONE===
+--UEXPECTF--
+*** Testing getcwd() : basic functionality ***
+unicode(%d) %s
+unicode(%d) %s%egetcwd_basic
+===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/getcwd_error.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/dir/getcwd_error.phpt
diff -u /dev/null php-src/ext/standard/tests/dir/getcwd_error.phpt:1.2
--- /dev/null   Mon Mar 10 15:24:14 2008
+++ php-src/ext/standard/tests/dir/getcwd_error.phptMon Mar 10 15:24:14 2008
@@ -0,0 +1,37 @@
+--TEST--
+Test getcwd() function : error conditions - Incorrect number of arguments
+--FILE--
+?php
+/* Prototype  : mixed getcwd(void)
+ * Description: Gets the current directory 
+ * Source code: ext/standard/dir.c
+ */
+
+/*
+ * Pass incorrect number of arguments to getcwd() to test behaviour
+ */
+
+echo *** Testing getcwd() : error conditions ***\n;
+
+// One argument
+echo \n-- Testing getcwd() function with one argument --\n;
+$extra_arg = 10;
+var_dump( getcwd($extra_arg) );
+?
+===DONE===
+--EXPECTF--
+*** Testing getcwd() : error conditions ***
+
+-- Testing getcwd() function with one argument --
+
+Warning: getcwd() expects exactly 0 parameters, 1 given in %s on line %d
+NULL
+===DONE===
+--UEXPECTF--
+*** Testing getcwd() : error conditions ***
+
+-- Testing getcwd() function with one argument --
+
+Warning: getcwd() expects exactly 0 parameters, 1 given in %s on line %d
+NULL
+===DONE===



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/standard/tests/dir dir_variation7.phpt opendir_error2.phpt opendir_variation1.phpt opendir_variation5.phpt opendir_variation6.phpt

2008-03-10 Thread Josie Messa
jmessa  Mon Mar 10 15:20:00 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/dir opendir_variation1.phpt 
opendir_error2.phpt 
dir_variation7.phpt 
opendir_variation6.phpt 
opendir_variation5.phpt 
  Log:
  - Modified expected output to allow tests to work on all platforms
  http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation1.phpt?r1=1.2r2=1.3diff_format=u
Index: php-src/ext/standard/tests/dir/opendir_variation1.phpt
diff -u php-src/ext/standard/tests/dir/opendir_variation1.phpt:1.2 
php-src/ext/standard/tests/dir/opendir_variation1.phpt:1.3
--- php-src/ext/standard/tests/dir/opendir_variation1.phpt:1.2  Tue Mar  4 
10:45:40 2008
+++ php-src/ext/standard/tests/dir/opendir_variation1.phpt  Mon Mar 10 
15:19:59 2008
@@ -115,47 +115,47 @@
 
 -- Iteration 1 --
 
-Warning: opendir(0): failed to open dir: No such file or directory in %s on 
line %d
+Warning: opendir(0): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 2 --
 
-Warning: opendir(1): failed to open dir: No such file or directory in %s on 
line %d
+Warning: opendir(1): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 3 --
 
-Warning: opendir(12345): failed to open dir: No such file or directory in %s 
on line %d
+Warning: opendir(12345): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 4 --
 
-Warning: opendir(-2345): failed to open dir: No such file or directory in %s 
on line %d
+Warning: opendir(-2345): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 5 --
 
-Warning: opendir(10.5): failed to open dir: No such file or directory in %s on 
line %d
+Warning: opendir(10.5): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 6 --
 
-Warning: opendir(-10.5): failed to open dir: No such file or directory in %s 
on line %d
+Warning: opendir(-10.5): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 7 --
 
-Warning: opendir(123456789000): failed to open dir: No such file or directory 
in %s on line %d
+Warning: opendir(123456789000): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 8 --
 
-Warning: opendir(1.23456789E-9): failed to open dir: No such file or directory 
in %s on line %d
+Warning: opendir(1.23456789E-9): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 9 --
 
-Warning: opendir(0.5): failed to open dir: No such file or directory in %s on 
line %d
+Warning: opendir(0.5): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 10 --
@@ -166,7 +166,7 @@
 
 -- Iteration 12 --
 
-Warning: opendir(1): failed to open dir: No such file or directory in %s on 
line %d
+Warning: opendir(1): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 13 --
@@ -174,7 +174,7 @@
 
 -- Iteration 14 --
 
-Warning: opendir(1): failed to open dir: No such file or directory in %s on 
line %d
+Warning: opendir(1): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 15 --
@@ -190,7 +190,7 @@
 
 Notice: Array to string conversion in %s on line %d
 
-Warning: opendir(Array): failed to open dir: No such file or directory in %s 
on line %d
+Warning: opendir(Array): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 19 --
@@ -198,7 +198,7 @@
 
 -- Iteration 20 --
 
-Warning: opendir(string): failed to open dir: No such file or directory in %s 
on line %d
+Warning: opendir(string): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 21 --
@@ -215,7 +215,7 @@
 
 -- Iteration 25 --
 
-Warning: opendir(Resource id #%d): failed to open dir: No such file or 
directory in %s on line %d
+Warning: opendir(Resource id #%d): failed to open dir: %s in %s on line %d
 bool(false)
 ===DONE===
 --UEXPECTF--
@@ -223,47 +223,47 @@
 
 -- Iteration 1 --
 
-Warning: opendir(0): failed to open dir: No such file or directory in %s on 
line %d
+Warning: opendir(0): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 2 --
 
-Warning: opendir(1): failed to open dir: No such file or directory in %s on 
line %d
+Warning: opendir(1): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 3 --
 
-Warning: opendir(12345): failed to open dir: No such file or directory in %s 
on line %d
+Warning: opendir(12345): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 4 --
 
-Warning: opendir(-2345): failed to open dir: No such file or directory in %s 
on line %d
+Warning: opendir(-2345): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 5 --
 
-Warning: opendir(10.5): failed to open dir: No such file or directory in %s on 
line %d
+Warning: opendir(10.5): failed to open dir: %s in %s on line %d
 bool(false)
 
 -- Iteration 6 --
 
-Warning: opendir(-10.5): failed to open dir: No such file 

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/dir closedir_basic.phpt closedir_error.phpt closedir_variation1.phpt closedir_variation2.phpt

2008-03-07 Thread Josie Messa
jmessa  Fri Mar  7 15:58:39 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/dir closedir_error.phpt 
closedir_variation2.phpt 
closedir_variation1.phpt 
closedir_basic.phpt 
  Log:
  - New tests for closedir() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/closedir_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/closedir_error.phpt
+++ php-src/ext/standard/tests/dir/closedir_error.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/closedir_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/closedir_variation2.phpt
+++ php-src/ext/standard/tests/dir/closedir_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/closedir_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/closedir_variation1.phpt
+++ php-src/ext/standard/tests/dir/closedir_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/closedir_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/closedir_basic.phpt
+++ php-src/ext/standard/tests/dir/closedir_basic.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/dir closedir_basic.phpt closedir_error.phpt closedir_variation1.phpt closedir_variation2.phpt

2008-03-07 Thread Josie Messa
jmessa  Fri Mar  7 16:00:24 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/dir closedir_variation2.phpt 
closedir_variation1.phpt 
closedir_error.phpt 
closedir_basic.phpt 
  Log:
  - New tests for closedir() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/closedir_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/closedir_variation2.phpt
+++ php-src/ext/standard/tests/dir/closedir_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/closedir_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/closedir_variation1.phpt
+++ php-src/ext/standard/tests/dir/closedir_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/closedir_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/closedir_error.phpt
+++ php-src/ext/standard/tests/dir/closedir_error.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/closedir_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/closedir_basic.phpt
+++ php-src/ext/standard/tests/dir/closedir_basic.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/standard/tests/dir closedir_basic.phpt closedir_error.phpt closedir_variation1.phpt closedir_variation2.phpt

2008-03-07 Thread Josie Messa
jmessa  Fri Mar  7 16:02:42 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/dir closedir_variation1.phpt 
closedir_basic.phpt 
closedir_error.phpt 
closedir_variation2.phpt 
  Log:
  - New tests for closedir() function
  http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/closedir_variation1.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/dir/closedir_variation1.phpt
diff -u /dev/null php-src/ext/standard/tests/dir/closedir_variation1.phpt:1.2
--- /dev/null   Fri Mar  7 16:02:42 2008
+++ php-src/ext/standard/tests/dir/closedir_variation1.phpt Fri Mar  7 
16:02:42 2008
@@ -0,0 +1,335 @@
+--TEST--
+Test closedir() function : usage variations - different data types as 
$dir_handle arg
+--FILE--
+?php
+/* Prototype  : void closedir([resource $dir_handle])
+ * Description: Close directory connection identified by the dir_handle 
+ * Source code: ext/standard/dir.c
+ * Alias to functions: close
+ */
+
+/*
+ * Pass different data types as $dir_handle argument to closedir() to test 
behaviour
+ */
+
+echo *** Testing closedir() : usage variations ***\n;
+
+//get an unset variable
+$unset_var = 10;
+unset ($unset_var);
+
+// get a class
+class classA
+{
+  public function __toString() {
+return Class A object;
+  }
+}
+
+// heredoc string
+$heredoc = EOT
+hello world
+EOT;
+
+// unexpected values to be passed to $dir_handle argument
+$inputs = array(
+
+   // int data
+/*1*/  0,
+   1,
+   12345,
+   -2345,
+
+   // float data
+/*5*/  10.5,
+   -10.5,
+   12.3456789000e10,
+   12.3456789000E-10,
+   .5,
+
+   // null data
+/*10*/ NULL,
+   null,
+
+   // boolean data
+/*12*/ true,
+   false,
+   TRUE,
+   FALSE,
+   
+   // empty data
+/*16*/ ,
+   '',
+   array(),
+
+   // string data
+/*19*/ string,
+   'string',
+   $heredoc,
+   
+   // object data
+/*22*/ new classA(),
+
+   // undefined data
+/*23*/ @$undefined_var,
+
+   // unset data
+/*24*/ @$unset_var,
+);
+
+// loop through each element of $inputs to check the behavior of closedir()
+$iterator = 1;
+foreach($inputs as $input) {
+  echo \n-- Iteration $iterator --\n;
+  var_dump( closedir($input) );
+  $iterator++;
+};
+
+?
+===DONE===
+--EXPECTF--
+*** Testing closedir() : usage variations ***
+
+-- Iteration 1 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 2 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 3 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 4 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 5 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 6 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 7 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 8 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 9 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 10 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 11 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 12 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 13 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 14 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 15 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 16 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 17 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 18 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 19 --
+
+Warning: closedir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 20 --
+
+Warning: closedir(): supplied argument is not a 

[PHP-CVS] cvs: php-src /ext/standard/tests/dir opendir_variation5.phpt

2008-03-07 Thread Josie Messa
jmessa  Fri Mar  7 16:07:34 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/dir opendir_variation5.phpt 
  Log:
  fix test
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation5.phpt?r1=1.3r2=1.4diff_format=u
Index: php-src/ext/standard/tests/dir/opendir_variation5.phpt
diff -u php-src/ext/standard/tests/dir/opendir_variation5.phpt:1.3 
php-src/ext/standard/tests/dir/opendir_variation5.phpt:1.4
--- php-src/ext/standard/tests/dir/opendir_variation5.phpt:1.3  Tue Mar  4 
11:16:22 2008
+++ php-src/ext/standard/tests/dir/opendir_variation5.phpt  Fri Mar  7 
16:07:34 2008
@@ -102,7 +102,7 @@
 bool(false)
 ===DONE===
 --UEXPECTF--
-*** Testing opendir() : usage variations ***
+*** Testing opendir() : usage variations ***
 
 -- After restricting 1st level parent directory --
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/dir rewinddir_basic.phpt rewinddir_error.phpt rewinddir_variation1.phpt rewinddir_variation2.phpt

2008-03-07 Thread Josie Messa
jmessa  Fri Mar  7 16:08:58 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/dir rewinddir_basic.phpt 
rewinddir_variation1.phpt 
rewinddir_variation2.phpt 
rewinddir_error.phpt 
  Log:
  - New tests for rewinddir() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/rewinddir_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/rewinddir_basic.phpt
+++ php-src/ext/standard/tests/dir/rewinddir_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/rewinddir_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/rewinddir_variation1.phpt
+++ php-src/ext/standard/tests/dir/rewinddir_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/rewinddir_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/rewinddir_variation2.phpt
+++ php-src/ext/standard/tests/dir/rewinddir_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/rewinddir_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/rewinddir_error.phpt
+++ php-src/ext/standard/tests/dir/rewinddir_error.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/dir rewinddir_basic.phpt rewinddir_error.phpt rewinddir_variation1.phpt rewinddir_variation2.phpt

2008-03-07 Thread Josie Messa
jmessa  Fri Mar  7 16:12:03 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/dir rewinddir_variation1.phpt 
rewinddir_error.phpt 
rewinddir_basic.phpt 
rewinddir_variation2.phpt 
  Log:
  - New tests for rewinddir() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/rewinddir_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/rewinddir_variation1.phpt
+++ php-src/ext/standard/tests/dir/rewinddir_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/rewinddir_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/rewinddir_error.phpt
+++ php-src/ext/standard/tests/dir/rewinddir_error.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/rewinddir_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/rewinddir_basic.phpt
+++ php-src/ext/standard/tests/dir/rewinddir_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/rewinddir_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/rewinddir_variation2.phpt
+++ php-src/ext/standard/tests/dir/rewinddir_variation2.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/dir closedir_variation3.phpt readdir_variation7.phpt rewinddir_variation3.phpt

2008-03-07 Thread Josie Messa
jmessa  Fri Mar  7 16:19:39 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/dir readdir_variation7.phpt 
closedir_variation3.phpt 
rewinddir_variation3.phpt 
  Log:
  - Tests awaiting fix of bug #44246
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation7.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_variation7.phpt
+++ php-src/ext/standard/tests/dir/readdir_variation7.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/closedir_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/closedir_variation3.phpt
+++ php-src/ext/standard/tests/dir/closedir_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/rewinddir_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/rewinddir_variation3.phpt
+++ php-src/ext/standard/tests/dir/rewinddir_variation3.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/dir closedir_variation3.phpt readdir_variation7.phpt rewinddir_variation3.phpt

2008-03-07 Thread Josie Messa
jmessa  Fri Mar  7 16:20:16 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/dir rewinddir_variation3.phpt 
readdir_variation7.phpt 
closedir_variation3.phpt 
  Log:
  - Tests awaiting fix of bug #44246
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/rewinddir_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/rewinddir_variation3.phpt
+++ php-src/ext/standard/tests/dir/rewinddir_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation7.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_variation7.phpt
+++ php-src/ext/standard/tests/dir/readdir_variation7.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/closedir_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/closedir_variation3.phpt
+++ php-src/ext/standard/tests/dir/closedir_variation3.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/standard/tests/dir closedir_variation3.phpt readdir_variation7.phpt rewinddir_variation3.phpt

2008-03-07 Thread Josie Messa
jmessa  Fri Mar  7 16:21:30 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/dir rewinddir_variation3.phpt 
closedir_variation3.phpt 
readdir_variation7.phpt 
  Log:
  - Tests awaiting fix of bug #44246
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/rewinddir_variation3.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/dir/rewinddir_variation3.phpt
diff -u /dev/null php-src/ext/standard/tests/dir/rewinddir_variation3.phpt:1.2
--- /dev/null   Fri Mar  7 16:21:30 2008
+++ php-src/ext/standard/tests/dir/rewinddir_variation3.phptFri Mar  7 
16:21:30 2008
@@ -0,0 +1,51 @@
+--TEST--
+Test rewinddir() function : usage variations - file pointers
+--FILE--
+?php
+/* Prototype  : void rewinddir([resource $dir_handle])
+ * Description: Rewind dir_handle back to the start 
+ * Source code: ext/standard/dir.c
+ * Alias to functions: rewind
+ */
+
+/*
+ * Pass a file pointer to rewinddir() to test behaviour
+ */
+
+echo *** Testing rewinddir() : usage variations ***\n;
+
+echo \n-- Open a file using fopen --\n;
+var_dump($fp = fopen(__FILE__, 'r'));
+
+$result1 = fread($fp, 5);
+var_dump(rewinddir($fp));
+$result2 = fread($fp, 5);
+
+echo \n-- Check if rewinddir() has repositioned the file pointer --\n;
+if ($result1 === $result2) {
+   echo rewinddir() works on file pointers\n;
+} else {
+   echo rewinddir() does not work on file pointers\n;
+}
+?
+===DONE===
+--EXPECTF--
+*** Testing rewinddir() : usage variations ***
+
+-- Open a file using fopen --
+resource(%d) of type (stream)
+NULL
+
+-- Check if rewinddir() has repositioned the file pointer --
+rewinddir() does not work on file pointers
+===DONE===
+--UEXPECTF--
+*** Testing rewinddir() : usage variations ***
+
+-- Open a file using fopen --
+resource(%d) of type (stream)
+NULL
+
+-- Check if rewinddir() has repositioned the file pointer --
+rewinddir() does not work on file pointers
+===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/closedir_variation3.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/dir/closedir_variation3.phpt
diff -u /dev/null php-src/ext/standard/tests/dir/closedir_variation3.phpt:1.2
--- /dev/null   Fri Mar  7 16:21:30 2008
+++ php-src/ext/standard/tests/dir/closedir_variation3.phpt Fri Mar  7 
16:21:30 2008
@@ -0,0 +1,54 @@
+--TEST--
+Test closedir() function : usage variations - close a file pointer
+--FILE--
+?php
+/* Prototype  : void closedir([resource $dir_handle])
+ * Description: Close directory connection identified by the dir_handle 
+ * Source code: ext/standard/dir.c
+ * Alias to functions: close
+ */
+
+/*
+ * Create a file pointer using fopen() then try to close it using closedir()
+ */
+
+echo *** Testing closedir() : usage variations ***\n;
+
+echo \n-- Open a file using fopen() --\n;
+var_dump($fp = fopen(__FILE__, 'r'));
+
+echo \n-- Try to close the file pointer using closedir() --\n;
+var_dump(closedir($fp));
+
+echo \n-- Check file pointer: --\n;
+var_dump($fp);
+
+if(is_resource($fp)) {
+   fclose($fp);
+}
+?
+===DONE===
+--EXPECTF--
+*** Testing closedir() : usage variations ***
+
+-- Open a file using fopen() --
+resource(%d) of type (stream)
+
+-- Try to close the file pointer using closedir() --
+Warning: closedir(): %d is not a valid Directory resource in %s on line %d
+
+-- Check file pointer: --
+resource(%d) of type (stream)
+===DONE===
+--UEXPECTF--
+*** Testing closedir() : usage variations ***
+
+-- Open a file using fopen() --
+resource(%d) of type (stream)
+
+-- Try to close the file pointer using closedir() --
+Warning: closedir(): %d is not a valid Directory resource in %s on line %d
+
+-- Check file pointer: --
+resource(%d) of type (stream)
+===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation7.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/dir/readdir_variation7.phpt
diff -u /dev/null php-src/ext/standard/tests/dir/readdir_variation7.phpt:1.2
--- /dev/null   Fri Mar  7 16:21:30 2008
+++ php-src/ext/standard/tests/dir/readdir_variation7.phpt  Fri Mar  7 
16:21:30 2008
@@ -0,0 +1,42 @@
+--TEST--
+Test readdir() function : usage variations - use file pointers
+--FILE--
+?php
+/* Prototype  : string readdir([resource $dir_handle])
+ * Description: Read directory entry from dir_handle 
+ * Source code: ext/standard/dir.c
+ */
+
+/*
+ * Open a file pointer using fopen and pass to readdir() to test behaviour
+ */
+
+echo *** Testing readdir() : usage variations ***\n;
+
+// get a resource variable
+var_dump($fp = fopen(__FILE__, r));
+var_dump( readdir($fp) );
+
+// get file length over 256 characters
+EOT
+123456789012345678901234567890
+123456789012345678901234567890
+123456789012345678901234567890
+123456789012345678901234567890
+123456789012345678901234567890
+EOT;
+?
+===DONE===
+--EXPECTF--
+*** Testing readdir() : usage variations ***

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/dir opendir_basic.phpt opendir_error1.phpt opendir_error2.phpt opendir_variation1.phpt opendir_variation2.phpt opendir_variation3.phpt opendir_varia

2008-03-04 Thread Josie Messa
jmessa  Tue Mar  4 10:39:31 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/dir opendir_variation7.phpt 
opendir_variation4.phpt 
opendir_variation2.phpt 
opendir_error1.phpt 
opendir_variation5.phpt 
opendir_variation6.phpt 
opendir_variation3.phpt 
opendir_basic.phpt 
opendir_error2.phpt 
opendir_variation1.phpt 
  Log:
  - new tests for opendir() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation7.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_variation7.phpt
+++ php-src/ext/standard/tests/dir/opendir_variation7.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_variation4.phpt
+++ php-src/ext/standard/tests/dir/opendir_variation4.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_variation2.phpt
+++ php-src/ext/standard/tests/dir/opendir_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_error1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_error1.phpt
+++ php-src/ext/standard/tests/dir/opendir_error1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_variation5.phpt
+++ php-src/ext/standard/tests/dir/opendir_variation5.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_variation6.phpt
+++ php-src/ext/standard/tests/dir/opendir_variation6.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_variation3.phpt
+++ php-src/ext/standard/tests/dir/opendir_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_basic.phpt
+++ php-src/ext/standard/tests/dir/opendir_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_error2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_error2.phpt
+++ php-src/ext/standard/tests/dir/opendir_error2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_variation1.phpt
+++ php-src/ext/standard/tests/dir/opendir_variation1.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/dir opendir_basic.phpt opendir_error1.phpt opendir_error2.phpt opendir_variation1.phpt opendir_variation2.phpt opendir_variation3.phpt opendir_varia

2008-03-04 Thread Josie Messa
jmessa  Tue Mar  4 10:40:36 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/dir opendir_error2.phpt 
opendir_basic.phpt 
opendir_variation4.phpt 
opendir_variation1.phpt 
opendir_variation7.phpt 
opendir_variation2.phpt 
opendir_variation3.phpt 
opendir_variation6.phpt 
opendir_error1.phpt 
opendir_variation5.phpt 
  Log:
  - new tests for opendir() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_error2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_error2.phpt
+++ php-src/ext/standard/tests/dir/opendir_error2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_basic.phpt
+++ php-src/ext/standard/tests/dir/opendir_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_variation4.phpt
+++ php-src/ext/standard/tests/dir/opendir_variation4.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_variation1.phpt
+++ php-src/ext/standard/tests/dir/opendir_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation7.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_variation7.phpt
+++ php-src/ext/standard/tests/dir/opendir_variation7.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_variation2.phpt
+++ php-src/ext/standard/tests/dir/opendir_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_variation3.phpt
+++ php-src/ext/standard/tests/dir/opendir_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_variation6.phpt
+++ php-src/ext/standard/tests/dir/opendir_variation6.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_error1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_error1.phpt
+++ php-src/ext/standard/tests/dir/opendir_error1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/opendir_variation5.phpt
+++ php-src/ext/standard/tests/dir/opendir_variation5.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/standard/tests/dir opendir_basic.phpt opendir_error1.phpt opendir_error2.phpt opendir_variation1.phpt opendir_variation2.phpt opendir_variation3.phpt opendir_variation4.php

2008-03-04 Thread Josie Messa
jmessa  Tue Mar  4 10:45:40 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/dir opendir_variation1.phpt 
opendir_error2.phpt 
opendir_variation7.phpt 
opendir_variation4.phpt 
opendir_error1.phpt 
opendir_variation6.phpt 
opendir_variation3.phpt 
opendir_variation5.phpt 
opendir_basic.phpt 
opendir_variation2.phpt 
  Log:
  - new tests for opendir() function
  http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/opendir_variation1.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/dir/opendir_variation1.phpt
diff -u /dev/null php-src/ext/standard/tests/dir/opendir_variation1.phpt:1.2
--- /dev/null   Tue Mar  4 10:45:40 2008
+++ php-src/ext/standard/tests/dir/opendir_variation1.phpt  Tue Mar  4 
10:45:40 2008
@@ -0,0 +1,328 @@
+--TEST--
+Test opendir() function : usage variations - different data types as $path arg
+--FILE--
+?php
+/* Prototype  : mixed opendir(string $path[, resource $context])
+ * Description: Open a directory and return a dir_handle 
+ * Source code: ext/standard/dir.c
+ */
+
+/*
+ * Pass different data types as $path argument to opendir() to test behaviour
+ * Where possible, an existing directory has been entered as a string value
+ */
+
+echo *** Testing opendir() : usage variations ***\n;
+
+// create directory to be passed as string value where possible
+$path = dirname(__FILE__) . /opendir_variation1;
+mkdir($path);
+
+//get an unset variable
+$unset_var = 10;
+unset ($unset_var);
+
+// get a class
+class classA {
+   
+   var $path;
+   function __construct($path) {
+   $this-path = $path;
+   }
+   public function __toString() {
+   return $this-path;
+   }
+}
+
+// heredoc string
+$heredoc = EOT
+$path
+EOT;
+
+// get a resource variable
+$fp = fopen(__FILE__, r);
+
+// unexpected values to be passed to $path argument
+$inputs = array(
+
+   // int data
+/*1*/  0,
+   1,
+   12345,
+   -2345,
+
+   // float data
+/*5*/  10.5,
+   -10.5,
+   12.3456789000e10,
+   12.3456789000E-10,
+   .5,
+
+   // null data
+/*10*/ NULL,
+   null,
+
+   // boolean data
+/*12*/ true,
+   false,
+   TRUE,
+   FALSE,
+   
+   // empty data
+/*16*/ ,
+   '',
+   array(),
+
+   // string data
+/*19*/ $path,
+   'string',
+   $heredoc,
+   
+   // object data
+/*22*/ new classA($path),
+
+   // undefined data
+/*23*/ @$undefined_var,
+
+   // unset data
+/*24*/ @$unset_var,
+
+   // resource variable
+/*25*/ $fp
+);
+
+// loop through each element of $inputs to check the behavior of opendir()
+$iterator = 1;
+foreach($inputs as $input) {
+   echo \n-- Iteration $iterator --\n;
+   var_dump( $dh = opendir($input) );
+   if ($dh) {
+   closedir($dh);
+   }
+   $iterator++;
+};
+
+fclose($fp);
+?
+===DONE===
+--CLEAN--
+?php
+$path = dirname(__FILE__) . /opendir_variation1;
+rmdir($path);
+?
+--EXPECTF--
+*** Testing opendir() : usage variations ***
+
+-- Iteration 1 --
+
+Warning: opendir(0): failed to open dir: No such file or directory in %s on 
line %d
+bool(false)
+
+-- Iteration 2 --
+
+Warning: opendir(1): failed to open dir: No such file or directory in %s on 
line %d
+bool(false)
+
+-- Iteration 3 --
+
+Warning: opendir(12345): failed to open dir: No such file or directory in %s 
on line %d
+bool(false)
+
+-- Iteration 4 --
+
+Warning: opendir(-2345): failed to open dir: No such file or directory in %s 
on line %d
+bool(false)
+
+-- Iteration 5 --
+
+Warning: opendir(10.5): failed to open dir: No such file or directory in %s on 
line %d
+bool(false)
+
+-- Iteration 6 --
+
+Warning: opendir(-10.5): failed to open dir: No such file or directory in %s 
on line %d
+bool(false)
+
+-- Iteration 7 --
+
+Warning: opendir(123456789000): failed to open dir: No such file or directory 
in %s on line %d
+bool(false)
+
+-- Iteration 8 --
+
+Warning: opendir(1.23456789E-9): failed to open dir: No such file or directory 
in %s on line %d
+bool(false)
+
+-- Iteration 9 --
+
+Warning: opendir(0.5): failed to open dir: No such file or directory in %s on 
line %d
+bool(false)
+
+-- Iteration 10 --
+bool(false)
+
+-- Iteration 11 --
+bool(false)
+
+-- Iteration 12 --
+
+Warning: opendir(1): failed to open dir: No such file or directory in %s on 
line %d
+bool(false)
+
+-- Iteration 13 --
+bool(false)
+
+-- Iteration 14 --
+
+Warning: opendir(1): failed to open dir: No such file or directory in %s on 
line %d
+bool(false)
+
+-- Iteration 15 --
+bool(false)
+
+-- Iteration 16 --
+bool(false)
+
+-- Iteration 17 --

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/dir readdir_basic.phpt readdir_error.phpt readdir_variation1.phpt readdir_variation2.phpt readdir_variation3.phpt readdir_variation4.phpt readdir_va

2008-03-04 Thread Josie Messa
jmessa  Tue Mar  4 17:06:46 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/dir readdir_error.phpt 
readdir_variation4.phpt 
readdir_variation6.phpt 
readdir_variation3.phpt 
readdir_variation1.phpt 
readdir_variation2.phpt 
readdir_variation5.phpt 
readdir_basic.phpt 
  Log:
  - new tests for readdir() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_error.phpt
+++ php-src/ext/standard/tests/dir/readdir_error.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_variation4.phpt
+++ php-src/ext/standard/tests/dir/readdir_variation4.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_variation6.phpt
+++ php-src/ext/standard/tests/dir/readdir_variation6.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_variation3.phpt
+++ php-src/ext/standard/tests/dir/readdir_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_variation1.phpt
+++ php-src/ext/standard/tests/dir/readdir_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_variation2.phpt
+++ php-src/ext/standard/tests/dir/readdir_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_variation5.phpt
+++ php-src/ext/standard/tests/dir/readdir_variation5.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_basic.phpt
+++ php-src/ext/standard/tests/dir/readdir_basic.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/dir readdir_basic.phpt readdir_error.phpt readdir_variation1.phpt readdir_variation2.phpt readdir_variation3.phpt readdir_variation4.phpt readdir_va

2008-03-04 Thread Josie Messa
jmessa  Tue Mar  4 17:09:25 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/dir readdir_variation3.phpt 
readdir_variation1.phpt 
readdir_basic.phpt 
readdir_error.phpt 
readdir_variation6.phpt 
readdir_variation2.phpt 
readdir_variation5.phpt 
readdir_variation4.phpt 
  Log:
  - new tests for readdir() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_variation3.phpt
+++ php-src/ext/standard/tests/dir/readdir_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_variation1.phpt
+++ php-src/ext/standard/tests/dir/readdir_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_basic.phpt
+++ php-src/ext/standard/tests/dir/readdir_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_error.phpt
+++ php-src/ext/standard/tests/dir/readdir_error.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_variation6.phpt
+++ php-src/ext/standard/tests/dir/readdir_variation6.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_variation2.phpt
+++ php-src/ext/standard/tests/dir/readdir_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_variation5.phpt
+++ php-src/ext/standard/tests/dir/readdir_variation5.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/readdir_variation4.phpt
+++ php-src/ext/standard/tests/dir/readdir_variation4.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/standard/tests/dir readdir_basic.phpt readdir_error.phpt readdir_variation1.phpt readdir_variation2.phpt readdir_variation3.phpt readdir_variation4.phpt readdir_variation5.

2008-03-04 Thread Josie Messa
jmessa  Tue Mar  4 17:11:10 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/dir readdir_variation1.phpt 
readdir_variation2.phpt 
readdir_error.phpt 
readdir_variation6.phpt 
readdir_variation5.phpt 
readdir_basic.phpt 
readdir_variation4.phpt 
readdir_variation3.phpt 
  Log:
  - new tests for readdir() function
  http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/readdir_variation1.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/dir/readdir_variation1.phpt
diff -u /dev/null php-src/ext/standard/tests/dir/readdir_variation1.phpt:1.2
--- /dev/null   Tue Mar  4 17:11:10 2008
+++ php-src/ext/standard/tests/dir/readdir_variation1.phpt  Tue Mar  4 
17:11:10 2008
@@ -0,0 +1,333 @@
+--TEST--
+Test readdir() function : usage variations - different data types as 
$dir_handle arg
+--FILE--
+?php
+/* Prototype  : string readdir([resource $dir_handle])
+ * Description: Read directory entry from dir_handle 
+ * Source code: ext/standard/dir.c
+ */
+
+/*
+ * Pass different data types as $dir_handle argument to readdir() to test 
behaviour
+ */
+
+echo *** Testing readdir() : usage variations ***\n;
+
+//get an unset variable
+$unset_var = 10;
+unset ($unset_var);
+
+// get a class
+class classA
+{
+   public function __toString() {
+   return Class A object;
+   }
+}
+
+// heredoc string
+$heredoc = EOT
+hello world
+EOT;
+
+// unexpected values to be passed to $dir_handle argument
+$inputs = array(
+
+   // int data
+/*1*/  0,
+   1,
+   12345,
+   -2345,
+
+   // float data
+/*5*/  10.5,
+   -10.5,
+   12.3456789000e10,
+   12.3456789000E-10,
+   .5,
+
+   // null data
+/*10*/ NULL,
+   null,
+
+   // boolean data
+/*12*/ true,
+   false,
+   TRUE,
+   FALSE,
+   
+   // empty data
+/*16*/ ,
+   '',
+   array(),
+
+   // string data
+/*19*/ string,
+   'string',
+   $heredoc,
+   
+   // object data
+/*22*/ new classA(),
+
+   // undefined data
+/*23*/ @$undefined_var,
+
+   // unset data
+/*24*/ @$unset_var,
+);
+
+// loop through each element of $inputs to check the behavior of readdir()
+$iterator = 1;
+foreach($inputs as $input) {
+   echo \n-- Iteration $iterator --\n;
+   var_dump( readdir($input) );
+   $iterator++;
+};
+?
+===DONE===
+--EXPECTF--
+*** Testing readdir() : usage variations ***
+
+-- Iteration 1 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 2 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 3 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 4 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 5 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 6 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 7 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 8 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 9 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 10 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 11 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 12 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 13 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 14 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 15 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 16 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 17 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d
+bool(false)
+
+-- Iteration 18 --
+
+Warning: readdir(): supplied argument is not a valid Directory resource in %s 
on line %d

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/dir chdir_basic.phpt chdir_error1.phpt chdir_error2.phpt chdir_variation1.phpt chdir_variation2.phpt

2008-02-26 Thread Josie Messa
jmessa  Tue Feb 26 09:31:15 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/dir chdir_error1.phpt chdir_basic.phpt 
chdir_variation2.phpt 
chdir_error2.phpt 
chdir_variation1.phpt 
  Log:
  - New tests for chdir() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/chdir_error1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/chdir_error1.phpt
+++ php-src/ext/standard/tests/dir/chdir_error1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/chdir_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/chdir_basic.phpt
+++ php-src/ext/standard/tests/dir/chdir_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/chdir_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/chdir_variation2.phpt
+++ php-src/ext/standard/tests/dir/chdir_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/chdir_error2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/chdir_error2.phpt
+++ php-src/ext/standard/tests/dir/chdir_error2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/chdir_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/chdir_variation1.phpt
+++ php-src/ext/standard/tests/dir/chdir_variation1.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array chdir_basic.phpt chdir_error1.phpt chdir_error2.phpt chdir_variation1.phpt chdir_variation2.phpt

2008-02-26 Thread Josie Messa
jmessa  Tue Feb 26 09:32:39 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   chdir_variation2.phpt 
chdir_basic.phpt 
chdir_error1.phpt 
chdir_variation1.phpt 
chdir_error2.phpt 
  Log:
  - New tests for chdir() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/chdir_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/chdir_variation2.phpt
+++ php-src/ext/standard/tests/array/chdir_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/chdir_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/chdir_basic.phpt
+++ php-src/ext/standard/tests/array/chdir_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/chdir_error1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/chdir_error1.phpt
+++ php-src/ext/standard/tests/array/chdir_error1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/chdir_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/chdir_variation1.phpt
+++ php-src/ext/standard/tests/array/chdir_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/chdir_error2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/chdir_error2.phpt
+++ php-src/ext/standard/tests/array/chdir_error2.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array chdir_basic.phpt chdir_error1.phpt chdir_error2.phpt chdir_variation1.phpt chdir_variation2.phpt

2008-02-26 Thread Josie Messa
jmessa  Tue Feb 26 09:33:46 2008 UTC

  Removed files:   (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   chdir_variation2.phpt 
chdir_basic.phpt 
chdir_error1.phpt 
chdir_variation1.phpt 
chdir_error2.phpt 
  Log:
  - committed chdir() tests in wrong directory
  

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/dir chdir_basic.phpt chdir_error1.phpt chdir_error2.phpt chdir_variation1.phpt chdir_variation2.phpt

2008-02-26 Thread Josie Messa
jmessa  Tue Feb 26 09:34:28 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/dir chdir_variation1.phpt 
chdir_variation2.phpt 
chdir_basic.phpt chdir_error1.phpt 
chdir_error2.phpt 
  Log:
  - New tests for chdir() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/chdir_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/chdir_variation1.phpt
+++ php-src/ext/standard/tests/dir/chdir_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/chdir_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/chdir_variation2.phpt
+++ php-src/ext/standard/tests/dir/chdir_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/chdir_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/chdir_basic.phpt
+++ php-src/ext/standard/tests/dir/chdir_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/chdir_error1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/chdir_error1.phpt
+++ php-src/ext/standard/tests/dir/chdir_error1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/chdir_error2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/dir/chdir_error2.phpt
+++ php-src/ext/standard/tests/dir/chdir_error2.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/standard/tests/dir chdir_basic.phpt chdir_error1.phpt chdir_error2.phpt chdir_variation1.phpt chdir_variation2.phpt

2008-02-26 Thread Josie Messa
jmessa  Tue Feb 26 09:40:50 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/dir chdir_variation2.phpt 
chdir_error1.phpt chdir_error2.phpt 
chdir_variation1.phpt 
chdir_basic.phpt 
  Log:
  - New tests for chdir() function
  http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/chdir_variation2.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/dir/chdir_variation2.phpt
diff -u /dev/null php-src/ext/standard/tests/dir/chdir_variation2.phpt:1.2
--- /dev/null   Tue Feb 26 09:40:50 2008
+++ php-src/ext/standard/tests/dir/chdir_variation2.phptTue Feb 26 
09:40:49 2008
@@ -0,0 +1,140 @@
+--TEST--
+Test chdir() function : usage variations - relative paths
+--FILE--
+?php
+/* Prototype  : bool chdir(string $directory)
+ * Description: Change the current directory 
+ * Source code: ext/standard/dir.c
+ */
+
+/*
+ * Test chdir() with variations of relative paths
+ */
+
+echo *** Testing chdir() : usage variations ***\n;
+
+$base_dir_path = dirname(__FILE__);
+
+$level_one_dir_name = level_one;
+$level_one_dir_path = $base_dir_path/$level_one_dir_name;
+
+$level_two_dir_name = level_two;
+$level_two_dir_path = $base_dir_path/$level_one_dir_name/$level_two_dir_name;
+
+// create directories
+mkdir($level_one_dir_path);
+mkdir($level_two_dir_path);
+
+echo \n-- \$directory = './level_one': --\n;
+var_dump(chdir($base_dir_path));
+var_dump(chdir(./$level_one_dir_name));
+var_dump(getcwd());
+
+echo \n-- \$directory = 'level_one/level_two': --\n;
+var_dump(chdir($base_dir_path));
+var_dump(chdir($level_one_dir_name/$level_two_dir_name));
+var_dump(getcwd());
+
+echo \n-- \$directory = '..': --\n;
+var_dump(chdir('..'));
+var_dump(getcwd());
+
+echo \n-- \$directory = 'level_two', '.': --\n;
+var_dump(chdir($level_two_dir_path));
+var_dump(chdir('.'));
+var_dump(getcwd());
+
+echo \n-- \$directory = '../': --\n;
+var_dump(chdir('../'));
+var_dump(getcwd());
+
+echo \n-- \$directory = './': --\n;
+var_dump(chdir($level_two_dir_path));
+var_dump(chdir('./'));
+var_dump(getcwd());
+
+echo \n-- \$directory = '../../'level_one': --\n;
+var_dump(chdir($level_two_dir_path));
+var_dump(chdir(../../$level_one_dir_name));
+var_dump(getcwd());
+
+?
+===DONE===
+--CLEAN--
+?php
+$file_path = dirname(__FILE__);
+rmdir($file_path/level_one/level_two);
+rmdir($file_path/level_one);
+?
+--EXPECTF--
+*** Testing chdir() : usage variations ***
+
+-- $directory = './level_one': --
+bool(true)
+bool(true)
+string(%d) %slevel_one
+
+-- $directory = 'level_one/level_two': --
+bool(true)
+bool(true)
+string(%d) %slevel_one%elevel_two
+
+-- $directory = '..': --
+bool(true)
+string(%d) %slevel_one
+
+-- $directory = 'level_two', '.': --
+bool(true)
+bool(true)
+string(%d) %slevel_one%elevel_two
+
+-- $directory = '../': --
+bool(true)
+string(%d) %slevel_one
+
+-- $directory = './': --
+bool(true)
+bool(true)
+string(%d) %slevel_one%elevel_two
+
+-- $directory = '../../'level_one': --
+bool(true)
+bool(true)
+string(%d) %slevel_one
+===DONE===
+--UEXPECTF--
+*** Testing chdir() : usage variations ***
+
+-- $directory = './level_one': --
+bool(true)
+bool(true)
+unicode(%d) %slevel_one
+
+-- $directory = 'level_one/level_two': --
+bool(true)
+bool(true)
+unicode(%d) %slevel_one%elevel_two
+
+-- $directory = '..': --
+bool(true)
+unicode(%d) %slevel_one
+
+-- $directory = 'level_two', '.': --
+bool(true)
+bool(true)
+unicode(%d) %slevel_one%elevel_two
+
+-- $directory = '../': --
+bool(true)
+unicode(%d) %slevel_one
+
+-- $directory = './': --
+bool(true)
+bool(true)
+unicode(%d) %slevel_one%elevel_two
+
+-- $directory = '../../'level_one': --
+bool(true)
+bool(true)
+unicode(%d) %slevel_one
+===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/dir/chdir_error1.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/dir/chdir_error1.phpt
diff -u /dev/null php-src/ext/standard/tests/dir/chdir_error1.phpt:1.2
--- /dev/null   Tue Feb 26 09:40:50 2008
+++ php-src/ext/standard/tests/dir/chdir_error1.phptTue Feb 26 09:40:49 2008
@@ -0,0 +1,52 @@
+--TEST--
+Test chdir() function : error conditions - Incorrect number of arguments
+--FILE--
+?php
+/* Prototype  : bool chdir(string $directory)
+ * Description: Change the current directory 
+ * Source code: ext/standard/dir.c
+ */
+
+/*
+ * Pass incorrect number of arguments to chdir() to test behaviour
+ */
+
+echo *** Testing chdir() : error conditions ***\n;
+
+// Zero arguments
+echo \n-- Testing chdir() function with Zero arguments --\n;
+var_dump( chdir() );
+
+//Test chdir with one more than the expected number of arguments
+echo \n-- Testing chdir() function with more than expected no. of arguments 
--\n;
+$directory = __FILE__;
+$extra_arg = 10;
+var_dump( chdir($directory, $extra_arg) );
+?
+===DONE===
+--EXPECTF--
+*** Testing chdir() : error conditions ***
+
+-- Testing chdir() 

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array reset_basic.phpt reset_error.phpt reset_variation1.phpt reset_variation2.phpt reset_variation3.phpt

2008-02-22 Thread Josie Messa
jmessa  Fri Feb 22 09:18:25 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   reset_variation1.phpt 
reset_variation3.phpt 
reset_variation2.phpt 
reset_error.phpt reset_basic.phpt 
  Log:
  - New tests for reset() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/reset_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/reset_variation1.phpt
+++ php-src/ext/standard/tests/array/reset_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/reset_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/reset_variation3.phpt
+++ php-src/ext/standard/tests/array/reset_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/reset_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/reset_variation2.phpt
+++ php-src/ext/standard/tests/array/reset_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/reset_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/reset_error.phpt
+++ php-src/ext/standard/tests/array/reset_error.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/reset_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/reset_basic.phpt
+++ php-src/ext/standard/tests/array/reset_basic.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array reset_basic.phpt reset_error.phpt reset_variation1.phpt reset_variation2.phpt reset_variation3.phpt

2008-02-22 Thread Josie Messa
jmessa  Fri Feb 22 09:19:56 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   reset_error.phpt 
reset_variation3.phpt 
reset_basic.phpt 
reset_variation2.phpt 
reset_variation1.phpt 
  Log:
  - New tests for reset() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/reset_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/reset_error.phpt
+++ php-src/ext/standard/tests/array/reset_error.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/reset_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/reset_variation3.phpt
+++ php-src/ext/standard/tests/array/reset_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/reset_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/reset_basic.phpt
+++ php-src/ext/standard/tests/array/reset_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/reset_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/reset_variation2.phpt
+++ php-src/ext/standard/tests/array/reset_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/reset_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/reset_variation1.phpt
+++ php-src/ext/standard/tests/array/reset_variation1.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/standard/tests/array reset_basic.phpt reset_error.phpt reset_variation1.phpt reset_variation2.phpt reset_variation3.phpt

2008-02-22 Thread Josie Messa
jmessa  Fri Feb 22 09:22:27 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/array   reset_basic.phpt 
reset_variation3.phpt 
reset_variation2.phpt 
reset_variation1.phpt 
reset_error.phpt 
  Log:
  - New tests for reset() function
  http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/reset_basic.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/array/reset_basic.phpt
diff -u /dev/null php-src/ext/standard/tests/array/reset_basic.phpt:1.2
--- /dev/null   Fri Feb 22 09:22:27 2008
+++ php-src/ext/standard/tests/array/reset_basic.phpt   Fri Feb 22 09:22:27 2008
@@ -0,0 +1,60 @@
+--TEST--
+Test reset() function : basic functionality
+--FILE--
+?php
+/* Prototype  : mixed reset(array $array_arg)
+ * Description: Set array argument's internal pointer to the first element and 
return it 
+ * Source code: ext/standard/array.c
+ */
+
+/*
+ * Test basic functionality of reset()
+ */
+
+echo *** Testing reset() : basic functionality ***\n;
+
+$array = array('zero', 'one', 200 = 'two');
+
+echo \n-- Initial Position: --\n;
+echo key($array) .  =  . current($array) . \n;
+
+echo \n-- Call to next() --\n;
+var_dump(next($array));
+
+echo \n-- Current Position: --\n;
+echo key($array) .  =  . current($array) . \n;
+
+echo \n-- Call to reset() --\n;
+var_dump(reset($array));
+?
+===DONE===
+--EXPECTF--
+*** Testing reset() : basic functionality ***
+
+-- Initial Position: --
+0 = zero
+
+-- Call to next() --
+string(3) one
+
+-- Current Position: --
+1 = one
+
+-- Call to reset() --
+string(4) zero
+===DONE===
+--UEXPECTF--
+*** Testing reset() : basic functionality ***
+
+-- Initial Position: --
+0 = zero
+
+-- Call to next() --
+unicode(3) one
+
+-- Current Position: --
+1 = one
+
+-- Call to reset() --
+unicode(4) zero
+===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/reset_variation3.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/array/reset_variation3.phpt
diff -u /dev/null php-src/ext/standard/tests/array/reset_variation3.phpt:1.2
--- /dev/null   Fri Feb 22 09:22:27 2008
+++ php-src/ext/standard/tests/array/reset_variation3.phpt  Fri Feb 22 
09:22:27 2008
@@ -0,0 +1,71 @@
+--TEST--
+Test reset() function : usage variations - Referenced variables
+--FILE--
+?php
+/* Prototype  : mixed reset(array $array_arg)
+ * Description: Set array argument's internal pointer to the first element and 
return it 
+ * Source code: ext/standard/array.c
+ */
+
+/*
+ * Reference two arrays to each other then call reset() to test position of 
+ * internal pointer in both arrays
+ */
+
+echo *** Testing reset() : usage variations ***\n;
+
+$array1 = array ('zero', 'one', 'two');
+
+echo \n-- Initial position of internal pointer --\n;
+var_dump(current($array1));
+
+// Test that when two variables are referenced to one another
+// the internal pointer is the same for both
+$array2 = $array1;
+
+next($array1);
+
+echo \n-- Position after calling next() --\n;
+echo \$array1: ;
+var_dump(current($array1));
+echo \$array2: ;
+var_dump(current($array2));
+
+echo \n-- Position after calling reset() --\n;
+var_dump(reset($array1));
+echo \$array1: ;
+var_dump(current($array1));
+echo \$array2: ;
+var_dump(current($array2));
+?
+===DONE===
+--EXPECTF--
+*** Testing reset() : usage variations ***
+
+-- Initial position of internal pointer --
+string(4) zero
+
+-- Position after calling next() --
+$array1: string(3) one
+$array2: string(3) one
+
+-- Position after calling reset() --
+string(4) zero
+$array1: string(4) zero
+$array2: string(4) zero
+===DONE===
+--UEXPECTF--
+*** Testing reset() : usage variations ***
+
+-- Initial position of internal pointer --
+unicode(4) zero
+
+-- Position after calling next() --
+$array1: unicode(3) one
+$array2: unicode(3) one
+
+-- Position after calling reset() --
+unicode(4) zero
+$array1: unicode(4) zero
+$array2: unicode(4) zero
+===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/reset_variation2.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/array/reset_variation2.phpt
diff -u /dev/null php-src/ext/standard/tests/array/reset_variation2.phpt:1.2
--- /dev/null   Fri Feb 22 09:22:27 2008
+++ php-src/ext/standard/tests/array/reset_variation2.phpt  Fri Feb 22 
09:22:27 2008
@@ -0,0 +1,43 @@
+--TEST--
+Test reset() function : usage variations - unset first element
+--FILE--
+?php
+/* Prototype  : mixed reset(array $array_arg)
+ * Description: Set array argument's internal pointer to the first element and 
return it 
+ * Source code: ext/standard/array.c
+ */
+
+/*
+ * Unset first element of an array and test behaviour of reset()
+ */
+
+echo *** Testing reset() : usage variations ***\n;
+
+$array = array('a', 'b', 'c');
+
+echo \n-- Initial Position: --\n;
+echo current($array) .  =  . key($array) . \n;

[PHP-CVS] cvs: php-src(PHP_5_3) /ext/mbstring/tests mb_ereg1.phpt mb_strrpos_variation3.phpt mb_strtolower_error2.phpt mb_strtolower_variation2.phpt mb_strtoupper_error2.phpt mb_strtoupper_variation2.

2008-02-21 Thread Josie Messa
jmessa  Thu Feb 21 14:07:13 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/ext/mbstring/tests mb_strtoupper_error2.phpt 
mb_strtoupper_variation2.phpt 
mb_strtolower_variation2.phpt 
mb_strrpos_variation3.phpt 
mb_ereg1.phpt mb_strtolower_error2.phpt 
  Log:
  - Fixed failing mbstring tests after bug fixes
  http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/tests/mb_strtoupper_error2.phpt?r1=1.1.4.2r2=1.1.4.3diff_format=u
Index: php-src/ext/mbstring/tests/mb_strtoupper_error2.phpt
diff -u php-src/ext/mbstring/tests/mb_strtoupper_error2.phpt:1.1.4.2 
php-src/ext/mbstring/tests/mb_strtoupper_error2.phpt:1.1.4.3
--- php-src/ext/mbstring/tests/mb_strtoupper_error2.phpt:1.1.4.2Fri Feb 
 1 15:29:59 2008
+++ php-src/ext/mbstring/tests/mb_strtoupper_error2.phptThu Feb 21 
14:07:13 2008
@@ -29,8 +29,6 @@
 --EXPECTF--
 *** Testing mb_strtoupper() : error conditions ***
 
-Warning: mb_strtoupper(): Illegal character encoding specified in %s on line %d
-
 Warning: mb_strtoupper(): Unknown encoding unknown-encoding in %s on line %d
 bool(false)
 Done
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/tests/mb_strtoupper_variation2.phpt?r1=1.1.4.2r2=1.1.4.3diff_format=u
Index: php-src/ext/mbstring/tests/mb_strtoupper_variation2.phpt
diff -u php-src/ext/mbstring/tests/mb_strtoupper_variation2.phpt:1.1.4.2 
php-src/ext/mbstring/tests/mb_strtoupper_variation2.phpt:1.1.4.3
--- php-src/ext/mbstring/tests/mb_strtoupper_variation2.phpt:1.1.4.2Fri Feb 
 1 15:29:59 2008
+++ php-src/ext/mbstring/tests/mb_strtoupper_variation2.phptThu Feb 21 
14:07:13 2008
@@ -99,115 +99,95 @@
 };
 
 fclose($fp);
-
-echo Done;
 ?
-
+===DONE===
 --EXPECTF--
 *** Testing mb_strtoupper() : usage variations ***
 
 -- Iteration 1 --
 
-Warning: mb_strtoupper(): Illegal character encoding specified in %s on line %d
-
 Warning: mb_strtoupper(): Unknown encoding 0 in %s on line %d
 bool(false)
 
 -- Iteration 2 --
 
-Warning: mb_strtoupper(): Illegal character encoding specified in %s on line %d
-
 Warning: mb_strtoupper(): Unknown encoding 1 in %s on line %d
 bool(false)
 
 -- Iteration 3 --
 
-Warning: mb_strtoupper(): Illegal character encoding specified in %s on line %d
-
 Warning: mb_strtoupper(): Unknown encoding 12345 in %s on line %d
 bool(false)
 
 -- Iteration 4 --
 
-Warning: mb_strtoupper(): Illegal character encoding specified in %s on line %d
-
 Warning: mb_strtoupper(): Unknown encoding -2345 in %s on line %d
 bool(false)
 
 -- Iteration 5 --
 
-Warning: mb_strtoupper(): Illegal character encoding specified in %s on line %d
-
 Warning: mb_strtoupper(): Unknown encoding 10.5 in %s on line %d
 bool(false)
 
 -- Iteration 6 --
 
-Warning: mb_strtoupper(): Illegal character encoding specified in %s on line %d
-
 Warning: mb_strtoupper(): Unknown encoding -10.5 in %s on line %d
 bool(false)
 
 -- Iteration 7 --
 
-Warning: mb_strtoupper(): Illegal character encoding specified in %s on line %d
-
 Warning: mb_strtoupper(): Unknown encoding 123456789000 in %s on line %d
 bool(false)
 
 -- Iteration 8 --
 
-Warning: mb_strtoupper(): Illegal character encoding specified in %s on line %d
-
 Warning: mb_strtoupper(): Unknown encoding 1.23456789E-9 in %s on line %d
 bool(false)
 
 -- Iteration 9 --
 
-Warning: mb_strtoupper(): Illegal character encoding specified in %s on line %d
-
 Warning: mb_strtoupper(): Unknown encoding 0.5 in %s on line %d
 bool(false)
 
 -- Iteration 10 --
-string(12) HELLO, WORLD
+
+Warning: mb_strtoupper(): Unknown encoding (null) in %s on line %d
+bool(false)
 
 -- Iteration 11 --
-string(12) HELLO, WORLD
 
--- Iteration 12 --
+Warning: mb_strtoupper(): Unknown encoding (null) in %s on line %d
+bool(false)
 
-Warning: mb_strtoupper(): Illegal character encoding specified in %s on line %d
+-- Iteration 12 --
 
 Warning: mb_strtoupper(): Unknown encoding 1 in %s on line %d
 bool(false)
 
 -- Iteration 13 --
 
-Warning: mb_strtoupper(): Illegal character encoding specified in %s on line %d
-string(12) HELLO, WORLD
+Warning: mb_strtoupper(): Unknown encoding  in %s on line %d
+bool(false)
 
 -- Iteration 14 --
 
-Warning: mb_strtoupper(): Illegal character encoding specified in %s on line %d
-
 Warning: mb_strtoupper(): Unknown encoding 1 in %s on line %d
 bool(false)
 
 -- Iteration 15 --
 
-Warning: mb_strtoupper(): Illegal character encoding specified in %s on line %d
-string(12) HELLO, WORLD
+Warning: mb_strtoupper(): Unknown encoding  in %s on line %d
+bool(false)
 
 -- Iteration 16 --
 
-Warning: mb_strtoupper(): Illegal character encoding specified in %s on line %d
-string(12) HELLO, WORLD
+Warning: mb_strtoupper(): Unknown encoding  in %s on line %d
+bool(false)
 
 -- Iteration 17 --
 
-Warning: mb_strtoupper(): Illegal character encoding specified in %s on line %d
-string(12) HELLO, WORLD
+Warning: 

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array key_basic.phpt key_error.phpt key_variation1.phpt key_variation2.phpt key_variation3.phpt key_variation4.phpt

2008-02-21 Thread Josie Messa
jmessa  Thu Feb 21 14:33:57 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   key_variation2.phpt 
key_variation3.phpt 
key_variation1.phpt 
key_basic.phpt 
key_variation4.phpt 
key_error.phpt 
  Log:
  - New tests for key() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/key_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/key_variation2.phpt
+++ php-src/ext/standard/tests/array/key_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/key_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/key_variation3.phpt
+++ php-src/ext/standard/tests/array/key_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/key_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/key_variation1.phpt
+++ php-src/ext/standard/tests/array/key_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/key_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/key_basic.phpt
+++ php-src/ext/standard/tests/array/key_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/key_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/key_variation4.phpt
+++ php-src/ext/standard/tests/array/key_variation4.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/key_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/key_error.phpt
+++ php-src/ext/standard/tests/array/key_error.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array current_basic.phpt current_error.phpt current_variation1.phpt current_variation2.phpt current_variation3.phpt current_variation4.phpt

2008-02-20 Thread Josie Messa
jmessa  Wed Feb 20 14:19:43 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   current_variation3.phpt 
current_variation4.phpt 
current_basic.phpt 
current_error.phpt 
current_variation1.phpt 
current_variation2.phpt 
  Log:
  - New tests for current() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/current_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/current_variation3.phpt
+++ php-src/ext/standard/tests/array/current_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/current_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/current_variation4.phpt
+++ php-src/ext/standard/tests/array/current_variation4.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/current_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/current_basic.phpt
+++ php-src/ext/standard/tests/array/current_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/current_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/current_error.phpt
+++ php-src/ext/standard/tests/array/current_error.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/current_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/current_variation1.phpt
+++ php-src/ext/standard/tests/array/current_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/current_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/current_variation2.phpt
+++ php-src/ext/standard/tests/array/current_variation2.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array current_basic.phpt current_error.phpt current_variation1.phpt current_variation2.phpt current_variation3.phpt current_variation4.phpt

2008-02-20 Thread Josie Messa
jmessa  Wed Feb 20 14:20:31 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   current_variation3.phpt 
current_basic.phpt 
current_variation2.phpt 
current_error.phpt 
current_variation1.phpt 
current_variation4.phpt 
  Log:
  - New tests for current() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/current_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/current_variation3.phpt
+++ php-src/ext/standard/tests/array/current_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/current_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/current_basic.phpt
+++ php-src/ext/standard/tests/array/current_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/current_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/current_variation2.phpt
+++ php-src/ext/standard/tests/array/current_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/current_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/current_error.phpt
+++ php-src/ext/standard/tests/array/current_error.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/current_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/current_variation1.phpt
+++ php-src/ext/standard/tests/array/current_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/current_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/current_variation4.phpt
+++ php-src/ext/standard/tests/array/current_variation4.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/standard/tests/array current_basic.phpt current_error.phpt current_variation1.phpt current_variation2.phpt current_variation3.phpt current_variation4.phpt

2008-02-20 Thread Josie Messa
jmessa  Wed Feb 20 14:21:36 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/array   current_error.phpt 
current_variation1.phpt 
current_variation4.phpt 
current_variation2.phpt 
current_basic.phpt 
current_variation3.phpt 
  Log:
  - New tests for current() function
  http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/current_error.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/array/current_error.phpt
diff -u /dev/null php-src/ext/standard/tests/array/current_error.phpt:1.2
--- /dev/null   Wed Feb 20 14:21:36 2008
+++ php-src/ext/standard/tests/array/current_error.phpt Wed Feb 20 14:21:36 2008
@@ -0,0 +1,53 @@
+--TEST--
+Test current() function : error conditions - Pass incorrect number of args
+--FILE--
+?php
+/* Prototype  : mixed current(array $array_arg)
+ * Description: Return the element currently pointed to by the internal array 
pointer
+ * Source code: ext/standard/array.c
+ * Alias to functions: pos
+ */
+
+/*
+ * Pass incorrect number of arguments to current() to test behaviour
+ */
+
+echo *** Testing current() : error conditions ***\n;
+
+// Zero arguments
+echo \n-- Testing current() function with Zero arguments --\n;
+var_dump( current() );
+
+//Test current with one more than the expected number of arguments
+echo \n-- Testing current() function with more than expected no. of arguments 
--\n;
+$array_arg = array(1, 2);
+$extra_arg = 10;
+var_dump( current($array_arg, $extra_arg) );
+?
+===DONE===
+--EXPECTF--
+*** Testing current() : error conditions ***
+
+-- Testing current() function with Zero arguments --
+
+Warning: current() expects exactly 1 parameter, 0 given in %s on line %d
+NULL
+
+-- Testing current() function with more than expected no. of arguments --
+
+Warning: current() expects exactly 1 parameter, 2 given in %s on line %d
+NULL
+===DONE===
+--UEXPECTF--
+*** Testing current() : error conditions ***
+
+-- Testing current() function with Zero arguments --
+
+Warning: current() expects exactly 1 parameter, 0 given in %s on line %d
+NULL
+
+-- Testing current() function with more than expected no. of arguments --
+
+Warning: current() expects exactly 1 parameter, 2 given in %s on line %d
+NULL
+===DONE===
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/current_variation1.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/array/current_variation1.phpt
diff -u /dev/null php-src/ext/standard/tests/array/current_variation1.phpt:1.2
--- /dev/null   Wed Feb 20 14:21:36 2008
+++ php-src/ext/standard/tests/array/current_variation1.phptWed Feb 20 
14:21:36 2008
@@ -0,0 +1,342 @@
+--TEST--
+Test current() function : usage variations - Pass different data types as 
$array_arg arg
+--FILE--
+?php
+/* Prototype  : mixed current(array $array_arg)
+ * Description: Return the element currently pointed to by the internal array 
pointer
+ * Source code: ext/standard/array.c
+ * Alias to functions: pos
+ */
+
+/*
+ * Pass different data types as $array_arg argument to current() to test 
behaviour
+ */
+
+echo *** Testing current() : usage variations ***\n;
+
+//get an unset variable
+$unset_var = 10;
+unset ($unset_var);
+
+// get a class
+class classA
+{
+   var $var1;
+  public function __toString() {
+return Class A object;
+  }
+}
+
+// heredoc string
+$heredoc = EOT
+hello world
+EOT;
+
+// get a resource variable
+$fp = fopen(__FILE__, r);
+
+// unexpected values to be passed to $array_arg argument
+$inputs = array(
+
+   // int data
+/*1*/  0,
+   1,
+   12345,
+   -2345,
+
+   // float data
+/*5*/  10.5,
+   -10.5,
+   12.3456789000e10,
+   12.3456789000E-10,
+   .5,
+
+   // null data
+/*10*/ NULL,
+   null,
+
+   // boolean data
+/*12*/ true,
+   false,
+   TRUE,
+   FALSE,
+   
+   // empty data
+/*16*/ ,
+   '',
+
+   // string data
+/*18*/ string,
+   'string',
+   $heredoc,
+   
+   // object data
+/*21*/ new classA(),
+
+   // undefined data
+/*22*/ @$undefined_var,
+
+   // unset data
+/*23*/ @$unset_var,
+
+   // resource variable
+/*24*/ $fp
+);
+
+// loop through each element of $inputs to check the behavior of current()
+$iterator = 1;
+foreach($inputs as $input) {
+  echo \n-- Iteration $iterator --\n;
+  var_dump( current($input) );
+  $iterator++;
+};
+
+fclose($fp);
+?
+===DONE===
+--EXPECTF--
+*** Testing current() : usage variations ***
+
+-- Iteration 1 --
+
+Warning: current() expects parameter 1 to be array, integer given in %s on 
line %d
+NULL
+
+-- Iteration 2 --
+
+Warning: current() expects parameter 1 to be array, integer given in %s on 
line %d
+NULL
+
+-- Iteration 3 --
+
+Warning: current() expects parameter 1 to be array, integer given in %s on 
line %d

[PHP-CVS] cvs: php-src /ext/standard/tests/array natcasesort_basic.phpt natcasesort_error.phpt natcasesort_object1.phpt natcasesort_object2.phpt natcasesort_variation1.phpt natcasesort_variation10.php

2008-02-19 Thread Josie Messa
jmessa  Tue Feb 19 10:54:02 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/array   natcasesort_error.phpt 
natcasesort_variation5.phpt 
natcasesort_object1.phpt 
natcasesort_variation1.phpt 
natcasesort_variation11.phpt 
natcasesort_variation9.phpt 
natcasesort_object2.phpt 
natcasesort_variation10.phpt 
natcasesort_variation7.phpt 
natcasesort_variation6.phpt 
natcasesort_variation8.phpt 
natcasesort_basic.phpt 
natcasesort_variation3.phpt 
natcasesort_variation2.phpt 
natcasesort_variation4.phpt 
  Log:
  - New tests for natcasesort() function
  http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_error.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/array/natcasesort_error.phpt
diff -u /dev/null php-src/ext/standard/tests/array/natcasesort_error.phpt:1.2
--- /dev/null   Tue Feb 19 10:54:02 2008
+++ php-src/ext/standard/tests/array/natcasesort_error.phpt Tue Feb 19 
10:54:02 2008
@@ -0,0 +1,53 @@
+--TEST--
+Test natcasesort() function : error conditions - Pass incorrect number of args
+--FILE--
+?php
+/* Prototype  : bool natcasesort(array $array_arg)
+ * Description: Sort an array using case-insensitive natural sort
+ * Source code: ext/standard/array.c
+ */
+
+/*
+ * Pass incorrect number of arguments to natcasesort() to test behaviour
+ */
+
+echo *** Testing natcasesort() : error conditions ***\n;
+
+// Zero arguments
+echo \n-- Testing natcasesort() function with Zero arguments --\n;
+var_dump( natcasesort() );
+
+// Test natcasesort with one more than the expected number of arguments
+echo \n-- Testing natcasesort() function with more than expected no. of 
arguments --\n;
+$array_arg = array(1, 2);
+$extra_arg = 10;
+var_dump( natcasesort($array_arg, $extra_arg) );
+
+echo Done;
+?
+--EXPECTF--
+*** Testing natcasesort() : error conditions ***
+
+-- Testing natcasesort() function with Zero arguments --
+
+Warning: natcasesort() expects exactly 1 parameter, 0 given in %s on line %d
+NULL
+
+-- Testing natcasesort() function with more than expected no. of arguments --
+
+Warning: natcasesort() expects exactly 1 parameter, 2 given in %s on line %d
+NULL
+Done
+--UEXPECTF--
+*** Testing natcasesort() : error conditions ***
+
+-- Testing natcasesort() function with Zero arguments --
+
+Warning: natcasesort() expects exactly 1 parameter, 0 given in %s on line %d
+NULL
+
+-- Testing natcasesort() function with more than expected no. of arguments --
+
+Warning: natcasesort() expects exactly 1 parameter, 2 given in %s on line %d
+NULL
+Done
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation5.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/array/natcasesort_variation5.phpt
diff -u /dev/null 
php-src/ext/standard/tests/array/natcasesort_variation5.phpt:1.2
--- /dev/null   Tue Feb 19 10:54:02 2008
+++ php-src/ext/standard/tests/array/natcasesort_variation5.phptTue Feb 
19 10:54:02 2008
@@ -0,0 +1,77 @@
+--TEST--
+Test natcasesort() function : usage variations - different hex values
+--FILE--
+?php
+/* Prototype  : bool natcasesort(array $array_arg)
+ * Description: Sort an array using case-insensitive natural sort
+ * Source code: ext/standard/array.c
+ */
+
+/*
+ * Pass an array of different hex values to test how natcasesort() re-orders it
+ */
+
+echo *** Testing natcasesort() : usage variation ***\n;
+
+$unsorted_hex_array = array(0x1AB, 0xFFF, 0xF, 0xFF, 0x2AA, 0xBB, 0x1ab, 0xff, 
-0xFF, 0, -0x2aa);
+var_dump( natcasesort($unsorted_hex_array) );
+var_dump($unsorted_hex_array);
+
+echo Done;
+?
+--EXPECTF--
+*** Testing natcasesort() : usage variation ***
+bool(true)
+array(11) {
+  [8]=
+  int(-255)
+  [10]=
+  int(-682)
+  [9]=
+  int(0)
+  [2]=
+  int(15)
+  [5]=
+  int(187)
+  [3]=
+  int(255)
+  [7]=
+  int(255)
+  [0]=
+  int(427)
+  [6]=
+  int(427)
+  [4]=
+  int(682)
+  [1]=
+  int(4095)
+}
+Done
+--UEXPECTF--
+*** Testing natcasesort() : usage variation ***
+bool(true)
+array(11) {
+  [8]=
+  int(-255)
+  [10]=
+  int(-682)
+  [9]=
+  int(0)
+  [2]=
+  int(15)
+  [5]=
+  int(187)
+  [3]=
+  int(255)
+  [7]=
+  int(255)
+  [0]=
+  int(427)
+  [6]=
+  int(427)
+  [4]=
+  int(682)
+  [1]=
+  int(4095)
+}
+Done
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_object1.phpt?r1=1.1r2=1.2diff_format=u
Index: 

[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array natcasesort_basic.phpt natcasesort_error.phpt natcasesort_object1.phpt natcasesort_object2.phpt natcasesort_variation1.phpt natcasesort_variat

2008-02-19 Thread Josie Messa
jmessa  Tue Feb 19 10:53:10 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   natcasesort_basic.phpt 
natcasesort_variation10.phpt 
natcasesort_variation4.phpt 
natcasesort_variation9.phpt 
natcasesort_error.phpt 
natcasesort_object2.phpt 
natcasesort_object1.phpt 
natcasesort_variation11.phpt 
natcasesort_variation6.phpt 
natcasesort_variation7.phpt 
natcasesort_variation8.phpt 
natcasesort_variation1.phpt 
natcasesort_variation2.phpt 
natcasesort_variation3.phpt 
natcasesort_variation5.phpt 
  Log:
  - New tests for natcasesort() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_basic.phpt
+++ php-src/ext/standard/tests/array/natcasesort_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation10.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation10.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation10.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation4.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation4.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation9.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation9.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation9.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_error.phpt
+++ php-src/ext/standard/tests/array/natcasesort_error.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_object2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_object2.phpt
+++ php-src/ext/standard/tests/array/natcasesort_object2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_object1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_object1.phpt
+++ php-src/ext/standard/tests/array/natcasesort_object1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation11.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation11.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation11.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation6.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation6.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation7.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation7.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation7.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation8.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation8.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation8.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation1.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation2.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation3.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation5.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation5.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/standard/tests/array rsort_object2.phpt

2008-02-19 Thread Josie Messa
jmessa  Tue Feb 19 09:37:50 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/array   rsort_object2.phpt 
  Log:
  - changed UEXPECTF section
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/rsort_object2.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/array/rsort_object2.phpt
diff -u php-src/ext/standard/tests/array/rsort_object2.phpt:1.1 
php-src/ext/standard/tests/array/rsort_object2.phpt:1.2
--- php-src/ext/standard/tests/array/rsort_object2.phpt:1.1 Fri Feb 15 
16:04:35 2008
+++ php-src/ext/standard/tests/array/rsort_object2.phpt Tue Feb 19 09:37:50 2008
@@ -263,7 +263,7 @@
 bool(true)
 array(4) {
   [0]=
-  object(for_integer_rsort)#2 (3) {
+  object(for_integer_rsort)#%d (3) {
 [upublic_class_value]=
 int(66)
 [uprivate_class_value:ufor_integer_rsort:private]=
@@ -272,7 +272,7 @@
 int(4)
   }
   [1]=
-  object(for_integer_rsort)#1 (3) {
+  object(for_integer_rsort)#%d (3) {
 [upublic_class_value]=
 int(11)
 [uprivate_class_value:ufor_integer_rsort:private]=
@@ -281,7 +281,7 @@
 int(30)
   }
   [2]=
-  object(for_integer_rsort)#4 (3) {
+  object(for_integer_rsort)#%d (3) {
 [upublic_class_value]=
 float(0.001)
 [uprivate_class_value:ufor_integer_rsort:private]=
@@ -290,7 +290,7 @@
 float(0.1)
   }
   [3]=
-  object(for_integer_rsort)#3 (3) {
+  object(for_integer_rsort)#%d (3) {
 [upublic_class_value]=
 int(-88)
 [uprivate_class_value:ufor_integer_rsort:private]=
@@ -302,7 +302,7 @@
 bool(true)
 array(4) {
   [0]=
-  object(for_string_rsort)#7 (3) {
+  object(for_string_rsort)#%d (3) {
 [upublic_class_value]=
 unicode(1) w
 [uprivate_class_value:ufor_string_rsort:private]=
@@ -311,7 +311,7 @@
 unicode(1) c
   }
   [1]=
-  object(for_string_rsort)#6 (3) {
+  object(for_string_rsort)#%d (3) {
 [upublic_class_value]=
 unicode(1) t
 [uprivate_class_value:ufor_string_rsort:private]=
@@ -320,7 +320,7 @@
 unicode(3) abb
   }
   [2]=
-  object(for_string_rsort)#8 (3) {
+  object(for_string_rsort)#%d (3) {
 [upublic_class_value]=
 unicode(2) py
 [uprivate_class_value:ufor_string_rsort:private]=
@@ -329,7 +329,7 @@
 unicode(2) pt
   }
   [3]=
-  object(for_string_rsort)#5 (3) {
+  object(for_string_rsort)#%d (3) {
 [upublic_class_value]=
 unicode(3) axx
 [uprivate_class_value:ufor_string_rsort:private]=
@@ -343,7 +343,7 @@
 bool(true)
 array(4) {
   [0]=
-  object(for_integer_rsort)#2 (3) {
+  object(for_integer_rsort)#%d (3) {
 [upublic_class_value]=
 int(66)
 [uprivate_class_value:ufor_integer_rsort:private]=
@@ -352,7 +352,7 @@
 int(4)
   }
   [1]=
-  object(for_integer_rsort)#1 (3) {
+  object(for_integer_rsort)#%d (3) {
 [upublic_class_value]=
 int(11)
 [uprivate_class_value:ufor_integer_rsort:private]=
@@ -361,7 +361,7 @@
 int(30)
   }
   [2]=
-  object(for_integer_rsort)#4 (3) {
+  object(for_integer_rsort)#%d (3) {
 [upublic_class_value]=
 float(0.001)
 [uprivate_class_value:ufor_integer_rsort:private]=
@@ -370,7 +370,7 @@
 float(0.1)
   }
   [3]=
-  object(for_integer_rsort)#3 (3) {
+  object(for_integer_rsort)#%d (3) {
 [upublic_class_value]=
 int(-88)
 [uprivate_class_value:ufor_integer_rsort:private]=
@@ -382,7 +382,7 @@
 bool(true)
 array(4) {
   [0]=
-  object(for_string_rsort)#7 (3) {
+  object(for_string_rsort)#%d (3) {
 [upublic_class_value]=
 unicode(1) w
 [uprivate_class_value:ufor_string_rsort:private]=
@@ -391,7 +391,7 @@
 unicode(1) c
   }
   [1]=
-  object(for_string_rsort)#6 (3) {
+  object(for_string_rsort)#%d (3) {
 [upublic_class_value]=
 unicode(1) t
 [uprivate_class_value:ufor_string_rsort:private]=
@@ -400,7 +400,7 @@
 unicode(3) abb
   }
   [2]=
-  object(for_string_rsort)#8 (3) {
+  object(for_string_rsort)#%d (3) {
 [upublic_class_value]=
 unicode(2) py
 [uprivate_class_value:ufor_string_rsort:private]=
@@ -409,7 +409,7 @@
 unicode(2) pt
   }
   [3]=
-  object(for_string_rsort)#5 (3) {
+  object(for_string_rsort)#%d (3) {
 [upublic_class_value]=
 unicode(3) axx
 [uprivate_class_value:ufor_string_rsort:private]=

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array natcasesort_basic.phpt natcasesort_error.phpt natcasesort_object1.phpt natcasesort_object2.phpt natcasesort_variation1.phpt natcasesort_variat

2008-02-19 Thread Josie Messa
jmessa  Tue Feb 19 10:51:43 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   natcasesort_variation10.phpt 
natcasesort_error.phpt 
natcasesort_variation4.phpt 
natcasesort_variation1.phpt 
natcasesort_object2.phpt 
natcasesort_variation9.phpt 
natcasesort_variation3.phpt 
natcasesort_variation7.phpt 
natcasesort_basic.phpt 
natcasesort_variation11.phpt 
natcasesort_variation6.phpt 
natcasesort_variation5.phpt 
natcasesort_variation2.phpt 
natcasesort_variation8.phpt 
natcasesort_object1.phpt 
  Log:
  - New tests for natcasesort() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation10.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation10.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation10.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_error.phpt
+++ php-src/ext/standard/tests/array/natcasesort_error.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation4.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation4.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation1.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_object2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_object2.phpt
+++ php-src/ext/standard/tests/array/natcasesort_object2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation9.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation9.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation9.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation3.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation7.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation7.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation7.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_basic.phpt
+++ php-src/ext/standard/tests/array/natcasesort_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation11.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation11.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation11.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation6.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation6.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation5.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation5.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation2.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_variation8.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_variation8.phpt
+++ php-src/ext/standard/tests/array/natcasesort_variation8.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/natcasesort_object1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/natcasesort_object1.phpt
+++ php-src/ext/standard/tests/array/natcasesort_object1.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array each_basic.phpt each_error.phpt each_variation1.phpt each_variation2.phpt each_variation3.phpt each_variation4.phpt each_variation5.phpt each_

2008-02-19 Thread Josie Messa
jmessa  Tue Feb 19 17:00:57 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   each_variation3.phpt 
each_variation6.phpt 
each_basic.phpt 
each_variation5.phpt 
each_variation4.phpt 
each_variation1.phpt 
each_variation2.phpt 
each_error.phpt 
  Log:
  - New tests for each() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/each_variation3.phpt
+++ php-src/ext/standard/tests/array/each_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/each_variation6.phpt
+++ php-src/ext/standard/tests/array/each_variation6.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/each_basic.phpt
+++ php-src/ext/standard/tests/array/each_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/each_variation5.phpt
+++ php-src/ext/standard/tests/array/each_variation5.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/each_variation4.phpt
+++ php-src/ext/standard/tests/array/each_variation4.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/each_variation1.phpt
+++ php-src/ext/standard/tests/array/each_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/each_variation2.phpt
+++ php-src/ext/standard/tests/array/each_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/each_error.phpt
+++ php-src/ext/standard/tests/array/each_error.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array each_basic.phpt each_error.phpt each_variation1.phpt each_variation2.phpt each_variation3.phpt each_variation4.phpt each_variation5.phpt each_

2008-02-19 Thread Josie Messa
jmessa  Tue Feb 19 17:02:27 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   each_variation4.phpt 
each_variation1.phpt 
each_error.phpt 
each_variation5.phpt 
each_variation6.phpt 
each_variation2.phpt 
each_variation3.phpt 
each_basic.phpt 
  Log:
  - New tests for each() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/each_variation4.phpt
+++ php-src/ext/standard/tests/array/each_variation4.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/each_variation1.phpt
+++ php-src/ext/standard/tests/array/each_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/each_error.phpt
+++ php-src/ext/standard/tests/array/each_error.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/each_variation5.phpt
+++ php-src/ext/standard/tests/array/each_variation5.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/each_variation6.phpt
+++ php-src/ext/standard/tests/array/each_variation6.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/each_variation2.phpt
+++ php-src/ext/standard/tests/array/each_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/each_variation3.phpt
+++ php-src/ext/standard/tests/array/each_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/each_basic.phpt
+++ php-src/ext/standard/tests/array/each_basic.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/standard/tests/array each_basic.phpt each_error.phpt each_variation1.phpt each_variation2.phpt each_variation3.phpt each_variation4.phpt each_variation5.phpt each_variation

2008-02-19 Thread Josie Messa
jmessa  Tue Feb 19 17:03:11 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/array   each_error.phpt 
each_variation5.phpt 
each_variation1.phpt 
each_basic.phpt 
each_variation2.phpt 
each_variation6.phpt 
each_variation4.phpt 
each_variation3.phpt 
  Log:
  - New tests for each() function
  http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_error.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/array/each_error.phpt
diff -u /dev/null php-src/ext/standard/tests/array/each_error.phpt:1.2
--- /dev/null   Tue Feb 19 17:03:11 2008
+++ php-src/ext/standard/tests/array/each_error.phptTue Feb 19 17:03:11 2008
@@ -0,0 +1,55 @@
+--TEST--
+Test each() function : error conditions - pass incorrect number of args
+--FILE--
+?php
+/* Prototype  : array each(array $arr)
+ * Description: Return the currently pointed key..value pair in the passed 
array, 
+ * and advance the pointer to the next element 
+ * Source code: Zend/zend_builtin_functions.c
+ */
+
+/*
+ * Pass an incorrect number of arguments to each() to test behaviour
+ */
+
+echo *** Testing each() : error conditions ***\n;
+
+// Zero arguments
+echo \n-- Testing each() function with Zero arguments --\n;
+var_dump( each() );
+
+//Test each with one more than the expected number of arguments
+echo \n-- Testing each() function with more than expected no. of arguments 
--\n;
+$arr = array(1, 2);
+$extra_arg = 10;
+var_dump( each($arr, $extra_arg) );
+
+echo Done;
+?
+
+--EXPECTF--
+*** Testing each() : error conditions ***
+
+-- Testing each() function with Zero arguments --
+
+Warning: Wrong parameter count for each() in %s on line %d
+NULL
+
+-- Testing each() function with more than expected no. of arguments --
+
+Warning: Wrong parameter count for each() in %s on line %d
+NULL
+Done
+--UEXPECTF--
+*** Testing each() : error conditions ***
+
+-- Testing each() function with Zero arguments --
+
+Warning: Wrong parameter count for each() in %s on line %d
+NULL
+
+-- Testing each() function with more than expected no. of arguments --
+
+Warning: Wrong parameter count for each() in %s on line %d
+NULL
+Done
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/each_variation5.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/array/each_variation5.phpt
diff -u /dev/null php-src/ext/standard/tests/array/each_variation5.phpt:1.2
--- /dev/null   Tue Feb 19 17:03:11 2008
+++ php-src/ext/standard/tests/array/each_variation5.phpt   Tue Feb 19 
17:03:11 2008
@@ -0,0 +1,157 @@
+--TEST--
+Test each() function : usage variations - Multi-dimensional arrays
+--FILE--
+?php
+/* Prototype  : array each(array $arr)
+ * Description: Return the currently pointed key..value pair in the passed 
array,
+ * and advance the pointer to the next element 
+ * Source code: Zend/zend_builtin_functions.c
+ */
+
+/*
+ * Test behaviour of each() when passed:
+ * 1. a two-dimensional array
+ * 2. a sub-array
+ */
+
+echo *** Testing each() : usage variations ***\n;
+
+$arr = array ('zero',
+  array(1, 2, 3),
+  'one' = 'un',
+  array('a', 'b', 'c')
+  );
+
+echo \n-- Pass each() a two-dimensional array --\n;
+for ($i = 1; $i  count($arr); $i++) {
+   var_dump( each($arr) );
+}
+
+echo \n-- Pass each() a sub-array --\n;
+var_dump( each($arr[2]));
+
+echo Done;
+?
+
+--EXPECTF--
+*** Testing each() : usage variations ***
+
+-- Pass each() a two-dimensional array --
+array(4) {
+  [1]=
+  string(4) zero
+  [value]=
+  string(4) zero
+  [0]=
+  int(0)
+  [key]=
+  int(0)
+}
+array(4) {
+  [1]=
+  array(3) {
+[0]=
+int(1)
+[1]=
+int(2)
+[2]=
+int(3)
+  }
+  [value]=
+  array(3) {
+[0]=
+int(1)
+[1]=
+int(2)
+[2]=
+int(3)
+  }
+  [0]=
+  int(1)
+  [key]=
+  int(1)
+}
+array(4) {
+  [1]=
+  string(2) un
+  [value]=
+  string(2) un
+  [0]=
+  string(3) one
+  [key]=
+  string(3) one
+}
+
+-- Pass each() a sub-array --
+array(4) {
+  [1]=
+  string(1) a
+  [value]=
+  string(1) a
+  [0]=
+  int(0)
+  [key]=
+  int(0)
+}
+Done
+--UEXPECTF--
+*** Testing each() : usage variations ***
+
+-- Pass each() a two-dimensional array --
+array(4) {
+  [1]=
+  unicode(4) zero
+  [uvalue]=
+  unicode(4) zero
+  [0]=
+  int(0)
+  [ukey]=
+  int(0)
+}
+array(4) {
+  [1]=
+  array(3) {
+[0]=
+int(1)
+[1]=
+int(2)
+[2]=
+int(3)
+  }
+  [uvalue]=
+  array(3) {
+[0]=
+int(1)
+[1]=
+int(2)
+[2]=
+int(3)
+  }
+  [0]=
+  int(1)
+  [ukey]=
+  int(1)
+}
+array(4) {
+  [1]=
+  unicode(2) un
+  [uvalue]=
+  unicode(2) un
+  [0]=
+  unicode(3) one
+  [ukey]=
+  unicode(3) one
+}
+
+-- 

[PHP-CVS] cvs: php-src /ext/standard/tests/array array_slice_basic.phpt array_slice_error.phpt array_slice_variation10.phpt array_slice_variation11.phpt array_slice_variation2.phpt array_slice_variati

2008-02-14 Thread Josie Messa
jmessa  Thu Feb 14 11:13:56 2008 UTC

  Added files: 
/php-src/ext/standard/tests/array   array_slice_variation2.phpt 
array_slice_variation8.phpt 
array_slice_variation10.phpt 
array_slice_variation9.phpt 
array_slice_variation4.phpt 
array_slice_variation7.phpt 
array_slice_error.phpt 
array_slice_variation6.phpt 
array_slice_variation11.phpt 
array_slice_basic.phpt 
array_slice_variation5.phpt 
array_slice_variation3.phpt 
  Log:
  - New tests for array_slice() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_slice_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_slice_variation2.phpt
+++ php-src/ext/standard/tests/array/array_slice_variation2.phpt
--TEST--
Test array_slice() function : usage variations - Pass different data types as 
$offset arg
--FILE--
?php
/* Prototype  : array array_slice(array $input, int $offset [, int $length [, 
bool $preserve_keys]])
 * Description: Returns elements specified by offset and length 
 * Source code: ext/standard/array.c
 */

/*
 * Pass different data types as $offset argument to array_slice() to test 
behaviour
 */

echo *** Testing array_slice() : usage variations ***\n;

// Initialise function arguments not being substituted
$input_array = array('one' = 1, 2, 'three' = 3, 4);

//get an unset variable
$unset_var = 10;
unset ($unset_var);

// get a class
class classA
{
  public function __toString() {
return Class A object;
  }
}

// heredoc string
$heredoc = EOT
hello world
EOT;

// get a resource variable
$fp = fopen(__FILE__, r);

// unexpected values to be passed to $offset argument
$inputs = array(

   // int data
/*1*/  0,
   1,
   12345,
   -2345,

   // float data
/*5*/  10.5,
   -10.5,
   12.3456789000e10,
   12.3456789000E-10,
   .5,

   // null data
/*10*/ NULL,
   null,

   // boolean data
/*12*/ true,
   false,
   TRUE,
   FALSE,
   
   // empty data
/*16*/ ,
   '',
   array(),

   // string data
/*19*/ string,
   'string',
   $heredoc,

   // undefined data
/*22*/ @$undefined_var,

   // unset data
/*23*/ @$unset_var,
);

// loop through each element of $inputs to check the behavior of array_slice()
$iterator = 1;
foreach($inputs as $input) {
  echo \n-- Iteration $iterator --\n;
  var_dump( array_slice($input_array, $input) );
  $iterator++;
};

fclose($fp);

echo Done;
?

--EXPECTF--
*** Testing array_slice() : usage variations ***

-- Iteration 1 --
array(4) {
  [one]=
  int(1)
  [0]=
  int(2)
  [three]=
  int(3)
  [1]=
  int(4)
}

-- Iteration 2 --
array(3) {
  [0]=
  int(2)
  [three]=
  int(3)
  [1]=
  int(4)
}

-- Iteration 3 --
array(0) {
}

-- Iteration 4 --
array(4) {
  [one]=
  int(1)
  [0]=
  int(2)
  [three]=
  int(3)
  [1]=
  int(4)
}

-- Iteration 5 --
array(0) {
}

-- Iteration 6 --
array(4) {
  [one]=
  int(1)
  [0]=
  int(2)
  [three]=
  int(3)
  [1]=
  int(4)
}

-- Iteration 7 --
array(0) {
}

-- Iteration 8 --
array(4) {
  [one]=
  int(1)
  [0]=
  int(2)
  [three]=
  int(3)
  [1]=
  int(4)
}

-- Iteration 9 --
array(4) {
  [one]=
  int(1)
  [0]=
  int(2)
  [three]=
  int(3)
  [1]=
  int(4)
}

-- Iteration 10 --
array(4) {
  [one]=
  int(1)
  [0]=
  int(2)
  [three]=
  int(3)
  [1]=
  int(4)
}

-- Iteration 11 --
array(4) {
  [one]=
  int(1)
  [0]=
  int(2)
  [three]=
  int(3)
  [1]=
  int(4)
}

-- Iteration 12 --
array(3) {
  [0]=
  int(2)
  [three]=
  int(3)
  [1]=
  int(4)
}

-- Iteration 13 --
array(4) {
  [one]=
  int(1)
  [0]=
  int(2)
  [three]=
  int(3)
  [1]=
  int(4)
}

-- Iteration 14 --
array(3) {
  [0]=
  int(2)
  [three]=
  int(3)
  [1]=
  int(4)
}

-- Iteration 15 --
array(4) {
  [one]=
  int(1)
  [0]=
  int(2)
  [three]=
  int(3)
  [1]=
  int(4)
}

-- Iteration 16 --

Warning: array_slice() expects parameter 2 to be long, string given in %s on 
line %d
NULL

-- Iteration 17 --

Warning: array_slice() expects parameter 2 to be long, string given in %s on 
line %d
NULL

-- Iteration 18 --

Warning: array_slice() expects parameter 2 to be long, array given in %s on 
line %d
NULL

-- Iteration 19 --

Warning: array_slice() expects parameter 2 to be long, string given in %s on 
line %d
NULL

-- Iteration 20 --

Warning: array_slice() expects parameter 2 to be long, string given in %s on 
line %d
NULL

-- Iteration 21 --

Warning: array_slice() expects parameter 2 to be long, string given in %s on 
line %d
NULL

-- Iteration 22 --
array(4) {
  [one]=
  int(1)
  [0]=
  int(2)
  [three]=
  int(3)
  [1]=

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array array_slice_basic.phpt array_slice_error.phpt array_slice_variation1.phpt array_slice_variation10.phpt array_slice_variation2.phpt array_slice

2008-02-14 Thread Josie Messa
jmessa  Thu Feb 14 11:15:54 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   array_slice_variation9.phpt 
array_slice_variation1.phpt 
array_slice_basic.phpt 
array_slice_variation8.phpt 
array_slice_variation4.phpt 
array_slice_variation3.phpt 
array_slice_variation6.phpt 
array_slice_variation7.phpt 
array_slice_variation10.phpt 
array_slice_variation2.phpt 
array_slice_variation5.phpt 
array_slice_error.phpt 
  Log:
  - New tests for array_slice() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_slice_variation9.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_slice_variation9.phpt
+++ php-src/ext/standard/tests/array/array_slice_variation9.phpt
--TEST--
Test array_slice() function : usage variations - referenced variables
--FILE--
?php
/* Prototype  : array array_slice(array $input, int $offset [, int $length [, 
bool $preserve_keys]])
 * Description: Returns elements specified by offset and length 
 * Source code: ext/standard/array.c
 */

/*
 * Test array_slice() when:
 * 1. Passed an array of referenced variables
 * 2. $input argument is passed by reference
 */

echo *** Testing array_slice() : usage variations ***\n;

$val1 = 'one';
$val2 = 'two';
$val3 = 'three';

echo \n-- Array of referenced variables (\$preserve_keys = default) --\n;
$input = array(3 = $val1, 2 = $val2, 1 = $val3);
var_dump(array_slice($input, 1, 2));

echo -- Change \$val2 (\$preserve_keys = TRUE) --\n;
$val2 = 'hello, world';
var_dump(array_slice($input, 1, 2, true));

echo \n-- Pass array by reference --\n;
$new_input = array (1, 2, 3);
var_dump(array_slice($new_input, 1));
echo -- Check passed array: --\n;
var_dump($new_input);

echo Done;
?

--EXPECTF--
Strict Standards: Call-time pass-by-reference has been deprecated in %s on line 
%d
*** Testing array_slice() : usage variations ***

-- Array of referenced variables ($preserve_keys = default) --
array(2) {
  [0]=
  string(3) two
  [1]=
  string(5) three
}
-- Change $val2 ($preserve_keys = TRUE) --
array(2) {
  [2]=
  string(12) hello, world
  [1]=
  string(5) three
}

-- Pass array by reference --
array(2) {
  [0]=
  int(2)
  [1]=
  int(3)
}
-- Check passed array: --
array(3) {
  [0]=
  int(1)
  [1]=
  int(2)
  [2]=
  int(3)
}
Done
--UEXPECTF--
Strict Standards: Call-time pass-by-reference has been deprecated in %s on line 
%d
*** Testing array_slice() : usage variations ***

-- Array of referenced variables ($preserve_keys = default) --
array(2) {
  [0]=
  unicode(3) two
  [1]=
  unicode(5) three
}
-- Change $val2 ($preserve_keys = TRUE) --
array(2) {
  [2]=
  unicode(12) hello, world
  [1]=
  unicode(5) three
}

-- Pass array by reference --
array(2) {
  [0]=
  int(2)
  [1]=
  int(3)
}
-- Check passed array: --
array(3) {
  [0]=
  int(1)
  [1]=
  int(2)
  [2]=
  int(3)
}
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_slice_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_slice_variation1.phpt
+++ php-src/ext/standard/tests/array/array_slice_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_slice_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_slice_basic.phpt
+++ php-src/ext/standard/tests/array/array_slice_basic.phpt
--TEST--
Test array_slice() function : basic functionality 
--FILE--
?php
/* Prototype  : array array_slice(array $input, int $offset [, int $length [, 
bool $preserve_keys]])
 * Description: Returns elements specified by offset and length 
 * Source code: ext/standard/array.c
 */

/*
 * Test basic functionality of array_slice()
 */

echo *** Testing array_slice() : basic functionality ***\n;


$input = array('one' = 1, 'two' = 2, 3, 23 = 4);
$offset = 2;
$length = 2;
$preserve_keys = true;

// Calling array_slice() with all possible arguments
echo \n-- All arguments --\n;
var_dump( array_slice($input, $offset, $length, $preserve_keys) );

// Calling array_slice() with mandatory arguments
echo \n-- Mandatory arguments --\n;
var_dump( array_slice($input, $offset) );

echo Done;
?

--EXPECTF--
*** Testing array_slice() : basic functionality ***

-- All arguments --
array(2) {
  [0]=
  int(3)
  [23]=
  int(4)
}

-- Mandatory arguments --
array(2) {
  [0]=
  int(3)
  [1]=
  int(4)
}
Done
--UEXPECTF--
*** Testing array_slice() : basic functionality ***

-- All arguments --
array(2) {
  [0]=
  int(3)
  [23]=
  int(4)
}

-- Mandatory arguments --
array(2) {
  [0]=
  int(3)
  [1]=
  int(4)
}
Done

[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array array_slice_basic.phpt array_slice_error.phpt array_slice_variation10.phpt array_slice_variation11.phpt array_slice_variation2.phpt array_slic

2008-02-14 Thread Josie Messa
jmessa  Thu Feb 14 11:17:36 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   array_slice_variation6.phpt 
array_slice_variation8.phpt 
array_slice_variation10.phpt 
array_slice_error.phpt 
array_slice_variation7.phpt 
array_slice_variation2.phpt 
array_slice_variation5.phpt 
array_slice_variation11.phpt 
array_slice_variation9.phpt 
array_slice_variation4.phpt 
array_slice_variation3.phpt 
array_slice_basic.phpt 
  Log:
  - New tests for array_slice() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_slice_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_slice_variation6.phpt
+++ php-src/ext/standard/tests/array/array_slice_variation6.phpt
--TEST--
Test array_slice() function : usage variations - pass different int values as 
$length arg
--FILE--
?php
/* Prototype  : array array_slice(array $input, int $offset [, int $length [, 
bool $preserve_keys]])
 * Description: Returns elements specified by offset and length 
 * Source code: ext/standard/array.c
 */

/*
 * Pass different integer values as $length argument to array_slice() to test 
behaviour
 */

echo *** Testing array_slice() : usage variations ***\n;

$input = array ('one' = 1, 2 = 'two', 'three', 9 = 'nine', 'ten' = 10);
$offset = 1;

for ($i = -6; $i = 6; $i++) {
echo \n-- \$length is $i --\n;
var_dump(array_slice($input, $offset, $i));
}
echo \n-- \$length is maximum integer value --\n;
var_dump(array_slice($input, $offset, PHP_INT_MAX));

echo \n-- \$length is minimum integer value --\n;
var_dump(array_slice($input, $offset, -PHP_INT_MAX));

echo Done;
?

--EXPECTF--
*** Testing array_slice() : usage variations ***

-- $length is -6 --
array(0) {
}

-- $length is -5 --
array(0) {
}

-- $length is -4 --
array(0) {
}

-- $length is -3 --
array(1) {
  [0]=
  string(3) two
}

-- $length is -2 --
array(2) {
  [0]=
  string(3) two
  [1]=
  string(5) three
}

-- $length is -1 --
array(3) {
  [0]=
  string(3) two
  [1]=
  string(5) three
  [2]=
  string(4) nine
}

-- $length is 0 --
array(0) {
}

-- $length is 1 --
array(1) {
  [0]=
  string(3) two
}

-- $length is 2 --
array(2) {
  [0]=
  string(3) two
  [1]=
  string(5) three
}

-- $length is 3 --
array(3) {
  [0]=
  string(3) two
  [1]=
  string(5) three
  [2]=
  string(4) nine
}

-- $length is 4 --
array(4) {
  [0]=
  string(3) two
  [1]=
  string(5) three
  [2]=
  string(4) nine
  [ten]=
  int(10)
}

-- $length is 5 --
array(4) {
  [0]=
  string(3) two
  [1]=
  string(5) three
  [2]=
  string(4) nine
  [ten]=
  int(10)
}

-- $length is 6 --
array(4) {
  [0]=
  string(3) two
  [1]=
  string(5) three
  [2]=
  string(4) nine
  [ten]=
  int(10)
}

-- $length is maximum integer value --
array(4) {
  [0]=
  string(3) two
  [1]=
  string(5) three
  [2]=
  string(4) nine
  [ten]=
  int(10)
}

-- $length is minimum integer value --
array(0) {
}
Done
--UEXPECTF--
*** Testing array_slice() : usage variations ***

-- $length is -6 --
array(0) {
}

-- $length is -5 --
array(0) {
}

-- $length is -4 --
array(0) {
}

-- $length is -3 --
array(1) {
  [0]=
  unicode(3) two
}

-- $length is -2 --
array(2) {
  [0]=
  unicode(3) two
  [1]=
  unicode(5) three
}

-- $length is -1 --
array(3) {
  [0]=
  unicode(3) two
  [1]=
  unicode(5) three
  [2]=
  unicode(4) nine
}

-- $length is 0 --
array(0) {
}

-- $length is 1 --
array(1) {
  [0]=
  unicode(3) two
}

-- $length is 2 --
array(2) {
  [0]=
  unicode(3) two
  [1]=
  unicode(5) three
}

-- $length is 3 --
array(3) {
  [0]=
  unicode(3) two
  [1]=
  unicode(5) three
  [2]=
  unicode(4) nine
}

-- $length is 4 --
array(4) {
  [0]=
  unicode(3) two
  [1]=
  unicode(5) three
  [2]=
  unicode(4) nine
  [uten]=
  int(10)
}

-- $length is 5 --
array(4) {
  [0]=
  unicode(3) two
  [1]=
  unicode(5) three
  [2]=
  unicode(4) nine
  [uten]=
  int(10)
}

-- $length is 6 --
array(4) {
  [0]=
  unicode(3) two
  [1]=
  unicode(5) three
  [2]=
  unicode(4) nine
  [uten]=
  int(10)
}

-- $length is maximum integer value --
array(4) {
  [0]=
  unicode(3) two
  [1]=
  unicode(5) three
  [2]=
  unicode(4) nine
  [uten]=
  int(10)
}

-- $length is minimum integer value --
array(0) {
}
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_slice_variation8.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_slice_variation8.phpt
+++ php-src/ext/standard/tests/array/array_slice_variation8.phpt
--TEST--
Test array_slice() function : usage variations - multidimensional arrays
--FILE--

[PHP-CVS] cvs: php-src /ext/standard/tests/array array_values_basic.phpt array_values_variation1.phpt array_values_variation2.phpt array_values_variation3.phpt array_values_variation4.phpt array_value

2008-02-14 Thread Josie Messa
jmessa  Thu Feb 14 14:20:51 2008 UTC

  Added files: 
/php-src/ext/standard/tests/array   array_values_variation4.phpt 
array_values_variation5.phpt 
array_values_variation6.phpt 
array_values_variation2.phpt 
array_values_basic.phpt 
array_values_variation1.phpt 
array_values_variation3.phpt 
  Log:
  - New tests for array_values() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_values_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_values_variation4.phpt
+++ php-src/ext/standard/tests/array/array_values_variation4.phpt
--TEST--
Test array_values() function : usage variations - multi-dimensional arrays
--FILE--
?php
/* Prototype  : array array_values(array $input)
 * Description: Return just the values from the input array 
 * Source code: ext/standard/array.c
 */

/*
 * Test array_values when:
 * 1. Passed a two-dimensional array as $input argument
 * 2. Passed a sub-array as $input argument
 * 3. Passed an infinitely recursive multi-dimensional array
 */

echo *** Testing array_values() : usage variations ***\n;

$input = array ('zero' = 'zero', 'un' = 'one', 'sub' = array (1, 2, 3));

echo \n-- Array values of a two-dimensional array --\n;
var_dump(array_values($input));

echo \n-- Array values of a sub-array --\n;
var_dump(array_values($input['sub']));

// get an infinitely recursive array
$input[] = $input;
echo \n-- Array values of an infinitely recursive array --\n;
var_dump(array_values($input));

echo Done;
?

--EXPECTF--
*** Testing array_values() : usage variations ***

-- Array values of a two-dimensional array --
array(3) {
  [0]=
  string(4) zero
  [1]=
  string(3) one
  [2]=
  array(3) {
[0]=
int(1)
[1]=
int(2)
[2]=
int(3)
  }
}

-- Array values of a sub-array --
array(3) {
  [0]=
  int(1)
  [1]=
  int(2)
  [2]=
  int(3)
}

-- Array values of an infinitely recursive array --
array(4) {
  [0]=
  string(4) zero
  [1]=
  string(3) one
  [2]=
  array(3) {
[0]=
int(1)
[1]=
int(2)
[2]=
int(3)
  }
  [3]=
  array(4) {
[zero]=
string(4) zero
[un]=
string(3) one
[sub]=
array(3) {
  [0]=
  int(1)
  [1]=
  int(2)
  [2]=
  int(3)
}
[0]=
array(4) {
  [zero]=
  string(4) zero
  [un]=
  string(3) one
  [sub]=
  array(3) {
[0]=
int(1)
[1]=
int(2)
[2]=
int(3)
  }
  [0]=
  *RECURSION*
}
  }
}
Done
--UEXPECTF--
*** Testing array_values() : usage variations ***

-- Array values of a two-dimensional array --
array(3) {
  [0]=
  unicode(4) zero
  [1]=
  unicode(3) one
  [2]=
  array(3) {
[0]=
int(1)
[1]=
int(2)
[2]=
int(3)
  }
}

-- Array values of a sub-array --
array(3) {
  [0]=
  int(1)
  [1]=
  int(2)
  [2]=
  int(3)
}

-- Array values of an infinitely recursive array --
array(4) {
  [0]=
  unicode(4) zero
  [1]=
  unicode(3) one
  [2]=
  array(3) {
[0]=
int(1)
[1]=
int(2)
[2]=
int(3)
  }
  [3]=
  array(4) {
[uzero]=
unicode(4) zero
[uun]=
unicode(3) one
[usub]=
array(3) {
  [0]=
  int(1)
  [1]=
  int(2)
  [2]=
  int(3)
}
[0]=
array(4) {
  [uzero]=
  unicode(4) zero
  [uun]=
  unicode(3) one
  [usub]=
  array(3) {
[0]=
int(1)
[1]=
int(2)
[2]=
int(3)
  }
  [0]=
  *RECURSION*
}
  }
}
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_values_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_values_variation5.phpt
+++ php-src/ext/standard/tests/array/array_values_variation5.phpt
--TEST--
Test array_values() function : usage variations - internal array pointer
--FILE--
?php
/* Prototype  : array array_values(array $input)
 * Description: Return just the values from the input array 
 * Source code: ext/standard/array.c
 */

/*
 * Test the position of the internal array pointer after a call to array_values
 */

echo *** Testing array_values() : usage variations ***\n;

$input = array ('one' = 'un', 'two' = 'deux', 'three' = 'trois');

echo \n-- Call array_values() --\n;
var_dump($result = array_values($input));

echo -- Position of Internal Pointer in Result: --\n;
echo key($result) .  =  . current($result) . \n;
echo \n-- Position of Internal Pointer in Original Array: --\n;
echo key($input) .  =  . current ($input) . \n;

echo Done;
?

--EXPECTF--
*** Testing array_values() : usage variations ***

-- Call array_values() --
array(3) {
  [0]=
  string(2) un
  [1]=
  string(4) deux
  [2]=
  string(5) trois
}
-- Position of Internal Pointer in Result: 

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array array_values_basic.phpt array_values_variation1.phpt array_values_variation2.phpt array_values_variation3.phpt array_values_variation4.phpt ar

2008-02-14 Thread Josie Messa
jmessa  Thu Feb 14 14:21:48 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   array_values_variation5.phpt 
array_values_basic.phpt 
array_values_variation4.phpt 
array_values_variation2.phpt 
array_values_variation6.phpt 
array_values_variation1.phpt 
array_values_variation3.phpt 
  Log:
  - New tests for array_values() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_values_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_values_variation5.phpt
+++ php-src/ext/standard/tests/array/array_values_variation5.phpt
--TEST--
Test array_values() function : usage variations - internal array pointer
--FILE--
?php
/* Prototype  : array array_values(array $input)
 * Description: Return just the values from the input array 
 * Source code: ext/standard/array.c
 */

/*
 * Test the position of the internal array pointer after a call to array_values
 */

echo *** Testing array_values() : usage variations ***\n;

$input = array ('one' = 'un', 'two' = 'deux', 'three' = 'trois');

echo \n-- Call array_values() --\n;
var_dump($result = array_values($input));

echo -- Position of Internal Pointer in Result: --\n;
echo key($result) .  =  . current($result) . \n;
echo \n-- Position of Internal Pointer in Original Array: --\n;
echo key($input) .  =  . current ($input) . \n;

echo Done;
?

--EXPECTF--
*** Testing array_values() : usage variations ***

-- Call array_values() --
array(3) {
  [0]=
  string(2) un
  [1]=
  string(4) deux
  [2]=
  string(5) trois
}
-- Position of Internal Pointer in Result: --
0 = un

-- Position of Internal Pointer in Original Array: --
one = un
Done
--UEXPECTF--
*** Testing array_values() : usage variations ***

-- Call array_values() --
array(3) {
  [0]=
  unicode(2) un
  [1]=
  unicode(4) deux
  [2]=
  unicode(5) trois
}
-- Position of Internal Pointer in Result: --
0 = un

-- Position of Internal Pointer in Original Array: --
one = un
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_values_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_values_basic.phpt
+++ php-src/ext/standard/tests/array/array_values_basic.phpt
--TEST--
Test array_values() function : basic functionality 
--FILE--
?php
/* Prototype  : array array_values(array $input)
 * Description: Return just the values from the input array 
 * Source code: ext/standard/array.c
 */

/*
 * Test basic functionality of array_values()
 */

echo *** Testing array_values() : basic functionality ***\n;


// Initialise all required variables
$input = array('zero', 'one', 'two', 'three' = 3, 10 = 'ten');

// Calling array_values() with all possible arguments
var_dump( array_values($input) );

echo Done;
?

--EXPECTF--
*** Testing array_values() : basic functionality ***
array(5) {
  [0]=
  string(4) zero
  [1]=
  string(3) one
  [2]=
  string(3) two
  [3]=
  int(3)
  [4]=
  string(3) ten
}
Done
--UEXPECTF--
*** Testing array_values() : basic functionality ***
array(5) {
  [0]=
  unicode(4) zero
  [1]=
  unicode(3) one
  [2]=
  unicode(3) two
  [3]=
  int(3)
  [4]=
  unicode(3) ten
}
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_values_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_values_variation4.phpt
+++ php-src/ext/standard/tests/array/array_values_variation4.phpt
--TEST--
Test array_values() function : usage variations - multi-dimensional arrays
--FILE--
?php
/* Prototype  : array array_values(array $input)
 * Description: Return just the values from the input array 
 * Source code: ext/standard/array.c
 */

/*
 * Test array_values when:
 * 1. Passed a two-dimensional array as $input argument
 * 2. Passed a sub-array as $input argument
 * 3. Passed an infinitely recursive multi-dimensional array
 */

echo *** Testing array_values() : usage variations ***\n;

$input = array ('zero' = 'zero', 'un' = 'one', 'sub' = array (1, 2, 3));

echo \n-- Array values of a two-dimensional array --\n;
var_dump(array_values($input));

echo \n-- Array values of a sub-array --\n;
var_dump(array_values($input['sub']));

// get an infinitely recursive array
$input[] = $input;
echo \n-- Array values of an infinitely recursive array --\n;
var_dump(array_values($input));

echo Done;
?

--EXPECTF--
*** Testing array_values() : usage variations ***

-- Array values of a two-dimensional array --
array(3) {
  [0]=
  string(4) zero
  [1]=
  string(3) one
  [2]=
  array(3) {
[0]=
int(1)
[1]=
int(2)
[2]=
int(3)
  }
}

-- Array values of a sub-array --
array(3) {
  [0]=
  int(1)
  [1]=
  int(2)
  [2]=
  int(3)
}

-- Array values of an infinitely recursive array --
array(4) {
  [0]=
  

[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array array_values_basic.phpt array_values_variation1.phpt array_values_variation2.phpt array_values_variation3.phpt array_values_variation4.phpt ar

2008-02-14 Thread Josie Messa
jmessa  Thu Feb 14 14:22:43 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   array_values_basic.phpt 
array_values_variation2.phpt 
array_values_variation4.phpt 
array_values_variation5.phpt 
array_values_variation1.phpt 
array_values_variation6.phpt 
array_values_variation3.phpt 
  Log:
  - New tests for array_values() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_values_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_values_basic.phpt
+++ php-src/ext/standard/tests/array/array_values_basic.phpt
--TEST--
Test array_values() function : basic functionality 
--FILE--
?php
/* Prototype  : array array_values(array $input)
 * Description: Return just the values from the input array 
 * Source code: ext/standard/array.c
 */

/*
 * Test basic functionality of array_values()
 */

echo *** Testing array_values() : basic functionality ***\n;


// Initialise all required variables
$input = array('zero', 'one', 'two', 'three' = 3, 10 = 'ten');

// Calling array_values() with all possible arguments
var_dump( array_values($input) );

echo Done;
?

--EXPECTF--
*** Testing array_values() : basic functionality ***
array(5) {
  [0]=
  string(4) zero
  [1]=
  string(3) one
  [2]=
  string(3) two
  [3]=
  int(3)
  [4]=
  string(3) ten
}
Done
--UEXPECTF--
*** Testing array_values() : basic functionality ***
array(5) {
  [0]=
  unicode(4) zero
  [1]=
  unicode(3) one
  [2]=
  unicode(3) two
  [3]=
  int(3)
  [4]=
  unicode(3) ten
}
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_values_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_values_variation2.phpt
+++ php-src/ext/standard/tests/array/array_values_variation2.phpt
--TEST--
Test array_values() function : usage variations - arrays of different data types
--FILE--
?php
/* Prototype  : array array_values(array $input)
 * Description: Return just the values from the input array 
 * Source code: ext/standard/array.c
 */

/*
 * Pass arrays of different data types as $input argument to array_values() to 
test behaviour
 */

echo *** Testing array_values() : usage variations ***\n;

//get an unset variable
$unset_var = 10;
unset ($unset_var);

// get a class
class classA
{
  public function __toString() {
return Class A object;
  }
}

// heredoc string
$heredoc = EOT
hello world
EOT;

// get a resource variable
$fp = fopen(__FILE__, r);

// arrays of different data types to be passed as $input
$inputs = array(

   // int data
/*1*/  'int' = array(
   0,
   1,
   12345,
   -2345,
   ),

   // float data
/*2*/  'float' = array(
   10.5,
   -10.5,
   12.3456789000e10,
   12.3456789000E-10,
   .5,
   ),

   // null data
/*3*/ 'null' = array(
   NULL,
   null,
   ),

   // boolean data
/*4*/ 'bool' = array(
   true,
   false,
   TRUE,
   FALSE,
   ),
   
   // empty data
/*5*/ 'empty string' = array(
   ,
   '',
   ),
   
/*6*/ 'empty array' = array(
   ),

   // string data
/*7*/ 'string' = array(
   string,
   'string',
   $heredoc,
   ),
   
   // object data
/*8*/ 'object' = array(
   new classA(),
   ),

   // undefined data
/*9*/ 'undefined' = array(
   @$undefined_var,
   ),

   // unset data
/*10*/ 'unset' = array(
   @$unset_var,
   ),

   // resource variable
/*11*/ 'resource' = array(
   $fp
   ),
);

// loop through each element of $inputs to check the behavior of array_values()
$iterator = 1;
foreach($inputs as $key = $input) {
  echo \n-- Iteration $iterator: $key data --\n;
  var_dump( array_values($input) );
  $iterator++;
};

fclose($fp);

echo Done;
?

--EXPECTF--
*** Testing array_values() : usage variations ***

-- Iteration 1: int data --
array(4) {
  [0]=
  int(0)
  [1]=
  int(1)
  [2]=
  int(12345)
  [3]=
  int(-2345)
}

-- Iteration 2: float data --
array(5) {
  [0]=
  float(10.5)
  [1]=
  float(-10.5)
  [2]=
  float(123456789000)
  [3]=
  float(1.23456789E-9)
  [4]=
  float(0.5)
}

-- Iteration 3: null data --
array(2) {
  [0]=
  NULL
  [1]=
  NULL
}

-- Iteration 4: bool data --
array(4) {
  [0]=
  bool(true)
  [1]=
  bool(false)
  [2]=
  bool(true)
  [3]=
  bool(false)
}

-- Iteration 5: empty string data --
array(2) {
  [0]=
  string(0) 
  [1]=
  string(0) 
}

-- Iteration 6: empty array data --
array(0) {
}

-- Iteration 7: string data --
array(3) {
  [0]=
  string(6) string
  [1]=
  string(6) string
  [2]=
  string(11) hello world
}

-- Iteration 8: object data --
array(1) {
  [0]=
  object(classA)#%d (0) {
  }
}

-- Iteration 9: undefined data --

[PHP-CVS] cvs: php-src /ext/standard/tests/array array_values_variation7.phpt

2008-02-14 Thread Josie Messa
jmessa  Thu Feb 14 16:09:18 2008 UTC

  Added files: 
/php-src/ext/standard/tests/array   array_values_variation7.phpt 
  Log:
  - New variation test for array_values()
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_values_variation7.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_values_variation7.phpt
+++ php-src/ext/standard/tests/array/array_values_variation7.phpt
--TEST--
Test array_values() function : usage variations - Internal order check
--FILE--
?php
/* Prototype  : array array_values(array $input)
 * Description: Return just the values from the input array 
 * Source code: ext/standard/array.c
 */

/*
 * Check that array_values is re-assigning keys according to the internal order 
of the array,
 * and is not dependant on the \$input argument's keys
 */

echo *** Testing array_values() : usage variations ***\n;

// populate array with 'default' keys in reverse order
$input = array(3 = 'three', 2 = 'two', 1 = 'one', 0 = 'zero');

echo \n-- \$input argument: --\n;
var_dump($input);

echo \n-- Result of array_values() --\n;
var_dump(array_values($input));

echo Done;
?

--EXPECTF--
*** Testing array_values() : usage variations ***

-- $input argument: --
array(4) {
  [3]=
  string(5) three
  [2]=
  string(3) two
  [1]=
  string(3) one
  [0]=
  string(4) zero
}

-- Result of array_values() --
array(4) {
  [0]=
  string(5) three
  [1]=
  string(3) two
  [2]=
  string(3) one
  [3]=
  string(4) zero
}
Done
--UEXPECTF--
*** Testing array_values() : usage variations ***

-- $input argument: --
array(4) {
  [3]=
  unicode(5) three
  [2]=
  unicode(3) two
  [1]=
  unicode(3) one
  [0]=
  unicode(4) zero
}

-- Result of array_values() --
array(4) {
  [0]=
  unicode(5) three
  [1]=
  unicode(3) two
  [2]=
  unicode(3) one
  [3]=
  unicode(4) zero
}
Done

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_2) / .project /ext/standard/tests/array array_values_variation7.phpt

2008-02-14 Thread Josie Messa
jmessa  Thu Feb 14 16:15:15 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src.project 
/php-src/ext/standard/tests/array   array_values_variation7.phpt 
  Log:
  - New variation test for array_values()
  

http://cvs.php.net/viewvc.cgi/php-src/.project?view=markuprev=1.1
Index: php-src/.project
+++ php-src/.project

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_values_variation7.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_values_variation7.phpt
+++ php-src/ext/standard/tests/array/array_values_variation7.phpt
--TEST--
Test array_values() function : usage variations - Internal order check
--FILE--
?php
/* Prototype  : array array_values(array $input)
 * Description: Return just the values from the input array 
 * Source code: ext/standard/array.c
 */

/*
 * Check that array_values is re-assigning keys according to the internal order 
of the array,
 * and is not dependant on the \$input argument's keys
 */

echo *** Testing array_values() : usage variations ***\n;

// populate array with 'default' keys in reverse order
$input = array(3 = 'three', 2 = 'two', 1 = 'one', 0 = 'zero');

echo \n-- \$input argument: --\n;
var_dump($input);

echo \n-- Result of array_values() --\n;
var_dump(array_values($input));

echo Done;
?

--EXPECTF--
*** Testing array_values() : usage variations ***

-- $input argument: --
array(4) {
  [3]=
  string(5) three
  [2]=
  string(3) two
  [1]=
  string(3) one
  [0]=
  string(4) zero
}

-- Result of array_values() --
array(4) {
  [0]=
  string(5) three
  [1]=
  string(3) two
  [2]=
  string(3) one
  [3]=
  string(4) zero
}
Done
--UEXPECTF--
*** Testing array_values() : usage variations ***

-- $input argument: --
array(4) {
  [3]=
  unicode(5) three
  [2]=
  unicode(3) two
  [1]=
  unicode(3) one
  [0]=
  unicode(4) zero
}

-- Result of array_values() --
array(4) {
  [0]=
  unicode(5) three
  [1]=
  unicode(3) two
  [2]=
  unicode(3) one
  [3]=
  unicode(4) zero
}
Done

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_2) / .project

2008-02-14 Thread Josie Messa
jmessa  Thu Feb 14 16:20:19 2008 UTC

  Removed files:   (Branch: PHP_5_2)
/php-src.project 
  Log:
  - removing .project file
  

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/standard/tests/array count_basic.phpt count_error.phpt count_variation1.phpt count_variation2.phpt count_variation3.phpt

2008-02-14 Thread Josie Messa
jmessa  Thu Feb 14 16:48:27 2008 UTC

  Added files: 
/php-src/ext/standard/tests/array   count_variation1.phpt 
count_variation2.phpt 
count_variation3.phpt 
count_basic.phpt count_error.phpt 
  Log:
  - New tests for count() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/count_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/count_variation1.phpt
+++ php-src/ext/standard/tests/array/count_variation1.phpt
--TEST--
Test count() function : usage variations - Pass different data types as $var arg
--FILE--
?php
/* Prototype  : int count(mixed $var [, int $mode])
 * Description: Count the number of elements in a variable (usually an array) 
 * Source code: ext/standard/array.c
 */

/*
 * aPass different data types as $var argument to count() to test behaviour
 */

echo *** Testing count() : usage variations ***\n;

//get an unset variable
$unset_var = 10;
unset ($unset_var);

// get a class
class classA
{
  public function __toString() {
return Class A object;
  }
}

// heredoc string
$heredoc = EOT
hello world
EOT;

// get a resource variable
$fp = fopen(__FILE__, r);

// unexpected values to be passed to $var argument
$inputs = array(

   // int data
/*1*/  0,
   1,
   12345,
   -2345,

   // float data
/*5*/  10.5,
   -10.5,
   12.3456789000e10,
   12.3456789000E-10,
   .5,

   // null data
/*10*/ NULL,
   null,

   // boolean data
/*12*/ true,
   false,
   TRUE,
   FALSE,
   
   // empty data
/*16*/ ,
   '',

   // string data
/*18*/ string,
   'string',
   $heredoc,
   
   // object data
/*21*/ new classA(),

   // undefined data
/*22*/ @$undefined_var,

   // unset data
/*23*/ @$unset_var,

   // resource variable
/*24*/ $fp
);

// loop through each element of $inputs to check the behavior of count()
$iterator = 1;
foreach($inputs as $input) {
  echo \n-- Iteration $iterator --\n;
  var_dump( count($input) );
  $iterator++;
};

fclose($fp);

echo Done;
?
--EXPECTF--
*** Testing count() : usage variations ***

-- Iteration 1 --
int(1)

-- Iteration 2 --
int(1)

-- Iteration 3 --
int(1)

-- Iteration 4 --
int(1)

-- Iteration 5 --
int(1)

-- Iteration 6 --
int(1)

-- Iteration 7 --
int(1)

-- Iteration 8 --
int(1)

-- Iteration 9 --
int(1)

-- Iteration 10 --
int(0)

-- Iteration 11 --
int(0)

-- Iteration 12 --
int(1)

-- Iteration 13 --
int(1)

-- Iteration 14 --
int(1)

-- Iteration 15 --
int(1)

-- Iteration 16 --
int(1)

-- Iteration 17 --
int(1)

-- Iteration 18 --
int(1)

-- Iteration 19 --
int(1)

-- Iteration 20 --
int(1)

-- Iteration 21 --
int(1)

-- Iteration 22 --
int(0)

-- Iteration 23 --
int(0)

-- Iteration 24 --
int(1)
Done
--UEXPECTF--
*** Testing count() : usage variations ***

-- Iteration 1 --
int(1)

-- Iteration 2 --
int(1)

-- Iteration 3 --
int(1)

-- Iteration 4 --
int(1)

-- Iteration 5 --
int(1)

-- Iteration 6 --
int(1)

-- Iteration 7 --
int(1)

-- Iteration 8 --
int(1)

-- Iteration 9 --
int(1)

-- Iteration 10 --
int(0)

-- Iteration 11 --
int(0)

-- Iteration 12 --
int(1)

-- Iteration 13 --
int(1)

-- Iteration 14 --
int(1)

-- Iteration 15 --
int(1)

-- Iteration 16 --
int(1)

-- Iteration 17 --
int(1)

-- Iteration 18 --
int(1)

-- Iteration 19 --
int(1)

-- Iteration 20 --
int(1)

-- Iteration 21 --
int(1)

-- Iteration 22 --
int(0)

-- Iteration 23 --
int(0)

-- Iteration 24 --
int(1)
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/count_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/count_variation2.phpt
+++ php-src/ext/standard/tests/array/count_variation2.phpt
--TEST--
Test count() function : usage variations - Pass different data types as $mode 
arg
--FILE--
?php
/* Prototype  : int count(mixed $var [, int $mode])
 * Description: Count the number of elements in a variable (usually an array) 
 * Source code: ext/standard/array.c
 */

/*
 * Pass different data types as $mode argument to count() to test behaviour
 */

echo *** Testing count() : usage variations ***\n;

// Initialise function arguments not being substituted
$var = array(1, 2, array ('one', 'two'));

//get an unset variable
$unset_var = 10;
unset ($unset_var);

// get a class
class classA
{
  public function __toString() {
return Class A object;
  }
}

// heredoc string
$heredoc = EOT
hello world
EOT;

// get a resource variable
$fp = fopen(__FILE__, r);

// unexpected values to be passed to $mode argument
$inputs = array(

   // int data
/*1*/  0,
   1,
   12345,
   -2345,

   // float data
/*5*/  10.5,
   -10.5,
   12.3456789000e10,
   12.3456789000E-10,
   .5,

   // null data
/*10*/ NULL,
   null,

   // boolean data
/*12*/ true,
   false,
   TRUE,
   FALSE,
   
   // empty 

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array count_basic.phpt count_error.phpt count_variation1.phpt count_variation2.phpt count_variation3.phpt

2008-02-14 Thread Josie Messa
jmessa  Thu Feb 14 16:49:17 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   count_variation2.phpt 
count_variation3.phpt 
count_error.phpt count_basic.phpt 
count_variation1.phpt 
  Log:
  - New tests for count() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/count_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/count_variation2.phpt
+++ php-src/ext/standard/tests/array/count_variation2.phpt
--TEST--
Test count() function : usage variations - Pass different data types as $mode 
arg
--FILE--
?php
/* Prototype  : int count(mixed $var [, int $mode])
 * Description: Count the number of elements in a variable (usually an array) 
 * Source code: ext/standard/array.c
 */

/*
 * Pass different data types as $mode argument to count() to test behaviour
 */

echo *** Testing count() : usage variations ***\n;

// Initialise function arguments not being substituted
$var = array(1, 2, array ('one', 'two'));

//get an unset variable
$unset_var = 10;
unset ($unset_var);

// get a class
class classA
{
  public function __toString() {
return Class A object;
  }
}

// heredoc string
$heredoc = EOT
hello world
EOT;

// get a resource variable
$fp = fopen(__FILE__, r);

// unexpected values to be passed to $mode argument
$inputs = array(

   // int data
/*1*/  0,
   1,
   12345,
   -2345,

   // float data
/*5*/  10.5,
   -10.5,
   12.3456789000e10,
   12.3456789000E-10,
   .5,

   // null data
/*10*/ NULL,
   null,

   // boolean data
/*12*/ true,
   false,
   TRUE,
   FALSE,
   
   // empty data
/*16*/ ,
   '',

   // string data
/*18*/ string,
   'string',
   $heredoc,
   
   // object data
/*21*/ new classA(),

   // undefined data
/*22*/ @$undefined_var,

   // unset data
/*23*/ @$unset_var,

   // resource variable
/*24*/ $fp
);

// loop through each element of $inputs to check the behavior of count()
$iterator = 1;
foreach($inputs as $input) {
  echo \n-- Iteration $iterator --\n;
  var_dump( count($var, $input) );
  $iterator++;
};

fclose($fp);

echo Done;
?
--EXPECTF--
*** Testing count() : usage variations ***

-- Iteration 1 --
int(3)

-- Iteration 2 --
int(5)

-- Iteration 3 --
int(3)

-- Iteration 4 --
int(3)

-- Iteration 5 --
int(3)

-- Iteration 6 --
int(3)

-- Iteration 7 --
int(3)

-- Iteration 8 --
int(3)

-- Iteration 9 --
int(3)

-- Iteration 10 --
int(3)

-- Iteration 11 --
int(3)

-- Iteration 12 --
int(5)

-- Iteration 13 --
int(3)

-- Iteration 14 --
int(5)

-- Iteration 15 --
int(3)

-- Iteration 16 --

Warning: count() expects parameter 2 to be long, string given in %s on line %d
NULL

-- Iteration 17 --

Warning: count() expects parameter 2 to be long, string given in %s on line %d
NULL

-- Iteration 18 --

Warning: count() expects parameter 2 to be long, string given in %s on line %d
NULL

-- Iteration 19 --

Warning: count() expects parameter 2 to be long, string given in %s on line %d
NULL

-- Iteration 20 --

Warning: count() expects parameter 2 to be long, string given in %s on line %d
NULL

-- Iteration 21 --

Warning: count() expects parameter 2 to be long, object given in %s on line %d
NULL

-- Iteration 22 --
int(3)

-- Iteration 23 --
int(3)

-- Iteration 24 --

Warning: count() expects parameter 2 to be long, resource given in %s on line %d
NULL
Done
--UEXPECTF--
*** Testing count() : usage variations ***

-- Iteration 1 --
int(3)

-- Iteration 2 --
int(5)

-- Iteration 3 --
int(3)

-- Iteration 4 --
int(3)

-- Iteration 5 --
int(3)

-- Iteration 6 --
int(3)

-- Iteration 7 --
int(3)

-- Iteration 8 --
int(3)

-- Iteration 9 --
int(3)

-- Iteration 10 --
int(3)

-- Iteration 11 --
int(3)

-- Iteration 12 --
int(5)

-- Iteration 13 --
int(3)

-- Iteration 14 --
int(5)

-- Iteration 15 --
int(3)

-- Iteration 16 --

Warning: count() expects parameter 2 to be long, Unicode string given in %s on 
line %d
NULL

-- Iteration 17 --

Warning: count() expects parameter 2 to be long, Unicode string given in %s on 
line %d
NULL

-- Iteration 18 --

Warning: count() expects parameter 2 to be long, Unicode string given in %s on 
line %d
NULL

-- Iteration 19 --

Warning: count() expects parameter 2 to be long, Unicode string given in %s on 
line %d
NULL

-- Iteration 20 --

Warning: count() expects parameter 2 to be long, Unicode string given in %s on 
line %d
NULL

-- Iteration 21 --

Warning: count() expects parameter 2 to be long, object given in %s on line %d
NULL

-- Iteration 22 --
int(3)

-- Iteration 23 --
int(3)

-- Iteration 24 --

Warning: count() expects parameter 2 to be long, resource given in %s on line %d
NULL
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/count_variation3.phpt?view=markuprev=1.1
Index: 

[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array count_basic.phpt count_error.phpt count_variation1.phpt count_variation2.phpt count_variation3.phpt

2008-02-14 Thread Josie Messa
jmessa  Thu Feb 14 16:49:58 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   count_error.phpt 
count_variation1.phpt 
count_variation3.phpt 
count_basic.phpt 
count_variation2.phpt 
  Log:
  - New tests for count() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/count_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/count_error.phpt
+++ php-src/ext/standard/tests/array/count_error.phpt
--TEST--
Test count() function : error conditions - pass incorrect number of args
--FILE--
?php
/* Prototype  : int count(mixed var [, int mode])
 * Description: Count the number of elements in a variable (usually an array) 
 * Source code: ext/standard/array.c
 */

/*
 * Pass incorrect number of arguments to count() to test behaviour
 */

echo *** Testing count() : error conditions ***\n;

// Zero arguments
echo \n-- Testing count() function with Zero arguments --\n;
var_dump( count() );

//Test count with one more than the expected number of arguments
echo \n-- Testing count() function with more than expected no. of arguments 
--\n;
$var = 1;
$mode = 10;
$extra_arg = 10;
var_dump( count($var, $mode, $extra_arg) );

echo Done;
?
--EXPECTF--
*** Testing count() : error conditions ***

-- Testing count() function with Zero arguments --

Warning: count() expects at least 1 parameter, 0 given in %s on line %d
NULL

-- Testing count() function with more than expected no. of arguments --

Warning: count() expects at most 2 parameters, 3 given in %s on line %d
NULL
Done
--UEXPECTF--
*** Testing count() : error conditions ***

-- Testing count() function with Zero arguments --

Warning: count() expects at least 1 parameter, 0 given in %s on line %d
NULL

-- Testing count() function with more than expected no. of arguments --

Warning: count() expects at most 2 parameters, 3 given in %s on line %d
NULL
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/count_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/count_variation1.phpt
+++ php-src/ext/standard/tests/array/count_variation1.phpt
--TEST--
Test count() function : usage variations - Pass different data types as $var arg
--FILE--
?php
/* Prototype  : int count(mixed $var [, int $mode])
 * Description: Count the number of elements in a variable (usually an array) 
 * Source code: ext/standard/array.c
 */

/*
 * aPass different data types as $var argument to count() to test behaviour
 */

echo *** Testing count() : usage variations ***\n;

//get an unset variable
$unset_var = 10;
unset ($unset_var);

// get a class
class classA
{
  public function __toString() {
return Class A object;
  }
}

// heredoc string
$heredoc = EOT
hello world
EOT;

// get a resource variable
$fp = fopen(__FILE__, r);

// unexpected values to be passed to $var argument
$inputs = array(

   // int data
/*1*/  0,
   1,
   12345,
   -2345,

   // float data
/*5*/  10.5,
   -10.5,
   12.3456789000e10,
   12.3456789000E-10,
   .5,

   // null data
/*10*/ NULL,
   null,

   // boolean data
/*12*/ true,
   false,
   TRUE,
   FALSE,
   
   // empty data
/*16*/ ,
   '',

   // string data
/*18*/ string,
   'string',
   $heredoc,
   
   // object data
/*21*/ new classA(),

   // undefined data
/*22*/ @$undefined_var,

   // unset data
/*23*/ @$unset_var,

   // resource variable
/*24*/ $fp
);

// loop through each element of $inputs to check the behavior of count()
$iterator = 1;
foreach($inputs as $input) {
  echo \n-- Iteration $iterator --\n;
  var_dump( count($input) );
  $iterator++;
};

fclose($fp);

echo Done;
?
--EXPECTF--
*** Testing count() : usage variations ***

-- Iteration 1 --
int(1)

-- Iteration 2 --
int(1)

-- Iteration 3 --
int(1)

-- Iteration 4 --
int(1)

-- Iteration 5 --
int(1)

-- Iteration 6 --
int(1)

-- Iteration 7 --
int(1)

-- Iteration 8 --
int(1)

-- Iteration 9 --
int(1)

-- Iteration 10 --
int(0)

-- Iteration 11 --
int(0)

-- Iteration 12 --
int(1)

-- Iteration 13 --
int(1)

-- Iteration 14 --
int(1)

-- Iteration 15 --
int(1)

-- Iteration 16 --
int(1)

-- Iteration 17 --
int(1)

-- Iteration 18 --
int(1)

-- Iteration 19 --
int(1)

-- Iteration 20 --
int(1)

-- Iteration 21 --
int(1)

-- Iteration 22 --
int(0)

-- Iteration 23 --
int(0)

-- Iteration 24 --
int(1)
Done
--UEXPECTF--
*** Testing count() : usage variations ***

-- Iteration 1 --
int(1)

-- Iteration 2 --
int(1)

-- Iteration 3 --
int(1)

-- Iteration 4 --
int(1)

-- Iteration 5 --
int(1)

-- Iteration 6 --
int(1)

-- Iteration 7 --
int(1)

-- Iteration 8 --
int(1)

-- Iteration 9 --
int(1)

-- Iteration 10 --
int(0)

-- Iteration 11 --
int(0)

-- Iteration 12 --
int(1)

-- Iteration 13 --
int(1)

-- 

[PHP-CVS] cvs: php-src /ext/standard/tests/array array_key_exists_basic.phpt array_key_exists_error.phpt array_key_exists_object1.phpt array_key_exists_object2.phpt array_key_exists_variation1.phpt ar

2008-02-13 Thread Josie Messa
jmessa  Wed Feb 13 13:12:06 2008 UTC

  Added files: 
/php-src/ext/standard/tests/array   array_key_exists_error.phpt 
array_key_exists_variation5.phpt 
array_key_exists_variation7.phpt 
array_key_exists_variation3.phpt 
array_key_exists_object2.phpt 
array_key_exists_object1.phpt 
array_key_exists_variation8.phpt 
array_key_exists_basic.phpt 
array_key_exists_variation4.phpt 
array_key_exists_variation6.phpt 
array_key_exists_variation1.phpt 
array_key_exists_variation2.phpt 
  Log:
  - committig tests for array_key_exists() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_key_exists_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_key_exists_error.phpt
+++ php-src/ext/standard/tests/array/array_key_exists_error.phpt
--TEST--
Test array_key_exists() function : error conditions - Pass incorrect number of 
args
--FILE--
?php
/* Prototype  : bool array_key_exists(mixed $key, array $search)
 * Description: Checks if the given key or index exists in the array 
 * Source code: ext/standard/array.c
 * Alias to functions: key_exists
 */

/*
 * Pass incorrect number of arguments to array_key_exists() to test behaviour
 */

echo *** Testing array_key_exists() : error conditions ***\n;

//Test array_key_exists with one more than the expected number of arguments
echo \n-- Testing array_key_exists() function with more than expected no. of 
arguments --\n;
$key = 1;
$search = array(1, 2);
$extra_arg = 10;
var_dump( array_key_exists($key, $search, $extra_arg) );

// Testing array_key_exists with one less than the expected number of arguments
echo \n-- Testing array_key_exists() function with less than expected no. of 
arguments --\n;
$key = 1;
var_dump( array_key_exists($key) );

echo Done;
?

--EXPECTF--
*** Testing array_key_exists() : error conditions ***

-- Testing array_key_exists() function with more than expected no. of arguments 
--

Warning: array_key_exists() expects exactly 2 parameters, 3 given in %s on line 
%d
NULL

-- Testing array_key_exists() function with less than expected no. of arguments 
--

Warning: array_key_exists() expects exactly 2 parameters, 1 given in %s on line 
%d
NULL
Done
--UEXPECTF--
*** Testing array_key_exists() : error conditions ***

-- Testing array_key_exists() function with more than expected no. of arguments 
--

Warning: array_key_exists() expects exactly 2 parameters, 3 given in %s on line 
%d
NULL

-- Testing array_key_exists() function with less than expected no. of arguments 
--

Warning: array_key_exists() expects exactly 2 parameters, 1 given in %s on line 
%d
NULL
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_key_exists_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_key_exists_variation5.phpt
+++ php-src/ext/standard/tests/array/array_key_exists_variation5.phpt
--TEST--
Test array_key_exists() function : usage variations - multidimensional arrays
--FILE--
?php
/* Prototype  : bool array_key_exists(mixed $key, array $search)
 * Description: Checks if the given key or index exists in the array 
 * Source code: ext/standard/array.c
 * Alias to functions: key_exists
 */

/*
 * Test how array_key_exists() behaves with multi-dimensional arrays
 */

echo *** Testing array_key_exists() : usage variations ***\n;

$multi_array = array ('zero' = 'val1', 
  'one' = 'val2', 
  'sub1' = array (1, 2, 3));

echo \n-- Attempt to match key in sub-array --\n;
// this key is in the sub-array
var_dump(array_key_exists(0, $multi_array));

echo \n-- \$search arg points to sub-array --\n;
var_dump(array_key_exists(0, $multi_array['sub1']));

echo Done;
?

--EXPECTF--
*** Testing array_key_exists() : usage variations ***

-- Attempt to match key in sub-array --
bool(false)

-- $search arg points to sub-array --
bool(true)
Done
--UEXPECTF--
*** Testing array_key_exists() : usage variations ***

-- Attempt to match key in sub-array --
bool(false)

-- $search arg points to sub-array --
bool(true)
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_key_exists_variation7.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_key_exists_variation7.phpt
+++ php-src/ext/standard/tests/array/array_key_exists_variation7.phpt
--TEST--
Test array_key_exists() function : usage variations - position of internal 
array pointer
--FILE--
?php
/* Prototype  : bool array_key_exists(mixed $key, array $search)
 * Description: Checks if the given key or index 

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array array_key_exists_basic.phpt array_key_exists_error.phpt array_key_exists_object1.phpt array_key_exists_object2.phpt array_key_exists_variation

2008-02-13 Thread Josie Messa
jmessa  Wed Feb 13 13:15:11 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   array_key_exists_object2.phpt 
array_key_exists_variation6.phpt 
array_key_exists_object1.phpt 
array_key_exists_error.phpt 
array_key_exists_variation8.phpt 
array_key_exists_variation7.phpt 
array_key_exists_variation2.phpt 
array_key_exists_basic.phpt 
array_key_exists_variation4.phpt 
array_key_exists_variation3.phpt 
array_key_exists_variation5.phpt 
array_key_exists_variation1.phpt 
  Log:
  - committing tests for array_key_exists() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_key_exists_object2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_key_exists_object2.phpt
+++ php-src/ext/standard/tests/array/array_key_exists_object2.phpt
--TEST--
Test array_key_exists() function : object functionality - different visibilities
--FILE--
?php
/* Prototype  : bool array_key_exists(mixed $key, array $search)
 * Description: Checks if the given key or index exists in the array 
 * Source code: ext/standard/array.c
 * Alias to functions: key_exists
 */

/*
 * Pass array_key_exists() an object with private and protected properties
 */

echo *** Testing array_key_exists() : object functionality ***\n;

class myClass {
public $var1;
protected $var2;
private $var3;

function __construct($a, $b, $c = null) {
$this-var1 = $a;
$this-var2 = $b;
if (!is_null($c)) {
$this-var3 = $c;
}
}
}

echo \n-- Do not assign a value to \$class1-var3 --\n;
$class1 = new myClass ('a', 'b');
echo \$key = var1:\n;
var_dump(array_key_exists('var1', $class1));
echo \$key = var2:\n;
var_dump(array_key_exists('var2', $class1));
echo \$key = var3:\n;
var_dump(array_key_exists('var3', $class1));
echo \$class1:\n;
var_dump($class1);

echo \n-- Assign a value to \$class2-var3 --\n;
$class2 = new myClass('x', 'y', 'z');
echo \$key = var3:\n;
var_dump(array_key_exists('var3', $class2));
echo \$class2:\n;
var_dump($class2);

echo Done;
?

--EXPECTF--
*** Testing array_key_exists() : object functionality ***

-- Do not assign a value to $class1-var3 --
$key = var1:
bool(true)
$key = var2:
bool(false)
$key = var3:
bool(false)
$class1:
object(myClass)#%d (3) {
  [var1]=
  string(1) a
  [var2:protected]=
  string(1) b
  [var3:myClass:private]=
  NULL
}

-- Assign a value to $class2-var3 --
$key = var3:
bool(false)
$class2:
object(myClass)#%d (3) {
  [var1]=
  string(1) x
  [var2:protected]=
  string(1) y
  [var3:myClass:private]=
  string(1) z
}
Done
--UEXPECTF--
*** Testing array_key_exists() : object functionality ***

-- Do not assign a value to $class1-var3 --
$key = var1:
bool(true)
$key = var2:
bool(false)
$key = var3:
bool(false)
$class1:
object(myClass)#1 (3) {
  [uvar1]=
  unicode(1) a
  [uvar2:protected]=
  unicode(1) b
  [uvar3:umyClass:private]=
  NULL
}

-- Assign a value to $class2-var3 --
$key = var3:
bool(false)
$class2:
object(myClass)#2 (3) {
  [uvar1]=
  unicode(1) x
  [uvar2:protected]=
  unicode(1) y
  [uvar3:umyClass:private]=
  unicode(1) z
}
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_key_exists_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_key_exists_variation6.phpt
+++ php-src/ext/standard/tests/array/array_key_exists_variation6.phpt
--TEST--
Test array_key_exists() function : usage variations -  equality test for 
certain data types
--FILE--
?php
/* Prototype  : bool array_key_exists(mixed $key, array $search)
 * Description: Checks if the given key or index exists in the array 
 * Source code: ext/standard/array.c
 * Alias to functions: key_exists
 */

/*
 * Pass certain data types that can be taken as a key in an array 
 * and test whether array_key_exists(() thinks they are equal and therefore
 * returns true when searching for them
 */

echo *** Testing array_key_exists() : usage variations ***\n;

$unset = 10;
unset($unset);
$array = array ('null' = null, 
'NULL' = NULL, 
'empty single quoted string' = '', 
empty double quoted string = , 
'undefined variable' = @$undefined,
'unset variable' = @$unset);

//iterate through original array
foreach($array as $name = $input) {
$iterator = 1;
echo \n-- Key in \$search array is : $name --\n;
$search[$input] = 'test';

//iterate through array 

[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array array_key_exists_basic.phpt array_key_exists_error.phpt array_key_exists_object1.phpt array_key_exists_object2.phpt array_key_exists_variation

2008-02-13 Thread Josie Messa
jmessa  Wed Feb 13 13:16:21 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   array_key_exists_variation4.phpt 
array_key_exists_variation5.phpt 
array_key_exists_variation3.phpt 
array_key_exists_object1.phpt 
array_key_exists_variation2.phpt 
array_key_exists_variation8.phpt 
array_key_exists_variation7.phpt 
array_key_exists_object2.phpt 
array_key_exists_error.phpt 
array_key_exists_basic.phpt 
array_key_exists_variation6.phpt 
array_key_exists_variation1.phpt 
  Log:
  - committing tests for array_key_exists() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_key_exists_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_key_exists_variation4.phpt
+++ php-src/ext/standard/tests/array/array_key_exists_variation4.phpt
--TEST--
Test array_key_exists() function : usage variations - referenced variables
--FILE--
?php
/* Prototype  : bool array_key_exists(mixed $key, array $search)
 * Description: Checks if the given key or index exists in the array 
 * Source code: ext/standard/array.c
 * Alias to functions: key_exists
 */

/*
 * Pass referenced variables as arguments to array_key_exists() to test 
behaviour
 */

echo *** Testing array_key_exists() : usage variations ***\n;

$array = array('one' = 1, 'two' = 2, 'three' = 3);

echo \n-- \$search is a reference to \$array --\n;
$search = $array;
var_dump(array_key_exists('one', $search));

echo \n-- \$key is a referenced variable --\n;
$key = 'two';
var_dump(array_key_exists($key, $array));

echo \n-- Both arguments are referenced variables --\n;
var_dump(array_key_exists($key, $array));

echo Done;
?

--EXPECTF--
Strict Standards: Call-time pass-by-reference has been deprecated in %s on line 
%d

Strict Standards: Call-time pass-by-reference has been deprecated in %s on line 
%d

Strict Standards: Call-time pass-by-reference has been deprecated in %s on line 
%d
*** Testing array_key_exists() : usage variations ***

-- $search is a reference to $array --
bool(true)

-- $key is a referenced variable --
bool(true)

-- Both arguments are referenced variables --
bool(true)
Done
--UEXPECTF--
Strict Standards: Call-time pass-by-reference has been deprecated in %s on line 
%d

Strict Standards: Call-time pass-by-reference has been deprecated in %s on line 
%d

Strict Standards: Call-time pass-by-reference has been deprecated in %s on line 
%d
*** Testing array_key_exists() : usage variations ***

-- $search is a reference to $array --
bool(true)

-- $key is a referenced variable --
bool(true)

-- Both arguments are referenced variables --
bool(true)
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_key_exists_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_key_exists_variation5.phpt
+++ php-src/ext/standard/tests/array/array_key_exists_variation5.phpt
--TEST--
Test array_key_exists() function : usage variations - multidimensional arrays
--FILE--
?php
/* Prototype  : bool array_key_exists(mixed $key, array $search)
 * Description: Checks if the given key or index exists in the array 
 * Source code: ext/standard/array.c
 * Alias to functions: key_exists
 */

/*
 * Test how array_key_exists() behaves with multi-dimensional arrays
 */

echo *** Testing array_key_exists() : usage variations ***\n;

$multi_array = array ('zero' = 'val1', 
  'one' = 'val2', 
  'sub1' = array (1, 2, 3));

echo \n-- Attempt to match key in sub-array --\n;
// this key is in the sub-array
var_dump(array_key_exists(0, $multi_array));

echo \n-- \$search arg points to sub-array --\n;
var_dump(array_key_exists(0, $multi_array['sub1']));

echo Done;
?

--EXPECTF--
*** Testing array_key_exists() : usage variations ***

-- Attempt to match key in sub-array --
bool(false)

-- $search arg points to sub-array --
bool(true)
Done
--UEXPECTF--
*** Testing array_key_exists() : usage variations ***

-- Attempt to match key in sub-array --
bool(false)

-- $search arg points to sub-array --
bool(true)
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_key_exists_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_key_exists_variation3.phpt
+++ php-src/ext/standard/tests/array/array_key_exists_variation3.phpt
--TEST--
Test array_key_exists() function : usage variations - floats and casting to ints
--FILE--
?php
/* Prototype  : bool array_key_exists(mixed $key, array $search)
 * Description: Checks if the given key 

[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array array_merge_basic.phpt array_merge_error.phpt array_merge_variation1.phpt array_merge_variation10.phpt array_merge_variation2.phpt array_merge

2008-02-13 Thread Josie Messa
jmessa  Wed Feb 13 14:20:58 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   array_merge_variation9.phpt 
array_merge_variation10.phpt 
array_merge_variation1.phpt 
array_merge_variation3.phpt 
array_merge_variation8.phpt 
array_merge_error.phpt 
array_merge_variation5.phpt 
array_merge_variation4.phpt 
array_merge_variation2.phpt 
array_merge_basic.phpt 
array_merge_variation7.phpt 
array_merge_variation6.phpt 
  Log:
  - committing tests for array_merge() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_merge_variation9.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_merge_variation9.phpt
+++ php-src/ext/standard/tests/array/array_merge_variation9.phpt
--TEST--
Test array_merge() function : usage variations - referenced variables
--FILE--
?php
/* Prototype  : array array_merge(array $arr1, array $arr2 [, array $...])
 * Description: Merges elements from passed arrays into one array 
 * Source code: ext/standard/array.c
 */

/* Test array_merge() when:
 * 1. Passed an array made up of referenced variables
 * 2. Passed an array as the first argument and a reference to that array as 
the second.
 */

echo *** Testing array_merge() : usage variations ***\n;

$val1 = 'foo';
$val2 = 'bar';
$val3 = 'baz';

$arr1 = array($val1, $val2, $val3);
$arr2 = array('key1' = 'val1', 'key2' = 'val2', 'key3' = 'val3');

echo \n-- Merge an array made up of referenced variables to an assoc. array 
--\n;
var_dump(array_merge($arr1, $arr2));
var_dump(array_merge($arr2, $arr1));

$val2 = 'hello world';

echo \n-- Change \$val2 --\n;
var_dump(array_merge($arr1, $arr2));
var_dump(array_merge($arr2, $arr1));

echo \n-- Merge an array and a reference to the first array --\n;
var_dump(array_merge($arr2, $arr2));

echo Done;
?

--EXPECTF--
Strict Standards: Call-time pass-by-reference has been deprecated in %s on line 
%d
*** Testing array_merge() : usage variations ***

-- Merge an array made up of referenced variables to an assoc. array --
array(6) {
  [0]=
  string(3) foo
  [1]=
  string(3) bar
  [2]=
  string(3) baz
  [key1]=
  string(4) val1
  [key2]=
  string(4) val2
  [key3]=
  string(4) val3
}
array(6) {
  [key1]=
  string(4) val1
  [key2]=
  string(4) val2
  [key3]=
  string(4) val3
  [0]=
  string(3) foo
  [1]=
  string(3) bar
  [2]=
  string(3) baz
}

-- Change $val2 --
array(6) {
  [0]=
  string(3) foo
  [1]=
  string(11) hello world
  [2]=
  string(3) baz
  [key1]=
  string(4) val1
  [key2]=
  string(4) val2
  [key3]=
  string(4) val3
}
array(6) {
  [key1]=
  string(4) val1
  [key2]=
  string(4) val2
  [key3]=
  string(4) val3
  [0]=
  string(3) foo
  [1]=
  string(11) hello world
  [2]=
  string(3) baz
}

-- Merge an array and a reference to the first array --
array(3) {
  [key1]=
  string(4) val1
  [key2]=
  string(4) val2
  [key3]=
  string(4) val3
}
Done
--UEXPECTF--
Strict Standards: Call-time pass-by-reference has been deprecated in %s on line 
%d
*** Testing array_merge() : usage variations ***

-- Merge an array made up of referenced variables to an assoc. array --
array(6) {
  [0]=
  unicode(3) foo
  [1]=
  unicode(3) bar
  [2]=
  unicode(3) baz
  [ukey1]=
  unicode(4) val1
  [ukey2]=
  unicode(4) val2
  [ukey3]=
  unicode(4) val3
}
array(6) {
  [ukey1]=
  unicode(4) val1
  [ukey2]=
  unicode(4) val2
  [ukey3]=
  unicode(4) val3
  [0]=
  unicode(3) foo
  [1]=
  unicode(3) bar
  [2]=
  unicode(3) baz
}

-- Change $val2 --
array(6) {
  [0]=
  unicode(3) foo
  [1]=
  unicode(11) hello world
  [2]=
  unicode(3) baz
  [ukey1]=
  unicode(4) val1
  [ukey2]=
  unicode(4) val2
  [ukey3]=
  unicode(4) val3
}
array(6) {
  [ukey1]=
  unicode(4) val1
  [ukey2]=
  unicode(4) val2
  [ukey3]=
  unicode(4) val3
  [0]=
  unicode(3) foo
  [1]=
  unicode(11) hello world
  [2]=
  unicode(3) baz
}

-- Merge an array and a reference to the first array --
array(3) {
  [ukey1]=
  unicode(4) val1
  [ukey2]=
  unicode(4) val2
  [ukey3]=
  unicode(4) val3
}
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_merge_variation10.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_merge_variation10.phpt
+++ php-src/ext/standard/tests/array/array_merge_variation10.phpt
--TEST--
Test array_merge() function : usage variations - position of internal array 
pointer
--FILE--
?php
/* Prototype  : array array_merge(array $arr1, array $arr2 [, array $...])
 * Description: Merges elements from passed arrays into one array 
 * Source code: ext/standard/array.c
 */

/* 
 * 

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array array_merge_basic.phpt array_merge_error.phpt array_merge_variation1.phpt array_merge_variation10.phpt array_merge_variation2.phpt array_merge

2008-02-13 Thread Josie Messa
jmessa  Wed Feb 13 14:20:22 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   array_merge_variation5.phpt 
array_merge_variation9.phpt 
array_merge_variation7.phpt 
array_merge_variation6.phpt 
array_merge_variation10.phpt 
array_merge_variation8.phpt 
array_merge_variation3.phpt 
array_merge_error.phpt 
array_merge_variation1.phpt 
array_merge_basic.phpt 
array_merge_variation2.phpt 
array_merge_variation4.phpt 
  Log:
  - committing tests for array_merge() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_merge_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_merge_variation5.phpt
+++ php-src/ext/standard/tests/array/array_merge_variation5.phpt
--TEST--
Test array_merge() function : usage variations - numeric keys
--FILE--
?php
/* Prototype  : array array_merge(array $arr1, array $arr2 [, array $...])
 * Description: Merges elements from passed arrays into one array 
 * Source code: ext/standard/array.c
 */

/*
 * Pass array_merge() arrays with only numeric keys to test behaviour.
 * $arr2 contains a duplicate element to $arr1.
 */

echo *** Testing array_merge() : usage variations ***\n;

//numeric keys
$arr1 = array('zero', 'one', 'two', 'three');
$arr2 = array(1 = 'one', 20 = 'twenty', 30 = 'thirty');

var_dump(array_merge($arr1, $arr2));
var_dump(array_merge($arr2, $arr1));

echo Done;
?

--EXPECTF--
*** Testing array_merge() : usage variations ***
array(7) {
  [0]=
  string(4) zero
  [1]=
  string(3) one
  [2]=
  string(3) two
  [3]=
  string(5) three
  [4]=
  string(3) one
  [5]=
  string(6) twenty
  [6]=
  string(6) thirty
}
array(7) {
  [0]=
  string(3) one
  [1]=
  string(6) twenty
  [2]=
  string(6) thirty
  [3]=
  string(4) zero
  [4]=
  string(3) one
  [5]=
  string(3) two
  [6]=
  string(5) three
}
Done
--UEXPECTF--
*** Testing array_merge() : usage variations ***
array(7) {
  [0]=
  unicode(4) zero
  [1]=
  unicode(3) one
  [2]=
  unicode(3) two
  [3]=
  unicode(5) three
  [4]=
  unicode(3) one
  [5]=
  unicode(6) twenty
  [6]=
  unicode(6) thirty
}
array(7) {
  [0]=
  unicode(3) one
  [1]=
  unicode(6) twenty
  [2]=
  unicode(6) thirty
  [3]=
  unicode(4) zero
  [4]=
  unicode(3) one
  [5]=
  unicode(3) two
  [6]=
  unicode(5) three
}
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_merge_variation9.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_merge_variation9.phpt
+++ php-src/ext/standard/tests/array/array_merge_variation9.phpt
--TEST--
Test array_merge() function : usage variations - referenced variables
--FILE--
?php
/* Prototype  : array array_merge(array $arr1, array $arr2 [, array $...])
 * Description: Merges elements from passed arrays into one array 
 * Source code: ext/standard/array.c
 */

/* Test array_merge() when:
 * 1. Passed an array made up of referenced variables
 * 2. Passed an array as the first argument and a reference to that array as 
the second.
 */

echo *** Testing array_merge() : usage variations ***\n;

$val1 = 'foo';
$val2 = 'bar';
$val3 = 'baz';

$arr1 = array($val1, $val2, $val3);
$arr2 = array('key1' = 'val1', 'key2' = 'val2', 'key3' = 'val3');

echo \n-- Merge an array made up of referenced variables to an assoc. array 
--\n;
var_dump(array_merge($arr1, $arr2));
var_dump(array_merge($arr2, $arr1));

$val2 = 'hello world';

echo \n-- Change \$val2 --\n;
var_dump(array_merge($arr1, $arr2));
var_dump(array_merge($arr2, $arr1));

echo \n-- Merge an array and a reference to the first array --\n;
var_dump(array_merge($arr2, $arr2));

echo Done;
?

--EXPECTF--
Strict Standards: Call-time pass-by-reference has been deprecated in %s on line 
%d
*** Testing array_merge() : usage variations ***

-- Merge an array made up of referenced variables to an assoc. array --
array(6) {
  [0]=
  string(3) foo
  [1]=
  string(3) bar
  [2]=
  string(3) baz
  [key1]=
  string(4) val1
  [key2]=
  string(4) val2
  [key3]=
  string(4) val3
}
array(6) {
  [key1]=
  string(4) val1
  [key2]=
  string(4) val2
  [key3]=
  string(4) val3
  [0]=
  string(3) foo
  [1]=
  string(3) bar
  [2]=
  string(3) baz
}

-- Change $val2 --
array(6) {
  [0]=
  string(3) foo
  [1]=
  string(11) hello world
  [2]=
  string(3) baz
  [key1]=
  string(4) val1
  [key2]=
  string(4) val2
  [key3]=
  string(4) val3
}
array(6) {
  [key1]=
  string(4) val1
  [key2]=
  string(4) val2
  [key3]=
  string(4) val3
  [0]=
  string(3) foo
  [1]=
  string(11) hello world
  [2]=
  string(3) baz
}

-- Merge an array and a 

[PHP-CVS] cvs: php-src /ext/standard/tests/array array_merge_basic.phpt array_merge_error.phpt array_merge_variation1.phpt array_merge_variation10.phpt array_merge_variation2.phpt array_merge_variatio

2008-02-13 Thread Josie Messa
jmessa  Wed Feb 13 14:19:37 2008 UTC

  Added files: 
/php-src/ext/standard/tests/array   array_merge_variation1.phpt 
array_merge_variation5.phpt 
array_merge_variation2.phpt 
array_merge_variation9.phpt 
array_merge_basic.phpt 
array_merge_variation8.phpt 
array_merge_variation4.phpt 
array_merge_variation7.phpt 
array_merge_variation6.phpt 
array_merge_variation3.phpt 
array_merge_error.phpt 
array_merge_variation10.phpt 
  Log:
  - committing tests for array_merge() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_merge_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_merge_variation1.phpt
+++ php-src/ext/standard/tests/array/array_merge_variation1.phpt
--TEST--
Test array_merge() function : usage variations - Pass different data types to 
$arr1 arg
--FILE--
?php
/* Prototype  : array array_merge(array $arr1, array $arr2 [, array $...])
 * Description: Merges elements from passed arrays into one array 
 * Source code: ext/standard/array.c
 */

/*
 * Pass different data types as $arr1 argument to test behaviour
 */

echo *** Testing array_merge() : usage variations ***\n;

// Initialise function arguments not being substituted
$arr2 = array (1, 2);

//get an unset variable
$unset_var = 10;
unset ($unset_var);

// get a class
class classA
{
  public function __toString() {
return Class A object;
  }
}

// heredoc string
$heredoc = EOT
hello world
EOT;

// get a resource variable
$fp = fopen(__FILE__, r);

// unexpected values to be passed to $arr1 argument
$inputs = array(

   // int data
/*1*/  0,
   1,
   12345,
   -2345,

   // float data
/*5*/  10.5,
   -10.5,
   12.3456789000e10,
   12.3456789000E-10,
   .5,

   // null data
/*10*/ NULL,
   null,

   // boolean data
/*12*/ true,
   false,
   TRUE,
   FALSE,
   
   // empty data
/*16*/ ,
   '',
   array(),

   // string data
/*19*/ string,
   'string',
   $heredoc,
   
   // object data
/*22*/ new classA(),

   // undefined data
/*23*/ @$undefined_var,

   // unset data
/*24*/ @$unset_var,

   // resource variable
/*25*/ $fp
);

// loop through each element of $inputs to check the behavior of array_merge()
$iterator = 1;
foreach($inputs as $input) {
  echo \n-- Iteration $iterator --\n;
  var_dump( array_merge($input, $arr2) );
  $iterator++;
};

fclose($fp);

echo Done;
?

--EXPECTF--
*** Testing array_merge() : usage variations ***

-- Iteration 1 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 2 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 3 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 4 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 5 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 6 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 7 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 8 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 9 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 10 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 11 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 12 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 13 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 14 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 15 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 16 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 17 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 18 --
array(2) {
  [0]=
  int(1)
  [1]=
  int(2)
}

-- Iteration 19 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 20 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 21 --

Warning: array_merge(): Argument #1 is not an array in %s on line %d
NULL

-- Iteration 22 --

Warning: array_merge(): Argument #1 is not an 

[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array array_push_basic.phpt array_push_error1.phpt array_push_error2.phpt array_push_variation1.phpt array_push_variation2.phpt array_push_variation

2008-02-13 Thread Josie Messa
jmessa  Wed Feb 13 16:12:48 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   array_push_variation6.phpt 
array_push_basic.phpt 
array_push_variation1.phpt 
array_push_variation2.phpt 
array_push_variation5.phpt 
array_push_variation4.phpt 
array_push_variation3.phpt 
array_push_error1.phpt 
array_push_error2.phpt 
  Log:
  - New tests for array_push() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_variation6.phpt
+++ php-src/ext/standard/tests/array/array_push_variation6.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_basic.phpt
+++ php-src/ext/standard/tests/array/array_push_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_variation1.phpt
+++ php-src/ext/standard/tests/array/array_push_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_variation2.phpt
+++ php-src/ext/standard/tests/array/array_push_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_variation5.phpt
+++ php-src/ext/standard/tests/array/array_push_variation5.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_variation4.phpt
+++ php-src/ext/standard/tests/array/array_push_variation4.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_variation3.phpt
+++ php-src/ext/standard/tests/array/array_push_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_error1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_error1.phpt
+++ php-src/ext/standard/tests/array/array_push_error1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_error2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_error2.phpt
+++ php-src/ext/standard/tests/array/array_push_error2.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array array_push_basic.phpt array_push_error1.phpt array_push_error2.phpt array_push_variation1.phpt array_push_variation2.phpt array_push_variation

2008-02-13 Thread Josie Messa
jmessa  Wed Feb 13 16:10:42 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   array_push_variation6.phpt 
array_push_variation4.phpt 
array_push_variation1.phpt 
array_push_basic.phpt 
array_push_variation5.phpt 
array_push_variation2.phpt 
array_push_error1.phpt 
array_push_variation3.phpt 
array_push_error2.phpt 
  Log:
  - New tests for array_push() function
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_variation6.phpt
+++ php-src/ext/standard/tests/array/array_push_variation6.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_variation4.phpt
+++ php-src/ext/standard/tests/array/array_push_variation4.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_variation1.phpt
+++ php-src/ext/standard/tests/array/array_push_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_basic.phpt
+++ php-src/ext/standard/tests/array/array_push_basic.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_variation5.phpt
+++ php-src/ext/standard/tests/array/array_push_variation5.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_variation2.phpt
+++ php-src/ext/standard/tests/array/array_push_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_error1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_error1.phpt
+++ php-src/ext/standard/tests/array/array_push_error1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_variation3.phpt
+++ php-src/ext/standard/tests/array/array_push_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_error2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_push_error2.phpt
+++ php-src/ext/standard/tests/array/array_push_error2.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/standard/tests/array array_push_basic.phpt array_push_error1.phpt array_push_error2.phpt array_push_variation1.phpt array_push_variation2.phpt array_push_variation3.phpt ar

2008-02-13 Thread Josie Messa
jmessa  Wed Feb 13 16:14:02 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/array   array_push_variation2.phpt 
array_push_basic.phpt 
array_push_variation1.phpt 
array_push_error2.phpt 
array_push_error1.phpt 
array_push_variation4.phpt 
array_push_variation6.phpt 
array_push_variation5.phpt 
array_push_variation3.phpt 
  Log:
  - New tests for array_push() function
  http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_variation2.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/array/array_push_variation2.phpt
diff -u /dev/null 
php-src/ext/standard/tests/array/array_push_variation2.phpt:1.2
--- /dev/null   Wed Feb 13 16:14:02 2008
+++ php-src/ext/standard/tests/array/array_push_variation2.phpt Wed Feb 13 
16:14:02 2008
@@ -0,0 +1,256 @@
+--TEST--
+Test array_push() function : usage variations - Pass different data types as 
$var arg
+--FILE--
+?php
+/* Prototype  : int array_push(array $stack, mixed $var [, mixed $...])
+ * Description: Pushes elements onto the end of the array 
+ * Source code: ext/standard/array.c
+ */
+
+/*
+ * Pass different data types as $var argument to array_push to test behaviour
+ */
+
+echo *** Testing array_push() : usage variations ***\n;
+
+// Initialise function arguments not being substituted
+$stack = array (1, 2);
+
+//get an unset variable
+$unset_var = 10;
+unset ($unset_var);
+
+// get a class
+class classA
+{
+  public function __toString() {
+return Class A object;
+  }
+}
+
+// heredoc string
+$heredoc = EOT
+hello world
+EOT;
+
+// get a resource variable
+$fp = fopen(__FILE__, r);
+
+// unexpected values to be passed to $var argument
+$inputs = array(
+
+   // int data
+/*1*/  0,
+   1,
+   12345,
+   -2345,
+
+   // float data
+/*5*/  10.5,
+   -10.5,
+   12.3456789000e10,
+   12.3456789000E-10,
+   .5,
+
+   // null data
+/*10*/ NULL,
+   null,
+
+   // boolean data
+/*12*/ true,
+   false,
+   TRUE,
+   FALSE,
+   
+   // empty data
+/*16*/ ,
+   '',
+   array(),
+
+   // string data
+/*19*/ string,
+   'string',
+   $heredoc,
+   
+   // object data
+/*22*/ new classA(),
+
+   // undefined data
+/*23*/ @$undefined_var,
+
+   // unset data
+/*24*/ @$unset_var,
+
+   // resource variable
+/*25*/ $fp
+);
+
+// loop through each element of $inputs to check the behavior of array_push()
+$iterator = 1;
+foreach($inputs as $input) {
+  echo \n-- Iteration $iterator --\n;
+  $temp_array = $stack;
+  var_dump( array_push($temp_array, $input) );
+  $iterator++;
+};
+
+fclose($fp);
+
+echo Done;
+?
+--EXPECTF--
+*** Testing array_push() : usage variations ***
+
+-- Iteration 1 --
+int(3)
+
+-- Iteration 2 --
+int(3)
+
+-- Iteration 3 --
+int(3)
+
+-- Iteration 4 --
+int(3)
+
+-- Iteration 5 --
+int(3)
+
+-- Iteration 6 --
+int(3)
+
+-- Iteration 7 --
+int(3)
+
+-- Iteration 8 --
+int(3)
+
+-- Iteration 9 --
+int(3)
+
+-- Iteration 10 --
+int(3)
+
+-- Iteration 11 --
+int(3)
+
+-- Iteration 12 --
+int(3)
+
+-- Iteration 13 --
+int(3)
+
+-- Iteration 14 --
+int(3)
+
+-- Iteration 15 --
+int(3)
+
+-- Iteration 16 --
+int(3)
+
+-- Iteration 17 --
+int(3)
+
+-- Iteration 18 --
+int(3)
+
+-- Iteration 19 --
+int(3)
+
+-- Iteration 20 --
+int(3)
+
+-- Iteration 21 --
+int(3)
+
+-- Iteration 22 --
+int(3)
+
+-- Iteration 23 --
+int(3)
+
+-- Iteration 24 --
+int(3)
+
+-- Iteration 25 --
+int(3)
+Done
+--UEXPECTF--
+*** Testing array_push() : usage variations ***
+
+-- Iteration 1 --
+int(3)
+
+-- Iteration 2 --
+int(3)
+
+-- Iteration 3 --
+int(3)
+
+-- Iteration 4 --
+int(3)
+
+-- Iteration 5 --
+int(3)
+
+-- Iteration 6 --
+int(3)
+
+-- Iteration 7 --
+int(3)
+
+-- Iteration 8 --
+int(3)
+
+-- Iteration 9 --
+int(3)
+
+-- Iteration 10 --
+int(3)
+
+-- Iteration 11 --
+int(3)
+
+-- Iteration 12 --
+int(3)
+
+-- Iteration 13 --
+int(3)
+
+-- Iteration 14 --
+int(3)
+
+-- Iteration 15 --
+int(3)
+
+-- Iteration 16 --
+int(3)
+
+-- Iteration 17 --
+int(3)
+
+-- Iteration 18 --
+int(3)
+
+-- Iteration 19 --
+int(3)
+
+-- Iteration 20 --
+int(3)
+
+-- Iteration 21 --
+int(3)
+
+-- Iteration 22 --
+int(3)
+
+-- Iteration 23 --
+int(3)
+
+-- Iteration 24 --
+int(3)
+
+-- Iteration 25 --
+int(3)
+Done
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_push_basic.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/array/array_push_basic.phpt
diff -u /dev/null php-src/ext/standard/tests/array/array_push_basic.phpt:1.2
--- /dev/null   Wed Feb 13 16:14:02 2008
+++ php-src/ext/standard/tests/array/array_push_basic.phpt  Wed Feb 13 

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array array_shift_basic.phpt array_shift_error.phpt array_shift_variation1.phpt array_shift_variation2.phpt array_shift_variation3.phpt array_shift_

2008-02-13 Thread Josie Messa
jmessa  Wed Feb 13 16:41:27 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   array_shift_variation6.phpt 
array_shift_basic.phpt 
array_shift_variation7.phpt 
array_shift_variation8.phpt 
array_shift_variation5.phpt 
array_shift_error.phpt 
array_shift_variation4.phpt 
array_shift_variation1.phpt 
array_shift_variation2.phpt 
array_shift_variation3.phpt 
  Log:
  - New tests for array_shift() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_shift_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_shift_variation6.phpt
+++ php-src/ext/standard/tests/array/array_shift_variation6.phpt
--TEST--
Test array_shift() function : usage variations - Referenced arrays
--FILE--
?php
/* Prototype  : mixed array_shift(array $stack)
 * Description: Pops an element off the beginning of the array 
 * Source code: ext/standard/array.c
 */

/*
 * Test how array_shift when passed:
 * 1. a variable that is referenced to an array
 * 2. an array that contains a referenced array
 */

echo *** Testing array_shift() : usage variations ***\n;

echo \n-- Variable is referenced array --\n;
$original_array = array('zero', 'one', 'two');
$copied_array = $original_array;

echo Result: ;
var_dump(array_shift($copied_array));
echo \n\$original_array:\n;
var_dump($original_array);
echo \n\$copied_array:\n;
var_dump($copied_array);

echo \n-- Element is referenced array --\n;
$new_array = array ($copied_array, 1, 'two');
echo Result: ;
var_dump(array_shift($new_array[0]));
echo \n\$new_array:\n;
var_dump($new_array);
echo \n\$copied_array\n;
var_dump($copied_array);

echo Done;
?
--EXPECTF--
*** Testing array_shift() : usage variations ***

-- Variable is referenced array --
Result: string(4) zero

$original_array:
array(2) {
  [0]=
  string(3) one
  [1]=
  string(3) two
}

$copied_array:
array(2) {
  [0]=
  string(3) one
  [1]=
  string(3) two
}

-- Element is referenced array --
Result: string(3) one

$new_array:
array(3) {
  [0]=
  array(1) {
[0]=
string(3) two
  }
  [1]=
  int(1)
  [2]=
  string(3) two
}

$copied_array
array(1) {
  [0]=
  string(3) two
}
Done
--UEXPECTF--
*** Testing array_shift() : usage variations ***

-- Variable is referenced array --
Result: unicode(4) zero

$original_array:
array(2) {
  [0]=
  unicode(3) one
  [1]=
  unicode(3) two
}

$copied_array:
array(2) {
  [0]=
  unicode(3) one
  [1]=
  unicode(3) two
}

-- Element is referenced array --
Result: unicode(3) one

$new_array:
array(3) {
  [0]=
  array(1) {
[0]=
unicode(3) two
  }
  [1]=
  int(1)
  [2]=
  unicode(3) two
}

$copied_array
array(1) {
  [0]=
  unicode(3) two
}
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_shift_basic.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_shift_basic.phpt
+++ php-src/ext/standard/tests/array/array_shift_basic.phpt
--TEST--
Test array_shift() function : basic functionality 
--FILE--
?php
/* Prototype  : mixed array_shift(array $stack)
 * Description: Pops an element off the beginning of the array 
 * Source code: ext/standard/array.c
 */

/*
 * Test basic functionality of array_shift()
 */

echo *** Testing array_shift() : basic functionality ***\n;

$array = array('zero', 'one', '3' = 'three', 'four' = 4);
echo \n-- Before shift: --\n;
var_dump($array);

echo \n-- After shift: --\n;
echo Returned value:\t;
var_dump(array_shift($array));
echo New array:\n;
var_dump($array);

echo Done;
?
--EXPECTF--
*** Testing array_shift() : basic functionality ***

-- Before shift: --
array(4) {
  [0]=
  string(4) zero
  [1]=
  string(3) one
  [3]=
  string(5) three
  [four]=
  int(4)
}

-- After shift: --
Returned value: string(4) zero
New array:
array(3) {
  [0]=
  string(3) one
  [1]=
  string(5) three
  [four]=
  int(4)
}
Done
--UEXPECTF--
*** Testing array_shift() : basic functionality ***

-- Before shift: --
array(4) {
  [0]=
  unicode(4) zero
  [1]=
  unicode(3) one
  [3]=
  unicode(5) three
  [ufour]=
  int(4)
}

-- After shift: --
Returned value: unicode(4) zero
New array:
array(3) {
  [0]=
  unicode(3) one
  [1]=
  unicode(5) three
  [ufour]=
  int(4)
}
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_shift_variation7.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_shift_variation7.phpt
+++ php-src/ext/standard/tests/array/array_shift_variation7.phpt
--TEST--
Test array_shift() function : usage variations - position of internal pointer
--FILE--
?php
/* Prototype  : mixed array_shift(array $stack)
 * Description: Pops an element off the beginning 

[PHP-CVS] cvs: php-src /ext/standard/tests/array array_shift_basic.phpt array_shift_error.phpt array_shift_variation1.phpt array_shift_variation2.phpt array_shift_variation3.phpt array_shift_variation

2008-02-13 Thread Josie Messa
jmessa  Wed Feb 13 16:40:43 2008 UTC

  Added files: 
/php-src/ext/standard/tests/array   array_shift_variation7.phpt 
array_shift_variation8.phpt 
array_shift_variation3.phpt 
array_shift_error.phpt 
array_shift_variation5.phpt 
array_shift_variation2.phpt 
array_shift_variation6.phpt 
array_shift_basic.phpt 
array_shift_variation4.phpt 
array_shift_variation1.phpt 
  Log:
  - New tests for array_shift() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_shift_variation7.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_shift_variation7.phpt
+++ php-src/ext/standard/tests/array/array_shift_variation7.phpt
--TEST--
Test array_shift() function : usage variations - position of internal pointer
--FILE--
?php
/* Prototype  : mixed array_shift(array $stack)
 * Description: Pops an element off the beginning of the array 
 * Source code: ext/standard/array.c
 */

/*
 * Test that the internal pointer is reset after calling array_shift()
 */

echo *** Testing array_shift() : usage variations ***\n;

$stack = array ('one' = 'un', 'two' = 'deux');

echo \n-- Call array_shift() --\n;
var_dump($result = array_shift($stack));

echo \n-- Position of Internal Pointer in Passed Array: --\n;
echo key($stack) .  =  . current ($stack) . \n;

echo Done;
?
--EXPECTF--
*** Testing array_shift() : usage variations ***

-- Call array_shift() --
string(2) un

-- Position of Internal Pointer in Passed Array: --
two = deux
Done
--UEXPECTF--
*** Testing array_shift() : usage variations ***

-- Call array_shift() --
unicode(2) un

-- Position of Internal Pointer in Passed Array: --
two = deux
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_shift_variation8.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_shift_variation8.phpt
+++ php-src/ext/standard/tests/array/array_shift_variation8.phpt
--TEST--
Test array_shift() function : usage variations - maintaining referenced elements
--FILE--
?php
/* Prototype  : mixed array_shift(array $stack)
 * Description: Pops an element off the beginning of the array 
 * Source code: ext/standard/array.c
 */

/*
 * From a comment left by Traps on 09-Jul-2007 on the array_shift documentation 
page:
 * For those that may be trying to use array_shift() with an array containing 
references 
 * (e.g. working with linked node trees), beware that array_shift() may not 
work as you expect: 
 * it will return a *copy* of the first element of the array, 
 * and not the element itself, so your reference will be lost.
 * The solution is to reference the first element before removing it with 
array_shift():
 */

echo *** Testing array_shift() : usage variations ***\n;

// using only array_shift:
echo \n-- Reference result of array_shift: --\n;
$a = 1;
$array = array($a);
$b = array_shift($array);
$b = 2;
echo a = $a, b = $b\n;

// solution: referencing the first element first:
echo \n-- Reference first element before array_shift: --\n;
$a = 1;
$array = array($a);
$b = $array[0];
array_shift($array);
$b = 2;
echo a = $a, b = $b\n;

echo Done;
?
--EXPECTF--
*** Testing array_shift() : usage variations ***

-- Reference result of array_shift: --

Strict Standards: Only variables should be assigned by reference in %s on line 
%d
a = 1, b = 2

-- Reference first element before array_shift: --
a = 2, b = 2
Done
--UEXPECTF--
*** Testing array_shift() : usage variations ***

-- Reference result of array_shift: --

Strict Standards: Only variables should be assigned by reference in %s on line 
%d
a = 1, b = 2

-- Reference first element before array_shift: --
a = 2, b = 2
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_shift_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_shift_variation3.phpt
+++ php-src/ext/standard/tests/array/array_shift_variation3.phpt
--TEST--
Test array_shift() function : usage variations - Pass array with different data 
types as keys
--FILE--
?php
/* Prototype  : mixed array_shift(array $stack)
 * Description: Pops an element off the beginning of the array 
 * Source code: ext/standard/array.c
 */

/*
 * Pass arrays with different data types as keys to test how array_shift() 
re-assigns keys
 */

echo *** Testing array_shift() : usage variations ***\n;

//get an unset variable
$unset_var = 10;
unset ($unset_var);

// heredoc string
$heredoc = EOT
hello world
EOT;

// unexpected values to be passed to $stack argument
$inputs = array(

   // int data
/*1*/  'int' = array(
   0 = 'zero',
   1 = 'one',
   12345 = 'positive',
   -2345 = 'negative',
 

[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array array_shift_basic.phpt array_shift_error.phpt array_shift_variation1.phpt array_shift_variation2.phpt array_shift_variation3.phpt array_shift_

2008-02-13 Thread Josie Messa
jmessa  Wed Feb 13 16:42:17 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   array_shift_variation6.phpt 
array_shift_variation4.phpt 
array_shift_variation5.phpt 
array_shift_error.phpt 
array_shift_variation1.phpt 
array_shift_basic.phpt 
array_shift_variation7.phpt 
array_shift_variation3.phpt 
array_shift_variation8.phpt 
array_shift_variation2.phpt 
  Log:
  - New tests for array_shift() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_shift_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_shift_variation6.phpt
+++ php-src/ext/standard/tests/array/array_shift_variation6.phpt
--TEST--
Test array_shift() function : usage variations - Referenced arrays
--FILE--
?php
/* Prototype  : mixed array_shift(array $stack)
 * Description: Pops an element off the beginning of the array 
 * Source code: ext/standard/array.c
 */

/*
 * Test how array_shift when passed:
 * 1. a variable that is referenced to an array
 * 2. an array that contains a referenced array
 */

echo *** Testing array_shift() : usage variations ***\n;

echo \n-- Variable is referenced array --\n;
$original_array = array('zero', 'one', 'two');
$copied_array = $original_array;

echo Result: ;
var_dump(array_shift($copied_array));
echo \n\$original_array:\n;
var_dump($original_array);
echo \n\$copied_array:\n;
var_dump($copied_array);

echo \n-- Element is referenced array --\n;
$new_array = array ($copied_array, 1, 'two');
echo Result: ;
var_dump(array_shift($new_array[0]));
echo \n\$new_array:\n;
var_dump($new_array);
echo \n\$copied_array\n;
var_dump($copied_array);

echo Done;
?
--EXPECTF--
*** Testing array_shift() : usage variations ***

-- Variable is referenced array --
Result: string(4) zero

$original_array:
array(2) {
  [0]=
  string(3) one
  [1]=
  string(3) two
}

$copied_array:
array(2) {
  [0]=
  string(3) one
  [1]=
  string(3) two
}

-- Element is referenced array --
Result: string(3) one

$new_array:
array(3) {
  [0]=
  array(1) {
[0]=
string(3) two
  }
  [1]=
  int(1)
  [2]=
  string(3) two
}

$copied_array
array(1) {
  [0]=
  string(3) two
}
Done
--UEXPECTF--
*** Testing array_shift() : usage variations ***

-- Variable is referenced array --
Result: unicode(4) zero

$original_array:
array(2) {
  [0]=
  unicode(3) one
  [1]=
  unicode(3) two
}

$copied_array:
array(2) {
  [0]=
  unicode(3) one
  [1]=
  unicode(3) two
}

-- Element is referenced array --
Result: unicode(3) one

$new_array:
array(3) {
  [0]=
  array(1) {
[0]=
unicode(3) two
  }
  [1]=
  int(1)
  [2]=
  unicode(3) two
}

$copied_array
array(1) {
  [0]=
  unicode(3) two
}
Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_shift_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_shift_variation4.phpt
+++ php-src/ext/standard/tests/array/array_shift_variation4.phpt
--TEST--
Test array_shift() function : usage variations - multi-dimensional arrays
--FILE--
?php
/* Prototype  : mixed array_shift(array $stack)
 * Description: Pops an element off the beginning of the array 
 * Source code: ext/standard/array.c
 */

/*
 * Test popping elements from a sub-array and popping an array from an array
 */

echo *** Testing array_shift() : usage variations ***\n;

$stack_first = array(array(1, 2, 3), 'one', 'two');
$stack_last = array ('zero', 'one', array (1, 2, 3));
echo \n-- Before shift: --\n;
echo  \$stack_first:\n;
var_dump($stack_first);
echo  \$stack_last:\n;
var_dump($stack_last);

echo \n-- After shift: --\n;
echo  Pop array from array:\n;
echo Returned value:\t;
var_dump(array_shift($stack_first));
echo New array:\n;
var_dump($stack_first);

echo  Pop element from array within array:\n;
echo Returned value:\t;
var_dump(array_shift($stack_last[2]));
echo New array:\n;
var_dump($stack_last);

echo Done;
?
--EXPECTF--
*** Testing array_shift() : usage variations ***

-- Before shift: --
 $stack_first:
array(3) {
  [0]=
  array(3) {
[0]=
int(1)
[1]=
int(2)
[2]=
int(3)
  }
  [1]=
  string(3) one
  [2]=
  string(3) two
}
 $stack_last:
array(3) {
  [0]=
  string(4) zero
  [1]=
  string(3) one
  [2]=
  array(3) {
[0]=
int(1)
[1]=
int(2)
[2]=
int(3)
  }
}

-- After shift: --
 Pop array from array:
Returned value: array(3) {
  [0]=
  int(1)
  [1]=
  int(2)
  [2]=
  int(3)
}
New array:
array(2) {
  [0]=
  string(3) one
  [1]=
  string(3) two
}
 Pop element from array within array:
Returned value: int(1)
New array:
array(3) {
  [0]=
  string(4) zero
  [1]=
  

[PHP-CVS] cvs: php-src /ext/standard/tests/array array_change_key_case_variation1.phpt array_change_key_case_variation2.phpt array_change_key_case_variation3.phpt array_change_key_case_variation4.phpt

2008-02-12 Thread Josie Messa
jmessa  Tue Feb 12 17:45:48 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/array   
array_change_key_case_variation4.phpt 
array_change_key_case_variation7.phpt 
array_change_key_case_variation8.phpt 
array_change_key_case_variation3.phpt 
array_change_key_case_variation1.phpt 
array_change_key_case_variation2.phpt 
array_change_key_case_variation5.phpt 
array_change_key_case_variation6.phpt 
  Log:
  - committing array_change_key_case variation tests
  http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_change_key_case_variation4.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/array/array_change_key_case_variation4.phpt
diff -u /dev/null 
php-src/ext/standard/tests/array/array_change_key_case_variation4.phpt:1.2
--- /dev/null   Tue Feb 12 17:45:48 2008
+++ php-src/ext/standard/tests/array/array_change_key_case_variation4.phpt  
Tue Feb 12 17:45:47 2008
@@ -0,0 +1,251 @@
+--TEST--
+Test array_change_key_case() function : usage variations - different int 
values for $case
+--FILE--
+?php
+/* Prototype  : array array_change_key_case(array $input [, int $case])
+ * Description: Retuns an array with all string keys lowercased [or 
uppercased] 
+ * Source code: ext/standard/array.c
+ */
+
+/*
+ * Pass different integer values as $case argument to array_change_key_case() 
to test behaviour
+ */
+
+echo *** Testing array_change_key_case() : usage variations ***\n;
+
+$input = array('One' = 'un', 'TWO' = 'deux', 'three' = 'trois');
+for ($i = -5; $i =5; $i += 1){
+   echo \n-- \$sort argument is $i --\n;
+   $temp = $input;
+   var_dump(array_change_key_case($temp, $i));
+}
+
+echo Done;
+?
+
+--EXPECTF--
+*** Testing array_change_key_case() : usage variations ***
+
+-- $sort argument is -5 --
+array(3) {
+  [ONE]=
+  string(2) un
+  [TWO]=
+  string(4) deux
+  [THREE]=
+  string(5) trois
+}
+
+-- $sort argument is -4 --
+array(3) {
+  [ONE]=
+  string(2) un
+  [TWO]=
+  string(4) deux
+  [THREE]=
+  string(5) trois
+}
+
+-- $sort argument is -3 --
+array(3) {
+  [ONE]=
+  string(2) un
+  [TWO]=
+  string(4) deux
+  [THREE]=
+  string(5) trois
+}
+
+-- $sort argument is -2 --
+array(3) {
+  [ONE]=
+  string(2) un
+  [TWO]=
+  string(4) deux
+  [THREE]=
+  string(5) trois
+}
+
+-- $sort argument is -1 --
+array(3) {
+  [ONE]=
+  string(2) un
+  [TWO]=
+  string(4) deux
+  [THREE]=
+  string(5) trois
+}
+
+-- $sort argument is 0 --
+array(3) {
+  [one]=
+  string(2) un
+  [two]=
+  string(4) deux
+  [three]=
+  string(5) trois
+}
+
+-- $sort argument is 1 --
+array(3) {
+  [ONE]=
+  string(2) un
+  [TWO]=
+  string(4) deux
+  [THREE]=
+  string(5) trois
+}
+
+-- $sort argument is 2 --
+array(3) {
+  [ONE]=
+  string(2) un
+  [TWO]=
+  string(4) deux
+  [THREE]=
+  string(5) trois
+}
+
+-- $sort argument is 3 --
+array(3) {
+  [ONE]=
+  string(2) un
+  [TWO]=
+  string(4) deux
+  [THREE]=
+  string(5) trois
+}
+
+-- $sort argument is 4 --
+array(3) {
+  [ONE]=
+  string(2) un
+  [TWO]=
+  string(4) deux
+  [THREE]=
+  string(5) trois
+}
+
+-- $sort argument is 5 --
+array(3) {
+  [ONE]=
+  string(2) un
+  [TWO]=
+  string(4) deux
+  [THREE]=
+  string(5) trois
+}
+Done
+--UEXPECTF--
+*** Testing array_change_key_case() : usage variations ***
+
+-- $sort argument is -5 --
+array(3) {
+  [uONE]=
+  unicode(2) un
+  [uTWO]=
+  unicode(4) deux
+  [uTHREE]=
+  unicode(5) trois
+}
+
+-- $sort argument is -4 --
+array(3) {
+  [uONE]=
+  unicode(2) un
+  [uTWO]=
+  unicode(4) deux
+  [uTHREE]=
+  unicode(5) trois
+}
+
+-- $sort argument is -3 --
+array(3) {
+  [uONE]=
+  unicode(2) un
+  [uTWO]=
+  unicode(4) deux
+  [uTHREE]=
+  unicode(5) trois
+}
+
+-- $sort argument is -2 --
+array(3) {
+  [uONE]=
+  unicode(2) un
+  [uTWO]=
+  unicode(4) deux
+  [uTHREE]=
+  unicode(5) trois
+}
+
+-- $sort argument is -1 --
+array(3) {
+  [uONE]=
+  unicode(2) un
+  [uTWO]=
+  unicode(4) deux
+  [uTHREE]=
+  unicode(5) trois
+}
+
+-- $sort argument is 0 --
+array(3) {
+  [uone]=
+  unicode(2) un
+  [utwo]=
+  unicode(4) deux
+  [uthree]=
+  unicode(5) trois
+}
+
+-- $sort argument is 1 --
+array(3) {
+  [uONE]=
+  unicode(2) un
+  [uTWO]=
+  unicode(4) deux
+  [uTHREE]=
+  unicode(5) trois
+}
+
+-- $sort argument is 2 --
+array(3) {
+  [uONE]=
+  unicode(2) un
+  [uTWO]=
+  unicode(4) deux
+  [uTHREE]=
+  unicode(5) trois
+}
+
+-- $sort argument is 3 --
+array(3) {
+  [uONE]=
+  unicode(2) un
+  [uTWO]=
+  unicode(4) deux
+  [uTHREE]=
+  unicode(5) trois
+}
+
+-- $sort argument is 4 --
+array(3) {
+  [uONE]=
+  unicode(2) un
+  [uTWO]=
+  unicode(4) deux
+  [uTHREE]=
+  unicode(5) trois
+}
+
+-- $sort argument is 5 --
+array(3) {
+  

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array array_change_key_case_variation1.phpt array_change_key_case_variation2.phpt array_change_key_case_variation3.phpt array_change_key_case_variat

2008-02-12 Thread Josie Messa
jmessa  Tue Feb 12 17:43:54 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   
array_change_key_case_variation1.phpt 
array_change_key_case_variation5.phpt 
array_change_key_case_variation3.phpt 
array_change_key_case_variation2.phpt 
array_change_key_case_variation7.phpt 
array_change_key_case_variation6.phpt 
array_change_key_case_variation4.phpt 
array_change_key_case_variation8.phpt 
  Log:
  - committing array_change_key_case variation tests
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_change_key_case_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_change_key_case_variation1.phpt
+++ php-src/ext/standard/tests/array/array_change_key_case_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_change_key_case_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_change_key_case_variation5.phpt
+++ php-src/ext/standard/tests/array/array_change_key_case_variation5.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_change_key_case_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_change_key_case_variation3.phpt
+++ php-src/ext/standard/tests/array/array_change_key_case_variation3.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_change_key_case_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_change_key_case_variation2.phpt
+++ php-src/ext/standard/tests/array/array_change_key_case_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_change_key_case_variation7.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_change_key_case_variation7.phpt
+++ php-src/ext/standard/tests/array/array_change_key_case_variation7.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_change_key_case_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_change_key_case_variation6.phpt
+++ php-src/ext/standard/tests/array/array_change_key_case_variation6.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_change_key_case_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_change_key_case_variation4.phpt
+++ php-src/ext/standard/tests/array/array_change_key_case_variation4.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_change_key_case_variation8.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_change_key_case_variation8.phpt
+++ php-src/ext/standard/tests/array/array_change_key_case_variation8.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array array_change_key_case_variation1.phpt array_change_key_case_variation2.phpt array_change_key_case_variation3.phpt array_change_key_case_variat

2008-02-12 Thread Josie Messa
jmessa  Tue Feb 12 17:44:50 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   
array_change_key_case_variation6.phpt 
array_change_key_case_variation4.phpt 
array_change_key_case_variation1.phpt 
array_change_key_case_variation7.phpt 
array_change_key_case_variation2.phpt 
array_change_key_case_variation5.phpt 
array_change_key_case_variation8.phpt 
array_change_key_case_variation3.phpt 
  Log:
  - committing array_change_key_case variation tests
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_change_key_case_variation6.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_change_key_case_variation6.phpt
+++ php-src/ext/standard/tests/array/array_change_key_case_variation6.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_change_key_case_variation4.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_change_key_case_variation4.phpt
+++ php-src/ext/standard/tests/array/array_change_key_case_variation4.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_change_key_case_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_change_key_case_variation1.phpt
+++ php-src/ext/standard/tests/array/array_change_key_case_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_change_key_case_variation7.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_change_key_case_variation7.phpt
+++ php-src/ext/standard/tests/array/array_change_key_case_variation7.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_change_key_case_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_change_key_case_variation2.phpt
+++ php-src/ext/standard/tests/array/array_change_key_case_variation2.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_change_key_case_variation5.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_change_key_case_variation5.phpt
+++ php-src/ext/standard/tests/array/array_change_key_case_variation5.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_change_key_case_variation8.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_change_key_case_variation8.phpt
+++ php-src/ext/standard/tests/array/array_change_key_case_variation8.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_change_key_case_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_change_key_case_variation3.phpt
+++ php-src/ext/standard/tests/array/array_change_key_case_variation3.phpt

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_2) /ext/mbstring/tests mb_convert_encoding_basic.phpt mb_encode_mimeheader_basic.phpt mb_encode_mimeheader_variation1.phpt mb_encode_mimeheader_variation2.phpt mb_encode_m

2008-02-01 Thread Josie Messa
jmessa  Fri Feb  1 15:27:38 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/mbstring/tests mb_substr_variation1.phpt 
mb_encode_mimeheader_basic.phpt 
mb_regex_encoding_variation1.phpt 
mb_internal_encoding_basic.phpt 
mb_strtolower_variation1.phpt 
mb_internal_encoding_error1.phpt 
mb_strtolower_variation3.phpt 
mb_ereg_variation6.phpt 
mb_substr_count_variation3.phpt 
mb_strrpos_variation5.phpt 
mb_strtolower_basic.phpt 
mb_substr_error1.phpt 
mb_strtoupper_variation4.phpt 
mb_substr_basic.phpt 
mb_strpos_variation2.phpt 
mb_substr_variation5.phpt 
mb_strtolower_error2.phpt 
mb_strtoupper_error1.phpt 
mb_strrpos_error1.phpt 
mb_encode_mimeheader_variation5.phpt 
mb_regex_encoding_error2.phpt 
mb_strrpos_variation1.phpt 
mb_substr_count_error1.phpt 
mb_strpos_variation4.phpt 
mb_strtoupper_variation2.phpt 
mb_ereg_variation4.phpt 
mb_substr_count_basic.phpt 
mb_convert_encoding_basic.phpt 
mb_ereg_variation2.phpt 
mb_encode_mimeheader_variation1.phpt 
mb_encode_mimeheader_variation2.phpt 
mb_strtolower_variation4.phpt 
mb_strrpos_variation4.phpt 
mb_strlen_variation2.phpt 
mb_strpos_error2.phpt 
mb_strpos_basic.phpt 
mb_substr_variation2.phpt 
mb_strlen_error1.phpt 
mb_strpos_variation3.phpt 
mb_substr_count_variation1.phpt 
mb_strtolower_error1.phpt 
mb_substr_variation4.phpt 
mb_ereg_error.phpt 
mb_strrpos_basic.phpt 
mb_ereg_variation5.phpt 
mb_strtoupper_error2.phpt 
mb_strrpos_error2.phpt 
mb_internal_encoding_error2.phpt 
mb_strtoupper_basic.phpt 
mb_regex_encoding_basic.phpt 
mb_strtolower_variation2.phpt 
mb_encode_mimeheader_variation4.phpt 
mb_ereg_basic.phpt 
mb_strtoupper_variation3.phpt 
mb_regex_encoding_error1.phpt 
mb_encode_mimeheader_variation6.phpt 
mb_strrpos_variation2.phpt 
mb_ereg_variation1.phpt 
mb_strrpos_variation3.phpt 
mb_internal_encoding_variation2.phpt 
mb_substr_count_error2.phpt 
mb_encode_mimeheader_variation3.phpt 
mb_strlen_variation1.phpt 
mb_strlen_variation3.phpt 
mb_strpos_variation1.phpt 
mb_strpos_error1.phpt 
mb_substr_variation3.phpt 
mb_strtoupper_variation1.phpt 
mb_substr_error2.phpt 
mb_strlen_error2.phpt 
mb_substr_count_variation2.phpt 
mb_ereg_variation7.phpt 
mb_ereg_variation3.phpt 
mb_strlen_basic.phpt 
mb_internal_encoding_variation1.phpt 
  Log:
  - Committing new tests for MBString extension. 
  More details can be found here: http://news.php.net/php.qa/62382
  
http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/tests/mb_substr_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/mbstring/tests/mb_substr_variation1.phpt
+++ php-src/ext/mbstring/tests/mb_substr_variation1.phpt


[PHP-CVS] cvs: php-src(PHP_5_3) /ext/mbstring/tests mb_convert_encoding_basic.phpt mb_encode_mimeheader_basic.phpt mb_encode_mimeheader_variation1.phpt mb_encode_mimeheader_variation2.phpt mb_encode_m

2008-02-01 Thread Josie Messa
jmessa  Fri Feb  1 15:30:00 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/mbstring/tests mb_strtoupper_variation3.phpt 
mb_ereg_variation6.phpt 
mb_ereg_error.phpt 
mb_substr_variation5.phpt 
mb_regex_encoding_error1.phpt 
mb_encode_mimeheader_variation5.phpt 
mb_substr_count_error1.phpt 
mb_strtolower_variation3.phpt 
mb_substr_count_basic.phpt 
mb_substr_variation3.phpt 
mb_substr_count_error2.phpt 
mb_encode_mimeheader_variation3.phpt 
mb_ereg_variation2.phpt 
mb_strtoupper_error1.phpt 
mb_strrpos_variation4.phpt 
mb_strrpos_error1.phpt 
mb_substr_error2.phpt 
mb_strrpos_variation5.phpt 
mb_strtolower_error2.phpt 
mb_encode_mimeheader_variation1.phpt 
mb_substr_count_variation3.phpt 
mb_strtolower_variation2.phpt 
mb_strrpos_variation2.phpt 
mb_substr_variation4.phpt 
mb_encode_mimeheader_variation6.phpt 
mb_strrpos_basic.phpt 
mb_strpos_variation1.phpt 
mb_convert_encoding_basic.phpt 
mb_internal_encoding_error1.phpt 
mb_strtolower_basic.phpt 
mb_strtoupper_variation1.phpt 
mb_ereg_variation7.phpt 
mb_encode_mimeheader_variation2.phpt 
mb_encode_mimeheader_variation4.phpt 
mb_internal_encoding_variation1.phpt 
mb_regex_encoding_variation1.phpt 
mb_strpos_basic.phpt 
mb_substr_count_variation2.phpt 
mb_strpos_error2.phpt 
mb_strpos_variation3.phpt 
mb_strlen_error2.phpt 
mb_strtoupper_variation2.phpt 
mb_strlen_basic.phpt 
mb_strpos_variation4.phpt 
mb_strtolower_variation4.phpt 
mb_strlen_variation1.phpt 
mb_strpos_variation2.phpt 
mb_strtolower_variation1.phpt 
mb_ereg_variation1.phpt 
mb_ereg_variation5.phpt 
mb_substr_basic.phpt 
mb_strrpos_variation3.phpt 
mb_strlen_variation2.phpt 
mb_strrpos_error2.phpt 
mb_regex_encoding_error2.phpt 
mb_internal_encoding_variation2.phpt 
mb_strtoupper_variation4.phpt 
mb_strlen_error1.phpt 
mb_strpos_error1.phpt 
mb_internal_encoding_basic.phpt 
mb_substr_variation1.phpt 
mb_ereg_basic.phpt 
mb_substr_error1.phpt 
mb_strtolower_error1.phpt 
mb_internal_encoding_error2.phpt 
mb_substr_variation2.phpt 
mb_regex_encoding_basic.phpt 
mb_strtoupper_error2.phpt 
mb_encode_mimeheader_basic.phpt 
mb_ereg_variation4.phpt 
mb_strrpos_variation1.phpt 
mb_strtoupper_basic.phpt 
mb_ereg_variation3.phpt 
mb_substr_count_variation1.phpt 
mb_strlen_variation3.phpt 
  Log:
  - Committing new tests for MBString extension.
  More details can be found here: http://news.php.net/php.qa/62382
  
http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/tests/mb_strtoupper_variation3.phpt?view=markuprev=1.1
Index: php-src/ext/mbstring/tests/mb_strtoupper_variation3.phpt
+++ php-src/ext/mbstring/tests/mb_strtoupper_variation3.phpt