[PHP-CVS-DAILY] cvs: php-src / ChangeLog

2007-10-19 Thread changelog
changelog   Sat Oct 20 01:31:27 2007 UTC

  Modified files:  
/php-srcChangeLog 
  Log:
  ChangeLog update
  http://cvs.php.net/viewvc.cgi/php-src/ChangeLog?r1=1.2843r2=1.2844diff_format=u
Index: php-src/ChangeLog
diff -u php-src/ChangeLog:1.2843 php-src/ChangeLog:1.2844
--- php-src/ChangeLog:1.2843Fri Oct 19 01:31:19 2007
+++ php-src/ChangeLog   Sat Oct 20 01:31:27 2007
@@ -1,3 +1,229 @@
+2007-10-19  Raghubansh Kumar  [EMAIL PROTECTED]
+
+* (PHP_5_3)
+  ext/standard/tests/array/array_rand_basic1.phpt
+  ext/standard/tests/array/array_rand_basic2.phpt
+  ext/standard/tests/array/array_rand_error.phpt
+  ext/standard/tests/array/array_rand_variation1.phpt
+  ext/standard/tests/array/array_rand_variation2.phpt
+  ext/standard/tests/array/array_rand_variation3.phpt
+  ext/standard/tests/array/array_rand_variation4.phpt
+  ext/standard/tests/array/array_rand_variation5.phpt
+  ext/standard/tests/array/array_rand_variation6.phpt:
+  New testcases for array_rand() function
+
+* ext/standard/tests/array/array_rand_basic1.phpt
+  ext/standard/tests/array/array_rand_basic1.phpt
+  ext/standard/tests/array/array_rand_basic1.phpt
+  ext/standard/tests/array/array_rand_basic2.phpt
+  ext/standard/tests/array/array_rand_basic2.phpt
+  ext/standard/tests/array/array_rand_basic2.phpt
+  ext/standard/tests/array/array_rand_error.phpt
+  ext/standard/tests/array/array_rand_error.phpt
+  ext/standard/tests/array/array_rand_error.phpt
+  ext/standard/tests/array/array_rand_variation1.phpt
+  ext/standard/tests/array/array_rand_variation1.phpt
+  ext/standard/tests/array/array_rand_variation1.phpt
+  ext/standard/tests/array/array_rand_variation2.phpt
+  ext/standard/tests/array/array_rand_variation2.phpt
+  ext/standard/tests/array/array_rand_variation2.phpt
+  ext/standard/tests/array/array_rand_variation3.phpt
+  ext/standard/tests/array/array_rand_variation3.phpt
+  ext/standard/tests/array/array_rand_variation3.phpt
+  ext/standard/tests/array/array_rand_variation4.phpt
+  ext/standard/tests/array/array_rand_variation4.phpt
+  ext/standard/tests/array/array_rand_variation4.phpt
+  ext/standard/tests/array/array_rand_variation5.phpt
+  ext/standard/tests/array/array_rand_variation5.phpt
+  ext/standard/tests/array/array_rand_variation5.phpt
+  ext/standard/tests/array/array_rand_variation6.phpt
+  ext/standard/tests/array/array_rand_variation6.phpt
+  ext/standard/tests/array/array_rand_variation6.phpt:
+1.1.4;
+  file array_rand_basic1.phpt was initially added on branch PHP_5_2.
+
+* (PHP_5_2)
+  ext/standard/tests/array/array_fill_basic.phpt
+  ext/standard/tests/array/array_fill_basic.phpt
+  ext/standard/tests/array/array_fill_error.phpt
+  ext/standard/tests/array/array_fill_error.phpt
+  ext/standard/tests/array/array_fill_object.phpt
+  ext/standard/tests/array/array_fill_object.phpt
+  ext/standard/tests/array/array_fill_variation1.phpt
+  ext/standard/tests/array/array_fill_variation1.phpt
+  ext/standard/tests/array/array_fill_variation2.phpt
+  ext/standard/tests/array/array_fill_variation2.phpt
+  ext/standard/tests/array/array_fill_variation3.phpt
+  ext/standard/tests/array/array_fill_variation3.phpt
+  ext/standard/tests/array/array_fill_variation4.phpt
+  ext/standard/tests/array/array_fill_variation4.phpt
+  ext/standard/tests/array/array_fill_variation5.phpt
+  ext/standard/tests/array/array_fill_variation5.phpt:
+  New testcases for array_fill() function
+
+* ext/standard/tests/array/array_fill_basic.phpt
+  ext/standard/tests/array/array_fill_basic.phpt
+  ext/standard/tests/array/array_fill_basic.phpt
+  ext/standard/tests/array/array_fill_error.phpt
+  ext/standard/tests/array/array_fill_error.phpt
+  ext/standard/tests/array/array_fill_error.phpt
+  ext/standard/tests/array/array_fill_object.phpt
+  ext/standard/tests/array/array_fill_object.phpt
+  ext/standard/tests/array/array_fill_object.phpt
+  ext/standard/tests/array/array_fill_variation1.phpt
+  ext/standard/tests/array/array_fill_variation1.phpt
+  ext/standard/tests/array/array_fill_variation1.phpt
+  ext/standard/tests/array/array_fill_variation2.phpt
+  ext/standard/tests/array/array_fill_variation2.phpt
+  ext/standard/tests/array/array_fill_variation2.phpt
+  ext/standard/tests/array/array_fill_variation3.phpt
+  ext/standard/tests/array/array_fill_variation3.phpt
+  ext/standard/tests/array/array_fill_variation3.phpt
+  ext/standard/tests/array/array_fill_variation4.phpt
+  ext/standard/tests/array/array_fill_variation4.phpt
+  ext/standard/tests/array/array_fill_variation4.phpt
+  ext/standard/tests/array/array_fill_variation5.phpt
+  

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array array_filter_basic.phpt array_filter_error.phpt array_filter_variation1.phpt array_filter_variation2.phpt array_filter_variation3.phpt array_f

2007-10-19 Thread Raghubansh Kumar
kraghubaFri Oct 19 18:18:16 2007 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   array_filter_basic.phpt 
array_filter_variation1.phpt 
array_filter_variation2.phpt 
array_filter_variation3.phpt 
array_filter_variation4.phpt 
array_filter_variation5.phpt 
array_filter_variation6.phpt 
array_filter_variation7.phpt 
array_filter_error.phpt 
array_filter_variation8.phpt 
array_filter_variation9.phpt 
  Log:
  New testcases for array_filter() function
  

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

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

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

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

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

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

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

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

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

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

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

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



[PHP-CVS] cvs: CVSROOT / avail

2007-10-19 Thread Derick Rethans
derick  Fri Oct 19 20:45:14 2007 UTC

  Modified files:  
/CVSROOTavail 
  Log:
  - Yes my liege...
  
  
http://cvs.php.net/viewvc.cgi/CVSROOT/avail?r1=1.1314r2=1.1315diff_format=u
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.1314 CVSROOT/avail:1.1315
--- CVSROOT/avail:1.1314Fri Oct 19 12:41:06 2007
+++ CVSROOT/avail   Fri Oct 19 20:45:14 2007
@@ -286,6 +286,7 @@
 avail|lucas|pecl/apd
 avail|rotsenmarcello|pecl/puno
 avail|lwe|pecl/pdo_firebird,php-src/ext/pdo_firebird
+avail|mkoppanen|pecl/ssh2
 
 # php windows installer
 avail|jmertic|php-src/win32/installer

-- 
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_filter_basic.phpt array_filter_error.phpt array_filter_variation1.phpt array_filter_variation2.phpt array_filter_variation3.phpt array_f

2007-10-19 Thread Raghubansh Kumar
kraghubaFri Oct 19 18:20:02 2007 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   array_filter_basic.phpt 
array_filter_variation1.phpt 
array_filter_variation2.phpt 
array_filter_variation3.phpt 
array_filter_variation4.phpt 
array_filter_variation5.phpt 
array_filter_variation6.phpt 
array_filter_variation7.phpt 
array_filter_variation8.phpt 
array_filter_variation9.phpt 
array_filter_error.phpt 
  Log:
  New testcases for array_filter() function
  

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

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

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

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

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

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

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

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

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

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

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_filter_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_filter_error.phpt
+++ php-src/ext/standard/tests/array/array_filter_error.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_filter_basic.phpt array_filter_error.phpt array_filter_variation1.phpt array_filter_variation2.phpt array_filter_variation3.phpt array_filter_var

2007-10-19 Thread Raghubansh Kumar
kraghubaFri Oct 19 18:22:56 2007 UTC

  Modified files:  
/php-src/ext/standard/tests/array   array_filter_variation5.phpt 
array_filter_variation6.phpt 
array_filter_variation7.phpt 
array_filter_variation8.phpt 
array_filter_variation9.phpt 
array_filter_error.phpt 
array_filter_basic.phpt 
array_filter_variation1.phpt 
array_filter_variation2.phpt 
array_filter_variation3.phpt 
array_filter_variation4.phpt 
  Log:
  New testcases for array_filter() function
  http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_filter_variation5.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/array/array_filter_variation5.phpt
diff -u /dev/null 
php-src/ext/standard/tests/array/array_filter_variation5.phpt:1.2
--- /dev/null   Fri Oct 19 18:22:55 2007
+++ php-src/ext/standard/tests/array/array_filter_variation5.phpt   Fri Oct 
19 18:22:55 2007
@@ -0,0 +1,151 @@
+--TEST--
+Test array_filter() function : usage variations - 'input' argument with 
different false entries
+--FILE--
+?php
+/* Prototype  : array array_filter(array $input [, callback $callback])
+ * Description: Filters elements from the array via the callback. 
+ * Source code: ext/standard/array.c
+*/
+
+/*
+* With default callback function argument, array_filter() removes elements 
which are interpreted as false 
+* Here Testing all the false array element possibilities
+*/
+
+// callback function always_true
+function always_true($input)
+{
+  return true;
+}
+
+// callback function always_false
+function always_false($input)
+{
+  return false;
+}
+
+echo *** Testing array_filter() : usage variations - different false elements 
in 'input' ***\n;
+
+// unset variable
+$unset_var = 10;
+unset($unset_var);
+
+// empty heredoc string
+$empty_heredoc =EOT
+EOT;
+
+// input array with different false elements
+$input = array(
+  false,
+  False,
+  '',
+  ,
+  0,
+  0.0,
+  null,
+  NULL,
+  0,
+  '0',
+  array(),
+  !1,
+  1==2,
+  $empty_heredoc,
+  @$unset_var,
+  @$undefined_var,
+);
+
+// With default callback function
+var_dump( array_filter($input) );  
+
+// With callback function which returns always true
+var_dump( array_filter($input, 'always_true') ); 
+
+// With callback function which returns always false
+var_dump( array_filter($input, 'always_false') );  
+
+echo Done
+?
+--EXPECTF--
+*** Testing array_filter() : usage variations - different false elements in 
'input' ***
+array(0) {
+}
+array(16) {
+  [0]=
+  bool(false)
+  [1]=
+  bool(false)
+  [2]=
+  string(0) 
+  [3]=
+  string(0) 
+  [4]=
+  int(0)
+  [5]=
+  float(0)
+  [6]=
+  NULL
+  [7]=
+  NULL
+  [8]=
+  string(1) 0
+  [9]=
+  string(1) 0
+  [10]=
+  array(0) {
+  }
+  [11]=
+  bool(false)
+  [12]=
+  bool(false)
+  [13]=
+  string(0) 
+  [14]=
+  NULL
+  [15]=
+  NULL
+}
+array(0) {
+}
+Done
+--UEXPECTF--
+*** Testing array_filter() : usage variations - different false elements in 
'input' ***
+array(0) {
+}
+array(16) {
+  [0]=
+  bool(false)
+  [1]=
+  bool(false)
+  [2]=
+  unicode(0) 
+  [3]=
+  unicode(0) 
+  [4]=
+  int(0)
+  [5]=
+  float(0)
+  [6]=
+  NULL
+  [7]=
+  NULL
+  [8]=
+  unicode(1) 0
+  [9]=
+  unicode(1) 0
+  [10]=
+  array(0) {
+  }
+  [11]=
+  bool(false)
+  [12]=
+  bool(false)
+  [13]=
+  unicode(0) 
+  [14]=
+  NULL
+  [15]=
+  NULL
+}
+array(0) {
+}
+Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_filter_variation6.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/array/array_filter_variation6.phpt
diff -u /dev/null 
php-src/ext/standard/tests/array/array_filter_variation6.phpt:1.2
--- /dev/null   Fri Oct 19 18:22:55 2007
+++ php-src/ext/standard/tests/array/array_filter_variation6.phpt   Fri Oct 
19 18:22:55 2007
@@ -0,0 +1,143 @@
+--TEST--
+Test array_filter() function : usage variations - 'input' array containing 
references 
+--FILE--
+?php
+/* Prototype  : array array_filter(array $input [, callback $callback])
+ * Description: Filters elements from the array via the callback. 
+ * Source code: ext/standard/array.c
+*/
+
+/*
+* Passing 'input' array which contains elements as reference to other data
+*/
+
+echo *** Testing array_filter() : usage variations - 'input' containing 
references ***\n;
+
+// Callback function
+/* Prototype : bool callback(array $input)
+ * Parameter : $input - array of which each element need to be checked in 
function
+ * Return Type : returns true or false
+ * Description : This function checks each element of an input array if 
element  5 then
+ * returns true else returns false
+ */
+function callback($input)
+{
+  

[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array array_rand_basic1.phpt array_rand_basic2.phpt array_rand_error.phpt array_rand_variation1.phpt array_rand_variation2.phpt array_rand_variation

2007-10-19 Thread Raghubansh Kumar
kraghubaFri Oct 19 18:41:13 2007 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   array_rand_variation1.phpt 
array_rand_variation2.phpt 
array_rand_variation3.phpt 
array_rand_error.phpt 
array_rand_variation4.phpt 
array_rand_variation5.phpt 
array_rand_variation6.phpt 
array_rand_basic1.phpt 
array_rand_basic2.phpt 
  Log:
  New testcases for array_rand() function
  

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

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

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

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

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

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

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

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

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_rand_basic2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_rand_basic2.phpt
+++ php-src/ext/standard/tests/array/array_rand_basic2.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_fill_basic.phpt array_fill_error.phpt array_fill_object.phpt array_fill_variation1.phpt array_fill_variation2.phpt array_fill_variation3

2007-10-19 Thread Raghubansh Kumar
kraghubaFri Oct 19 18:34:16 2007 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   array_fill_error.phpt 
array_fill_variation1.phpt 
array_fill_variation2.phpt 
array_fill_object.phpt 
array_fill_variation3.phpt 
array_fill_basic.phpt 
array_fill_variation4.phpt 
array_fill_variation5.phpt 
  Log:
  New testcases for array_fill() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_fill_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_fill_error.phpt
+++ php-src/ext/standard/tests/array/array_fill_error.phpt
--TEST--
Test array_fill() function : error conditions 
--FILE--
?php
/* Prototype  : proto array array_fill(int start_key, int num, mixed val)
 * Description: Create an array containing num elements starting with index 
start_key each initialized to val 
 * Source code: ext/standard/array.c
*/


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

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

// More than  expected number of arguments
echo -- Testing array_fill() function with more than expected no. of arguments 
--\n;
$start_key = 0;
$num = 2;
$val = 1;
$extra_arg = 10;
var_dump( array_fill($start_key,$num,$val, $extra_arg) );

// Less than the expected number of arguments
echo -- Testing array_fill() function with less than expected no. of arguments 
--\n;
$start_key = 0;
$num = 2;
var_dump( array_fill($start_key,$num) );

//calling array_fill with negative values for 'num' parameter
$num = -1;
var_dump( array_fill($start_key,$num,$val) );

//callin array_fill with 'num' equal to zero value
$num = 0;
var_dump( array_fill($start_key,$num,$val) );

echo Done;
?
--EXPECTF--
*** Testing array_fill() : error conditions ***
-- Testing array_fill() function with Zero arguments --

Warning: array_fill() expects exactly 3 parameters, 0 given in %s on line %d
NULL
-- Testing array_fill() function with more than expected no. of arguments --

Warning: array_fill() expects exactly 3 parameters, 4 given in %s on line %d
NULL
-- Testing array_fill() function with less than expected no. of arguments --

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

Warning: array_fill(): Number of elements must be positive in %s on line %d
bool(false)

Warning: array_fill(): Number of elements must be positive in %s on line %d
bool(false)
Done
--UEXPECTF--
*** Testing array_fill() : error conditions ***
-- Testing array_fill() function with Zero arguments --

Warning: array_fill() expects exactly 3 parameters, 0 given in %s on line %d
NULL
-- Testing array_fill() function with more than expected no. of arguments --

Warning: array_fill() expects exactly 3 parameters, 4 given in %s on line %d
NULL
-- Testing array_fill() function with less than expected no. of arguments --

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

Warning: array_fill(): Number of elements must be positive in %s on line %d
bool(false)

Warning: array_fill(): Number of elements must be positive in %s on line %d
bool(false)
Done

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_fill_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_fill_variation1.phpt
+++ php-src/ext/standard/tests/array/array_fill_variation1.phpt
--TEST--
Test array_fill() function : usage variations  - unexpected values for 
'start_key' argument(Bug#43017)
--FILE--
?php
/* Prototype  : proto array array_fill(int start_key, int num, mixed val)
 * Description: Create an array containing num elements starting with index 
start_key each initialized to val 
 * Source code: ext/standard/array.c
 */

/*
 * testing array_fill() by passing different unexpected value for 'start_key' 
argument
 */

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

// Initialise function arguments not being substituted 
$num = 2;
$val = 100;

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

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

//define a class
class test
{
  var $t = 10;
  function __toString()
  {
return testObject;
  }
}


//array of different values for 'start_key' argument
$values = array(

// float values
  /* 1  */  10.5,
-10.5,
12.3456789000e10,
12.34567890006E-10,
.5,

// array values
  /* 6  */  array(),
array(0),
array(1),
array(1, 2),
array('color' = 'red', 'item' = 'pen'),

// null values
  /* 11 */  NULL,
null,

// boolean values 
  /* 13 

[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array array_unshift_basic1.phpt array_unshift_basic2.phpt array_unshift_error.phpt array_unshift_variation1.phpt array_unshift_variation2.phpt array

2007-10-19 Thread Raghubansh Kumar
kraghubaFri Oct 19 09:16:29 2007 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   array_unshift_variation2.phpt 
array_unshift_variation3.phpt 
array_unshift_error.phpt 
array_unshift_variation4.phpt 
array_unshift_variation5.phpt 
array_unshift_variation6.phpt 
array_unshift_basic1.phpt 
array_unshift_variation7.phpt 
array_unshift_basic2.phpt 
array_unshift_variation8.phpt 
array_unshift_variation9.phpt 
array_unshift_variation1.phpt 
  Log:
  New testcases for array_unshift() function
  

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

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

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

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

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

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

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

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

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

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

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

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_unshift_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_unshift_variation1.phpt
+++ php-src/ext/standard/tests/array/array_unshift_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 array_fill_basic.phpt array_fill_error.phpt array_fill_object.phpt array_fill_variation1.phpt array_fill_variation2.phpt array_fill_variation3.phpt arr

2007-10-19 Thread Raghubansh Kumar
kraghubaFri Oct 19 18:25:57 2007 UTC

  Added files: 
/php-src/ext/standard/tests/array   array_fill_variation1.phpt 
array_fill_variation2.phpt 
array_fill_object.phpt 
array_fill_variation3.phpt 
array_fill_variation4.phpt 
array_fill_variation5.phpt 
array_fill_basic.phpt 
array_fill_error.phpt 
  Log:
  New testcases for array_fill() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_fill_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_fill_variation1.phpt
+++ php-src/ext/standard/tests/array/array_fill_variation1.phpt
--TEST--
Test array_fill() function : usage variations  - unexpected values for 
'start_key' argument(Bug#43017)
--FILE--
?php
/* Prototype  : proto array array_fill(int start_key, int num, mixed val)
 * Description: Create an array containing num elements starting with index 
start_key each initialized to val 
 * Source code: ext/standard/array.c
 */

/*
 * testing array_fill() by passing different unexpected value for 'start_key' 
argument
 */

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

// Initialise function arguments not being substituted 
$num = 2;
$val = 100;

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

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

//define a class
class test
{
  var $t = 10;
  function __toString()
  {
return testObject;
  }
}


//array of different values for 'start_key' argument
$values = array(

// float values
  /* 1  */  10.5,
-10.5,
12.3456789000e10,
12.34567890006E-10,
.5,

// array values
  /* 6  */  array(),
array(0),
array(1),
array(1, 2),
array('color' = 'red', 'item' = 'pen'),

// null values
  /* 11 */  NULL,
null,

// boolean values 
  /* 13 */  true,
false,
TRUE,
FALSE,

// empty string 
  /* 17 */  ,
'',

// string values
  /* 19 */  string,
'string',

// objects
  /* 21 */  new test(),

// undefined  variable
@$undefined_var,

// unset variable 
@$unset_var,

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

// loop through each element of the array for start_key 
// check the working of array_fill()
echo --- Testing array_fill() with different values for 'start_key' arg ---\n;
$counter = 1;
for($index = 0; $index  count($values); $index ++)
{
  echo -- Iteration $counter --\n;
  $start_key = $values[$index];
 
  var_dump( array_fill($start_key,$num,$val) );
 
  $counter ++;
}

// close the resource used
fclose($fp);

echo Done;
?
--EXPECTF--
*** Testing array_fill() : usage variations ***
--- Testing array_fill() with different values for 'start_key' arg ---
-- Iteration 1 --
array(2) {
  [10]=
  int(100)
  [11]=
  int(100)
}
-- Iteration 2 --
array(2) {
  [-10]=
  int(100)
  [0]=
  int(100)
}
-- Iteration 3 --
array(2) {
  [-1097262584]=
  int(100)
  [0]=
  int(100)
}
-- Iteration 4 --
array(2) {
  [0]=
  int(100)
  [1]=
  int(100)
}
-- Iteration 5 --
array(2) {
  [0]=
  int(100)
  [1]=
  int(100)
}
-- Iteration 6 --

Warning: array_fill() expects parameter 1 to be long, array given in %s on line 
%d
NULL
-- Iteration 7 --

Warning: array_fill() expects parameter 1 to be long, array given in %s on line 
%d
NULL
-- Iteration 8 --

Warning: array_fill() expects parameter 1 to be long, array given in %s on line 
%d
NULL
-- Iteration 9 --

Warning: array_fill() expects parameter 1 to be long, array given in %s on line 
%d
NULL
-- Iteration 10 --

Warning: array_fill() expects parameter 1 to be long, array given in %s on line 
%d
NULL
-- Iteration 11 --
array(2) {
  [0]=
  int(100)
  [1]=
  int(100)
}
-- Iteration 12 --
array(2) {
  [0]=
  int(100)
  [1]=
  int(100)
}
-- Iteration 13 --
array(2) {
  [1]=
  int(100)
  [2]=
  int(100)
}
-- Iteration 14 --
array(2) {
  [0]=
  int(100)
  [1]=
  int(100)
}
-- Iteration 15 --
array(2) {
  [1]=
  int(100)
  [2]=
  int(100)
}
-- Iteration 16 --
array(2) {
  [0]=
  int(100)
  [1]=
  int(100)
}
-- Iteration 17 --

array(2) {
  [0]=
  int(100)
  [1]=
  int(100)
}
-- Iteration 18 --

array(2) {
  [0]=
  int(100)
  [1]=
  int(100)
}
-- Iteration 19 --

Warning: array_fill() expects parameter 1 to be long, string given in %s on 
line %d
NULL
-- Iteration 20 --

Warning: array_fill() expects parameter 1 to be long, string given in %s on 
line %d
NULL
-- Iteration 21 --

Warning: array_fill() expects parameter 1 to be long, object given in %s on 
line %d
NULL
-- Iteration 22 --
array(2) {
  [0]=
  

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array array_unshift_basic1.phpt array_unshift_basic2.phpt array_unshift_error.phpt array_unshift_variation1.phpt array_unshift_variation2.phpt array

2007-10-19 Thread Raghubansh Kumar
kraghubaFri Oct 19 09:12:21 2007 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   array_unshift_variation3.phpt 
array_unshift_variation4.phpt 
array_unshift_variation5.phpt 
array_unshift_error.phpt 
array_unshift_variation6.phpt 
array_unshift_basic1.phpt 
array_unshift_variation7.phpt 
array_unshift_basic2.phpt 
array_unshift_variation8.phpt 
array_unshift_variation9.phpt 
array_unshift_variation1.phpt 
array_unshift_variation2.phpt 
  Log:
  New testcases for array_unshift() function
  

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

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

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

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

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

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

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

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

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

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

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

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_unshift_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_unshift_variation2.phpt
+++ php-src/ext/standard/tests/array/array_unshift_variation2.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_rand_basic1.phpt array_rand_basic2.phpt array_rand_error.phpt array_rand_variation1.phpt array_rand_variation2.phpt array_rand_variation3.phpt ar

2007-10-19 Thread Raghubansh Kumar
kraghubaSat Oct 20 05:34:35 2007 UTC

  Modified files:  
/php-src/ext/standard/tests/array   array_rand_variation2.phpt 
array_rand_variation3.phpt 
array_rand_error.phpt 
array_rand_variation4.phpt 
array_rand_variation5.phpt 
array_rand_variation6.phpt 
array_rand_basic1.phpt 
array_rand_basic2.phpt 
array_rand_variation1.phpt 
  Log:
  New testcases for array_rand() function
  http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_rand_variation2.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/array/array_rand_variation2.phpt
diff -u /dev/null 
php-src/ext/standard/tests/array/array_rand_variation2.phpt:1.2
--- /dev/null   Sat Oct 20 05:34:35 2007
+++ php-src/ext/standard/tests/array/array_rand_variation2.phpt Sat Oct 20 
05:34:35 2007
@@ -0,0 +1,341 @@
+--TEST--
+Test array_rand() function : usage variations - unexpected values for 
'num_req' parameter
+--FILE--
+?php
+/* Prototype  : mixed array_rand(array input [, int num_req])
+ * Description: Return key/keys for random entry/entries in the array 
+ * Source code: ext/standard/array.c
+*/
+
+/*
+* Test array_rand() with different types of values other than int passed to 
'num_req' argument
+* to see that function works with unexpeced data and generates warning message 
as required.
+*/
+
+echo *** Testing array_rand() : unexpected values for 'num_req' parameter 
***\n;
+
+// Initialise function arguments
+$input = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13);
+
+//get an unset variable
+$unset_var = 10;
+unset ($unset_var);
+
+//define a class
+class test
+{
+  var $t = 10;
+  function __toString()
+  {
+return 3object;
+  }
+}
+
+//array of values to iterate over
+$values = 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',
+
+// object data
+/*20*/  new test(),
+
+// undefined data
+/*21*/  @$undefined_var,
+
+// unset data
+/*22*/  @$unset_var,
+);
+
+
+// loop through each element of the array for different values for 'num_req' 
argument
+$count = 1;
+foreach($values as $value) {
+  echo \n-- Iteration $count --\n;
+  var_dump( array_rand($input,$value) );  
+  $count++;
+};
+
+echo Done;
+?
+--EXPECTF--
+*** Testing array_rand() : unexpected values for 'num_req' parameter ***
+
+-- Iteration 1 --
+
+Warning: array_rand(): Second argument has to be between 1 and the number of 
elements in the array in %s on line %d
+NULL
+
+-- Iteration 2 --
+int(%d)
+
+-- Iteration 3 --
+
+Warning: array_rand(): Second argument has to be between 1 and the number of 
elements in the array in %s on line %d
+NULL
+
+-- Iteration 4 --
+
+Warning: array_rand(): Second argument has to be between 1 and the number of 
elements in the array in %s on line %d
+NULL
+
+-- Iteration 5 --
+array(10) {
+  [0]=
+  int(%d)
+  [1]=
+  int(%d)
+  [2]=
+  int(%d)
+  [3]=
+  int(%d)
+  [4]=
+  int(%d)
+  [5]=
+  int(%d)
+  [6]=
+  int(%d)
+  [7]=
+  int(%d)
+  [8]=
+  int(%d)
+  [9]=
+  int(%d)
+}
+
+-- Iteration 6 --
+
+Warning: array_rand(): Second argument has to be between 1 and the number of 
elements in the array in %s on line %d
+NULL
+
+-- Iteration 7 --
+
+Warning: array_rand(): Second argument has to be between 1 and the number of 
elements in the array in %s on line %d
+NULL
+
+-- Iteration 8 --
+
+Warning: array_rand(): Second argument has to be between 1 and the number of 
elements in the array in %s on line %d
+NULL
+
+-- Iteration 9 --
+
+Warning: array_rand(): Second argument has to be between 1 and the number of 
elements in the array in %s on line %d
+NULL
+
+-- Iteration 10 --
+
+Warning: array_rand(): Second argument has to be between 1 and the number of 
elements in the array in %s on line %d
+NULL
+
+-- Iteration 11 --
+
+Warning: array_rand(): Second argument has to be between 1 and the number of 
elements in the array in %s on line %d
+NULL
+
+-- Iteration 12 --
+int(%d)
+
+-- Iteration 13 --
+
+Warning: array_rand(): Second argument has to be between 1 and the number of 
elements in the array in %s on line %d
+NULL
+
+-- Iteration 14 --
+int(%d)
+
+-- Iteration 15 --
+
+Warning: array_rand(): Second argument has to be between 1 and the number of 
elements in the array in %s on line %d
+NULL
+
+-- Iteration 16 --
+
+Warning: array_rand() 

[PHP-CVS] cvs: CVSROOT / avail

2007-10-19 Thread Philip Olson
philip  Fri Oct 19 12:41:07 2007 UTC

  Modified files:  
/CVSROOTavail 
  Log:
  phpdoc karma for Marcelo Araujo (msaraujo)
  
  http://cvs.php.net/viewvc.cgi/CVSROOT/avail?r1=1.1313r2=1.1314diff_format=u
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.1313 CVSROOT/avail:1.1314
--- CVSROOT/avail:1.1313Wed Oct 17 19:15:31 2007
+++ CVSROOT/avail   Fri Oct 19 12:41:06 2007
@@ -44,7 +44,7 @@
 # The PHP Documentation Group maintains the documentation and its
 # translations.
 
-avail|lucas,jmertic,bobby,takagi,gcc,cem,mfp,ansriniv,jsgoupil,mazzanet,dbs,frogger,coldocean,alan_k,fleaslob,torben,lynch,kk,ted,paul,mbritton,coar,joey,bibi,mrobinso,perugini,tzwenny,hirokawa,drews,paulsen,hartmann,leon,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,goba,samesch,jon,soneca,ronabop,glace,latoserver,rafael,jan,jcmeloni,chrullrich,mk,sebastian,troels,mathieu,phaethon,mj,corean,pandach,cycle98,vizvil,regina,cynic,jpm,dams,karoora,pcraft,suvia,zak,zimt,jmoore,ftfuture,ag315,bbonev,afortaleza,neotron,cg,delrom,jkj,hellekin,kgergely,cnewbill,fuzzy74,bjoern,fams,smasiello,dim,lucasr,cpereira,ernani,theseer,noribsd,subjective,ufux,hadar_p,asautins,dbenson,aleczapka,tom,amiller,cortesi,rarruda,betz,philip,alindeman,thyla,cucinato,zyprexia,tpug,mitja,conni,sts,georg,nmav,subbie,leszek,spheroid,slawek,alan_dangelo,ae,nohn,kaser01,visualmind,kurtz,luk,tronic,moh,bernd,yohgaki,fujimoto,gerzson,webler,spooky,cece,daniel,boo,nhoizey,joerg,imajes,hakan,c!
 
hief977,shlomi,raful,yuval,tomer,barak,ido,mork,lior,gal,adiju,cr_depend,florian,kappu,muricaru,dt,critix,ck,costra,fancao0515,tibee,eriksson,wenz,bs,anderson,tal,sander,matroz,ave,adu,mmeier,wentzel,scaro,aspinei,lmaxcar,manuzhai,darvina,peter,maxim,romakhin,n0nick,attila,sagi,kai,microbrain,rhheo,shimi,k.schroeder,djworld,emil,lboshell,netholic,dmitry83,progcom,verdana,yincheng,surfmax,nicos,chregu,msopacua,bbd,cyril,gregory,hudzilla,klean,mignoni,wiesemann,xqi,mersal,zruya,sean,staybyte,aber_sabeel,alzahrani,thomaslio,sfox,jippie,antonio,ahxiao,akcakayaa,allhibi,aner,black,class007,digo,dima,dorons,eshare,hpop1,itay,juppie,mrmatrix,saad,thomasgm,xbite,tobsn,jome,analytik,outsider,heymarcel,asmodean,bader,elmaystro,sp,truelight,gnuhacker,_batman_,sachat,dallas,dejan,zer0fill,steve3d,lm92,bradmssw,tahani,victor,erica,simonh,phpman,mrphp,notarius,joseph,mmkhajah,mohammed,proton,klootz,takashima,leoca,ahmad,abobader,fboudot,wurm,hakawy,felix,ahmedss,mahrous2020,yorgo,gal_ga,!
 abodive,ama,andras,hassen,jkhdk,okamura,popov,xman,fernandoc,avenger,h
win,tix,alrehawi_,liuming,ramysaweres,astone,shiflett,jaenecke,bdensley,adamchan,jingfs,murphy,potatotsang,the_q,jsheets,xelis,equerci,phpcatala,tofanini,umut,kriga,ray,royhuggins,logician,almanar,alexws,gonik,haiaw,lkwang_cn,shadowwulf,telecart,pongsakorn,naveed,shivas,tularis,angela,decorj,hitcho,kevinkee,nmee,thx1140,crotalus,didou,novotnyr,sil,traduim,gui,mgf,ivanr,michal,tsirman,momo,cysoft,firefox,kouber,mipac,muslem,tomysk,vemarkov,garth,lord_lele,stone,laacz,retnug,ernestyang,hatem,house,luisdaniel,nizar,nvivo,seth,tomh,danguer,adam,nio,wassago,beeven,colacino,zvaranka,cesarguru,chubu,dark2907,portoban,reven,wizzard,sywr,koendw83,rylin,webstudio,jsjohnst,dmanusset,et,pitiphan,mbr,cdalar,alrashoudi,hafid,enough,zhouhao007,jnorbi,lorenzohgh,denisr,coder03,jcclaros,thomas,freeman,rioter,jschultz,davey,belleto,jtacon,yuw,ohill,elfyn,noam,nathan,salman,cheezy,ene,rezaiqbal,purnomo,dufiga_php,ftp_geo,udhien,prio,luckyguy354,maf,handi,meme,satiri,maddankara,rildo,hd,ali,lpj!
 
,adhitama,engkongs,preilly,dave,marcelo,curt,fd,javi,mrmaster,fa,nlopess,vrana,apaxx,pjotrik,marduk,narcotia1234,enloma,trizo,xmadda,redshift,alifikri,coder,dodol_maniac,eflorin,adywarna,kyokpae,milans,lovchy,spermwhale,phaze,baoengb,derek,yannick,daan,xxiengb,ott,mg,kennyt,tomsommer,poz,zamolxe,bishmila,ph1,irchtml,rogamer,bortolini,sapfir,guru,ahmed,robinhood,sohli,amt,romain,hlecuanda,thessoro,nforbes,jolan,laze,bagilevi,young,shakaali,chokobo,portalufpa,teecee,blindman,holst,schst,mnv,sodhi,aidan,jellybob,lauer,shenkong,jad,robert,peterhuewe,ogre,techtonik,narigone,realtebo,krid,mclay,dasch,miwaniec,abdshomad,sammywg,aeoris,mez,jed,hsc,luckec,dmytton,choudesh,phpvcn,simp,michael,grantc,atex,katja,sthulbourn,mikl,kevinsz,roast,lsmith,tessus,gavinfo,rant,colder,ramsey,arkadius,bjori,erinet,omar,sixd,oliver,rquadling,timo,shadda,joeaccord,ezyang,ljbuesch,knut,asonge,gwynne,mkoppanen,ron,nicobn,jacques,void,mcbrown,simionea,preinheimer,stanprog|phpdoc,phpdoc-ar,phpdoc-bg,ph!
 pdoc-cs,phpdoc-da,phpdoc-de,phpdoc-el,phpdoc-es,phpdoc-fa_IR,phpdoc-fi
,phpdoc-fr,phpdoc-he,phpdoc-hk,phpdoc-hu,phpdoc-id,phpdoc-it,phpdoc-ja,phpdoc-kr,phpdoc-lt,phpdoc-nl,phpdoc-pl,phpdoc-pt_BR,phpdoc-pt,phpdoc-ro,phpdoc-ru,phpdoc-sk,phpdoc-sl,phpdoc-sv,phpdoc-tr,phpdoc-tw,phpdoc-zh,phpdoc-ca,phpdoc-no

[PHP-CVS] cvs: php-src(PHP_5_3) /ext/standard/tests/array array_fill_basic.phpt array_fill_error.phpt array_fill_object.phpt array_fill_variation1.phpt array_fill_variation2.phpt array_fill_variation3

2007-10-19 Thread Raghubansh Kumar
kraghubaFri Oct 19 18:31:16 2007 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/array   array_fill_error.phpt 
array_fill_variation1.phpt 
array_fill_variation2.phpt 
array_fill_object.phpt 
array_fill_variation3.phpt 
array_fill_variation4.phpt 
array_fill_variation5.phpt 
array_fill_basic.phpt 
  Log:
  New testcases for array_fill() function
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_fill_error.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_fill_error.phpt
+++ php-src/ext/standard/tests/array/array_fill_error.phpt
--TEST--
Test array_fill() function : error conditions 
--FILE--
?php
/* Prototype  : proto array array_fill(int start_key, int num, mixed val)
 * Description: Create an array containing num elements starting with index 
start_key each initialized to val 
 * Source code: ext/standard/array.c
*/


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

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

// More than  expected number of arguments
echo -- Testing array_fill() function with more than expected no. of arguments 
--\n;
$start_key = 0;
$num = 2;
$val = 1;
$extra_arg = 10;
var_dump( array_fill($start_key,$num,$val, $extra_arg) );

// Less than the expected number of arguments
echo -- Testing array_fill() function with less than expected no. of arguments 
--\n;
$start_key = 0;
$num = 2;
var_dump( array_fill($start_key,$num) );

//calling array_fill with negative values for 'num' parameter
$num = -1;
var_dump( array_fill($start_key,$num,$val) );

//callin array_fill with 'num' equal to zero value
$num = 0;
var_dump( array_fill($start_key,$num,$val) );

echo Done;
?
--EXPECTF--
*** Testing array_fill() : error conditions ***
-- Testing array_fill() function with Zero arguments --

Warning: array_fill() expects exactly 3 parameters, 0 given in %s on line %d
NULL
-- Testing array_fill() function with more than expected no. of arguments --

Warning: array_fill() expects exactly 3 parameters, 4 given in %s on line %d
NULL
-- Testing array_fill() function with less than expected no. of arguments --

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

Warning: array_fill(): Number of elements must be positive in %s on line %d
bool(false)

Warning: array_fill(): Number of elements must be positive in %s on line %d
bool(false)
Done
--UEXPECTF--
*** Testing array_fill() : error conditions ***
-- Testing array_fill() function with Zero arguments --

Warning: array_fill() expects exactly 3 parameters, 0 given in %s on line %d
NULL
-- Testing array_fill() function with more than expected no. of arguments --

Warning: array_fill() expects exactly 3 parameters, 4 given in %s on line %d
NULL
-- Testing array_fill() function with less than expected no. of arguments --

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

Warning: array_fill(): Number of elements must be positive in %s on line %d
bool(false)

Warning: array_fill(): Number of elements must be positive in %s on line %d
bool(false)
Done

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_fill_variation1.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/array/array_fill_variation1.phpt
+++ php-src/ext/standard/tests/array/array_fill_variation1.phpt
--TEST--
Test array_fill() function : usage variations  - unexpected values for 
'start_key' argument(Bug#43017)
--FILE--
?php
/* Prototype  : proto array array_fill(int start_key, int num, mixed val)
 * Description: Create an array containing num elements starting with index 
start_key each initialized to val 
 * Source code: ext/standard/array.c
 */

/*
 * testing array_fill() by passing different unexpected value for 'start_key' 
argument
 */

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

// Initialise function arguments not being substituted 
$num = 2;
$val = 100;

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

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

//define a class
class test
{
  var $t = 10;
  function __toString()
  {
return testObject;
  }
}


//array of different values for 'start_key' argument
$values = array(

// float values
  /* 1  */  10.5,
-10.5,
12.3456789000e10,
12.34567890006E-10,
.5,

// array values
  /* 6  */  array(),
array(0),
array(1),
array(1, 2),
array('color' = 'red', 'item' = 'pen'),

// null values
  /* 11 */  NULL,
null,

// boolean values 
  /* 13 

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/array array_rand_basic1.phpt array_rand_basic2.phpt array_rand_error.phpt array_rand_variation1.phpt array_rand_variation2.phpt array_rand_variation

2007-10-19 Thread Raghubansh Kumar
kraghubaFri Oct 19 18:39:51 2007 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/array   array_rand_variation1.phpt 
array_rand_error.phpt 
array_rand_variation2.phpt 
array_rand_variation3.phpt 
array_rand_variation4.phpt 
array_rand_variation5.phpt 
array_rand_variation6.phpt 
array_rand_basic1.phpt 
array_rand_basic2.phpt 
  Log:
  New tetscases for array_rand() function
  

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

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

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

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

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

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

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

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

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

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