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

2008-04-11 Thread changelog
changelog   Sat Apr 12 01:31:38 2008 UTC

  Modified files:  
/php-srcChangeLog 
  Log:
  ChangeLog update
  http://cvs.php.net/viewvc.cgi/php-src/ChangeLog?r1=1.3015r2=1.3016diff_format=u
Index: php-src/ChangeLog
diff -u php-src/ChangeLog:1.3015 php-src/ChangeLog:1.3016
--- php-src/ChangeLog:1.3015Fri Apr 11 01:31:38 2008
+++ php-src/ChangeLog   Sat Apr 12 01:31:37 2008
@@ -1,3 +1,545 @@
+2008-04-11  Hannes Magnusson  [EMAIL PROTECTED]
+
+* win32/build/mkdist.php:
+  Update url for go-pear
+
+* README.PEAR:
+  Apparenty go-pear no longer exists (bug#44699)
+
+2008-04-11  Felipe Pena  [EMAIL PROTECTED]
+
+* ext/standard/html.c
+  ext/standard/html.c
+  ext/standard/tests/strings/bug44703.phpt
+  ext/standard/tests/strings/bug44703.phpt:
+  MFB: Fixed bug #44703 (htmlspecialchars() does not detect bad character 
set
+  argument)
+
+* ext/standard/tests/strings/bug44703.phpt
+  ext/standard/tests/strings/bug44703.phpt
+  ext/standard/tests/strings/bug44703.phpt:
+1.1.4;
+  file bug44703.phpt was initially added on branch PHP_5_2.
+
+* (PHP_5_2)
+  NEWS
+  ext/standard/html.c:
+  Fixed bug #44703 (htmlspecialchars() does not detect bad character set
+  argument) (patch by Andy Wharmby)
+
+2008-04-11  Dmitry Stogov  [EMAIL PROTECTED]
+
+* ZendEngine2/zend_gc.c
+  ZendEngine2/zend_gc.c
+  ZendEngine2/zend_gc.h
+  ZendEngine2/zend_gc.h:
+  Speedup GC initialization
+
+2008-04-11  Robin Fernandes  [EMAIL PROTECTED]
+
+* (PHP_5_3)
+  ext/standard/tests/url/parse_url_variation_001.phpt
+  ext/standard/tests/url/parse_url_variation_001.phpt
+  ext/standard/tests/url/parse_url_variation_002.phpt
+  ext/standard/tests/url/parse_url_variation_002.phpt
+  ext/standard/tests/url/parse_url_variation_002.phpt:
+  Fix test parse_url_variation_002.phpt for 64bit platforms.
+
+* ext/standard/tests/url/parse_url_variation_002_32bit.phpt
+  ext/standard/tests/url/parse_url_variation_002_32bit.phpt
+  ext/standard/tests/url/parse_url_variation_002_64bit.phpt
+  ext/standard/tests/url/parse_url_variation_002_64bit.phpt:
+  
+  file parse_url_variation_002_32bit.phpt was initially added on branch
+  PHP_5_2.
+
+2008-04-11  Antony Dovgal  [EMAIL PROTECTED]
+
+* ext/posix/tests/posix_strerror_error.phpt
+  ext/posix/tests/posix_strerror_error.phpt
+  ext/posix/tests/posix_strerror_error.phpt
+  ext/posix/tests/posix_strerror_variation1.phpt
+  ext/posix/tests/posix_strerror_variation1.phpt
+  ext/posix/tests/posix_strerror_variation1.phpt:
+  fix tests
+
+* ext/posix/posix.c:
+  fix 2 segfaults in ZTS mode
+
+2008-04-11  Dmitry Stogov  [EMAIL PROTECTED]
+
+* (PHP_5_3)
+  NEWS
+  ZendEngine2/zend.c
+  ZendEngine2/zend.c
+  ZendEngine2/zend_execute_API.c
+  ZendEngine2/zend_execute_API.c
+  ZendEngine2/zend_vm_def.h
+  ZendEngine2/zend_vm_def.h
+  ZendEngine2/zend_vm_execute.h
+  ZendEngine2/zend_vm_execute.h:
+  Optimized ZEND_RETURN opcode to not allocate and copy return value if it 
is
+  not
+  used.
+
+2008-04-11  Steve Seear  [EMAIL PROTECTED]
+
+* ext/posix/tests/posix_get_last_error_error.phpt
+  ext/posix/tests/posix_get_last_error_error.phpt
+  ext/posix/tests/posix_getgid_error.phpt
+  ext/posix/tests/posix_getgid_error.phpt
+  ext/posix/tests/posix_getgrgid_error.phpt
+  ext/posix/tests/posix_getgrgid_error.phpt
+  ext/posix/tests/posix_getpgid_error.phpt
+  ext/posix/tests/posix_getpgid_error.phpt
+  ext/posix/tests/posix_getpgrp_error.phpt
+  ext/posix/tests/posix_getpgrp_error.phpt
+  ext/posix/tests/posix_getpid_error.phpt
+  ext/posix/tests/posix_getpid_error.phpt
+  ext/posix/tests/posix_getppid_error.phpt
+  ext/posix/tests/posix_getppid_error.phpt
+  ext/posix/tests/posix_getpwuid_error.phpt
+  ext/posix/tests/posix_getpwuid_error.phpt
+  ext/posix/tests/posix_getuid_error.phpt
+  ext/posix/tests/posix_getuid_error.phpt
+  ext/posix/tests/posix_kill_error.phpt
+  ext/posix/tests/posix_kill_error.phpt
+  ext/posix/tests/posix_strerror_error.phpt
+  ext/posix/tests/posix_strerror_error.phpt
+  ext/posix/tests/posix_times_error.phpt
+  ext/posix/tests/posix_times_error.phpt
+  ext/posix/tests/posix_uname_error.phpt
+  ext/posix/tests/posix_uname_error.phpt:
+  POSIX extension error tests
+
+* ext/posix/tests/posix_get_last_error_error.phpt
+  ext/posix/tests/posix_get_last_error_error.phpt
+  ext/posix/tests/posix_get_last_error_error.phpt
+  ext/posix/tests/posix_getgid_error.phpt
+  ext/posix/tests/posix_getgid_error.phpt
+  ext/posix/tests/posix_getgid_error.phpt
+  ext/posix/tests/posix_getgrgid_error.phpt
+  ext/posix/tests/posix_getgrgid_error.phpt
+  

[PHP-CVS-DAILY] cvs: ZendEngine2 / ChangeLog

2008-04-11 Thread changelog
changelog   Sat Apr 12 01:31:40 2008 UTC

  Modified files:  
/ZendEngine2ChangeLog 
  Log:
  ChangeLog update
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/ChangeLog?r1=1.1281r2=1.1282diff_format=u
Index: ZendEngine2/ChangeLog
diff -u ZendEngine2/ChangeLog:1.1281 ZendEngine2/ChangeLog:1.1282
--- ZendEngine2/ChangeLog:1.1281Fri Apr 11 01:31:42 2008
+++ ZendEngine2/ChangeLog   Sat Apr 12 01:31:40 2008
@@ -1,3 +1,23 @@
+2008-04-11  Dmitry Stogov  [EMAIL PROTECTED]
+
+* zend_gc.c
+  zend_gc.c
+  zend_gc.h
+  zend_gc.h:
+  Speedup GC initialization
+
+* zend.c
+  zend.c
+  zend_execute_API.c
+  zend_execute_API.c
+  zend_vm_def.h
+  zend_vm_def.h
+  zend_vm_execute.h
+  zend_vm_execute.h:
+  Optimized ZEND_RETURN opcode to not allocate and copy return value if it 
is
+  not
+  used.
+
 2008-04-10  Nuno Lopes  [EMAIL PROTECTED]
 
 * (PHP_5_3)
@@ -22605,7 +22625,7 @@
 2003-06-10  Jani Taskinen  [EMAIL PROTECTED]
 
 * zend_multiply.h:
-  - Missing $Id: ChangeLog,v 1.1281 2008/04/11 01:31:42 changelog Exp $ tag
+  - Missing $Id: ChangeLog,v 1.1282 2008/04/12 01:31:40 changelog Exp $ tag
 
 2003-06-10  James Cox  [EMAIL PROTECTED]
 
@@ -24329,7 +24349,7 @@
   zend_types.h
   zend_variables.c
   zend_variables.h:
-  - Added some missing CVS $Id: ChangeLog,v 1.1281 2008/04/11 01:31:42 
changelog Exp $ tags, headers and footers.
+  - Added some missing CVS $Id: ChangeLog,v 1.1282 2008/04/12 01:31:40 
changelog Exp $ tags, headers and footers.
 
 2003-01-30  Ilia Alshanetsky  [EMAIL PROTECTED]
 




[PHP-CVS] cvs: php-src(PHP_5_3) / NEWS

2008-04-11 Thread Marcus Boerger
helly   Fri Apr 11 08:35:54 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-srcNEWS 
  Log:
  BFN
  
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.965.2.155r2=1.2027.2.547.2.965.2.156diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.965.2.155 
php-src/NEWS:1.2027.2.547.2.965.2.156
--- php-src/NEWS:1.2027.2.547.2.965.2.155   Mon Apr  7 10:44:59 2008
+++ php-src/NEWSFri Apr 11 08:35:54 2008
@@ -2,8 +2,9 @@
 |||
 ?? ??? 20??, PHP 5.3.0
 - Removed the experimental RPL (master/slave) functions from mysqli. (Andrey)
-- Dropped zend.ze1_compatibility_mode (Dmitry)
+- Removed zend.ze1_compatibility_mode. (Dmitry)
 
+- Added pcre to list of standard extensions that cannot be disabled. (Marcus)
 - Added jump label operator (limited goto). (Dmitry, Sara)
 - Added ability to use stream wrappers in include_path (Gregory, Dmitry)
 - Added concept of delayed early binding that allows opcode caches to perform
@@ -12,7 +13,7 @@
 - Added new error mode E_DEPRECATED which is used to inform about stuff to be
   dropped in future PHP versions. (Lars Strojny, Felipe, Marcus)
 - Added and improved PHP syntax and semantics:
-  . Added NOWDOC. (Gwynne Raskind, Stas, Dmitry)
+  . Added NOWDOC syntax. (Gwynne Raskind, Stas, Dmitry)
   . Added HEREDOC syntax with double quotes. (Lars Strojny, Felipe)
   . Added ?: operator. (Marcus)
   . Added support for namespaces. (Dmitry, Stas, Gregory)
@@ -23,7 +24,7 @@
   . Improved checks for callbacks. (Marcus)
   . Added __DIR__ constant. (Lars Strojny)
   . Added PHP_MAJOR_VERSION, PHP_MINOR_VERSION, PHP_RELEASE_VERSION,
-PHP_EXTRA_VERSION, PHP_VERSION_ID, PHP_ZTS and PHP_DEBUG constants (Pierre)
+PHP_EXTRA_VERSION, PHP_VERSION_ID, PHP_ZTS and PHP_DEBUG constants. 
(Pierre)
 - Added new date/time functionality: (Derick)
   . date_parse_from_format(): Parse date/time strings according to a format.
   . date_create_from_format()/DateTime::createFromFormat(): Create a date/time
@@ -48,6 +49,7 @@
   . support for date/time strings returned by MS SQL.
   . support for serialization and unserialization of DateTime objects.
 - Added functionality to SPL extension:
+  . Added SPL to list of standard extensions that cannot be disabled. (Marcus)
   . Added ability to store associative information with objects in
 SplObjectStorage. (Marcus)
   . Added ArrayAccess support to SplObjectStorage. (Marcus)



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



[PHP-CVS] cvs: php-src /ext/posix/tests posix_get_last_error_error.phpt posix_getgid_error.phpt posix_getgrgid_error.phpt posix_getpgid_error.phpt posix_getpgrp_error.phpt posix_getpid_error.phpt posi

2008-04-11 Thread Steve Seear
stevseeaFri Apr 11 09:33:59 2008 UTC

  Modified files:  
/php-src/ext/posix/testsposix_times_error.phpt 
posix_get_last_error_error.phpt 
posix_getgrgid_error.phpt 
posix_getpgrp_error.phpt 
posix_strerror_error.phpt 
posix_getpwuid_error.phpt 
posix_uname_error.phpt 
posix_getpgid_error.phpt 
posix_getpid_error.phpt 
posix_getuid_error.phpt 
posix_getgid_error.phpt 
posix_getppid_error.phpt 
posix_kill_error.phpt 
  Log:
  POSIX extension error tests
  http://cvs.php.net/viewvc.cgi/php-src/ext/posix/tests/posix_times_error.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/posix/tests/posix_times_error.phpt
diff -u /dev/null php-src/ext/posix/tests/posix_times_error.phpt:1.2
--- /dev/null   Fri Apr 11 09:33:59 2008
+++ php-src/ext/posix/tests/posix_times_error.phpt  Fri Apr 11 09:33:58 2008
@@ -0,0 +1,31 @@
+--TEST--
+Test posix_times() function : error conditions 
+--SKIPIF--
+?php 
+   if(!extension_loaded(posix)) print skip - POSIX extension not 
loaded; 
+?
+--FILE--
+?php
+/* Prototype  : proto array posix_times(void)
+ * Description: Get process times (POSIX.1, 4.5.2) 
+ * Source code: ext/posix/posix.c
+ * Alias to functions: 
+ */
+
+echo *** Testing posix_times() : error conditions ***\n;
+
+// One argument
+echo \n-- Testing posix_times() function with one argument --\n;
+$extra_arg = 10;;
+var_dump( posix_times($extra_arg) );
+
+echo Done;
+?
+--EXPECTF--
+*** Testing posix_times() : error conditions ***
+
+-- Testing posix_times() function with one argument --
+
+Warning: posix_times() expects exactly 0 parameters, 1 given in %s on line %d
+NULL
+Done
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/tests/posix_get_last_error_error.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/posix/tests/posix_get_last_error_error.phpt
diff -u /dev/null php-src/ext/posix/tests/posix_get_last_error_error.phpt:1.2
--- /dev/null   Fri Apr 11 09:33:59 2008
+++ php-src/ext/posix/tests/posix_get_last_error_error.phpt Fri Apr 11 
09:33:58 2008
@@ -0,0 +1,31 @@
+--TEST--
+Test posix_get_last_error() function : error conditions 
+--SKIPIF--
+?php 
+   if(!extension_loaded(posix)) print skip - POSIX extension not 
loaded; 
+?
+--FILE--
+?php
+/* Prototype  : proto int posix_get_last_error(void)
+ * Description: Retrieve the error number set by the last posix function which 
failed. 
+ * Source code: ext/posix/posix.c
+ * Alias to functions: posix_errno
+ */
+
+echo *** Testing posix_get_last_error() : error conditions ***\n;
+
+// One argument
+echo \n-- Testing posix_get_last_error() function with one argument --\n;
+$extra_arg = 10;
+var_dump( posix_get_last_error($extra_arg) );
+
+echo Done;
+?
+--EXPECTF--
+*** Testing posix_get_last_error() : error conditions ***
+
+-- Testing posix_get_last_error() function with one argument --
+
+Warning: posix_get_last_error() expects exactly 0 parameters, 1 given in %s on 
line %d
+NULL
+Done
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/tests/posix_getgrgid_error.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/posix/tests/posix_getgrgid_error.phpt
diff -u /dev/null php-src/ext/posix/tests/posix_getgrgid_error.phpt:1.2
--- /dev/null   Fri Apr 11 09:33:59 2008
+++ php-src/ext/posix/tests/posix_getgrgid_error.phpt   Fri Apr 11 09:33:58 2008
@@ -0,0 +1,53 @@
+--TEST--
+Test posix_getgrgid() function : error conditions 
+--SKIPIF--
+?php 
+   if(!extension_loaded(posix)) print skip - POSIX extension not 
loaded; 
+?
+--FILE--
+?php
+/* Prototype  : proto array posix_getgrgid(long gid)
+ * Description: Group database access (POSIX.1, 9.2.1) 
+ * Source code: ext/posix/posix.c
+ * Alias to functions: 
+ */
+
+/*
+ * add a comment here to say what the test is supposed to do
+ */
+
+echo *** Testing posix_getgrgid() : error conditions ***\n;
+
+// Zero arguments
+echo \n-- Testing posix_getgrgid() function with Zero arguments --\n;
+var_dump( posix_getgrgid() );
+
+//Test posix_getgrgid with one more than the expected number of arguments
+echo \n-- Testing posix_getgrgid() function with more than expected no. of 
arguments --\n;
+
+$extra_arg = 10;
+$gid = 0;
+var_dump( posix_getgrgid($gid, $extra_arg) );
+
+echo \n-- Testing posix_getgrgid() function with a negative group id --\n;
+$gid = -999;
+var_dump( posix_getgrgid($gid));
+
+echo Done;
+?
+--EXPECTF--
+*** Testing posix_getgrgid() : error conditions ***
+
+-- Testing posix_getgrgid() function with Zero arguments --
+
+Warning: posix_getgrgid() expects exactly 1 parameter, 0 given in %s on line %d
+bool(false)
+
+-- Testing posix_getgrgid() function with more than expected no. of arguments 

[PHP-CVS] cvs: php-src /ext/posix posix.c

2008-04-11 Thread Antony Dovgal
tony2001Fri Apr 11 10:59:50 2008 UTC

  Modified files:  
/php-src/ext/posix  posix.c 
  Log:
  fix 2 segfaults in ZTS mode
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/posix.c?r1=1.97r2=1.98diff_format=u
Index: php-src/ext/posix/posix.c
diff -u php-src/ext/posix/posix.c:1.97 php-src/ext/posix/posix.c:1.98
--- php-src/ext/posix/posix.c:1.97  Tue Mar  4 23:39:15 2008
+++ php-src/ext/posix/posix.c   Fri Apr 11 10:59:50 2008
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: posix.c,v 1.97 2008/03/04 23:39:15 felipe Exp $ */
+/* $Id: posix.c,v 1.98 2008/04/11 10:59:50 tony2001 Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include config.h
@@ -147,7 +147,7 @@
 static PHP_MINFO_FUNCTION(posix)
 {
php_info_print_table_start();
-   php_info_print_table_row(2, Revision, $Revision: 1.97 $);
+   php_info_print_table_row(2, Revision, $Revision: 1.98 $);
php_info_print_table_end();
 }
 /* }}} */
@@ -873,7 +873,7 @@
 #if defined(ZTS)  defined(HAVE_GETGRGID_R)  defined(_SC_GETGR_R_SIZE_MAX)
int ret;
struct group _g;
-   struct group *retgrptr;
+   struct group *retgrptr = NULL;
long grbuflen;
char *grbuf;
 #endif
@@ -892,7 +892,7 @@
grbuf = emalloc(grbuflen);
 
ret = getgrgid_r(gid, _g, grbuf, grbuflen, retgrptr);
-   if (ret) {
+   if (ret || retgrptr == NULL) {
POSIX_G(last_error) = ret;
efree(grbuf);
RETURN_FALSE;
@@ -1009,7 +1009,7 @@
pwbuf = emalloc(pwbuflen);
 
ret = getpwuid_r(uid, _pw, pwbuf, pwbuflen, retpwptr);
-   if (ret) {
+   if (ret || retpwptr == NULL) {
POSIX_G(last_error) = ret;
efree(pwbuf);
RETURN_FALSE;



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



Re: [PHP-CVS] cvs: php-src(PHP_5_3) /ext/spl config.m4

2008-04-11 Thread Hannes Magnusson
On Fri, Apr 11, 2008 at 10:38 AM, Marcus Boerger [EMAIL PROTECTED] wrote:
 Hello Antony,

   I've put both in the NEWS file. The commit however did not go thriough.
  Should we do anything more beside putting it in the NEWS and having a mail
  to docs now (thx for writing there)?

Nope. But rather then CCing phpdoc@ after the commit you may want to
use the [DOC] tag in your commit message to automatically CC phpdoc@

-Hannes

-- 
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/posix posix.c

2008-04-11 Thread Antony Dovgal
tony2001Fri Apr 11 11:00:24 2008 UTC

  Modified files:  (Branch: PHP_5_2)
/php-src/ext/posix  posix.c 
  Log:
  MFH: fix 2 segfaults in ZTS mode
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/posix.c?r1=1.70.2.3.2.17r2=1.70.2.3.2.18diff_format=u
Index: php-src/ext/posix/posix.c
diff -u php-src/ext/posix/posix.c:1.70.2.3.2.17 
php-src/ext/posix/posix.c:1.70.2.3.2.18
--- php-src/ext/posix/posix.c:1.70.2.3.2.17 Mon Dec 31 07:20:10 2007
+++ php-src/ext/posix/posix.c   Fri Apr 11 11:00:24 2008
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: posix.c,v 1.70.2.3.2.17 2007/12/31 07:20:10 sebastian Exp $ */
+/* $Id: posix.c,v 1.70.2.3.2.18 2008/04/11 11:00:24 tony2001 Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include config.h
@@ -147,7 +147,7 @@
 static PHP_MINFO_FUNCTION(posix)
 {
php_info_print_table_start();
-   php_info_print_table_row(2, Revision, $Revision: 1.70.2.3.2.17 $);
+   php_info_print_table_row(2, Revision, $Revision: 1.70.2.3.2.18 $);
php_info_print_table_end();
 }
 /* }}} */
@@ -875,7 +875,7 @@
 #if defined(ZTS)  defined(HAVE_GETGRGID_R)  defined(_SC_GETGR_R_SIZE_MAX)
int ret;
struct group _g;
-   struct group *retgrptr;
+   struct group *retgrptr = NULL;
long grbuflen;
char *grbuf;
 #endif
@@ -894,7 +894,7 @@
grbuf = emalloc(grbuflen);
 
ret = getgrgid_r(gid, _g, grbuf, grbuflen, retgrptr);
-   if (ret) {
+   if (ret || retgrptr == NULL) {
POSIX_G(last_error) = ret;
efree(grbuf);
RETURN_FALSE;
@@ -1009,7 +1009,7 @@
pwbuf = emalloc(pwbuflen);
 
ret = getpwuid_r(uid, _pw, pwbuf, pwbuflen, retpwptr);
-   if (ret) {
+   if (ret || retpwptr == NULL) {
POSIX_G(last_error) = ret;
efree(pwbuf);
RETURN_FALSE;



-- 
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/posix/tests posix_getgrgid_variation.phpt posix_getpgid_variation.phpt posix_getpwuid_variation.phpt posix_kill_variation1.phpt posix_kill_variation2.phpt posix_st

2008-04-11 Thread Steve Seear
stevseeaFri Apr 11 09:27:41 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/posix/testsposix_getpwuid_variation.phpt 
posix_kill_variation1.phpt 
posix_strerror_variation1.phpt 
posix_getpgid_variation.phpt 
posix_getgrgid_variation.phpt 
posix_kill_variation2.phpt 
  Log:
  POSIX extension variation tests
  

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

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

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

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

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

http://cvs.php.net/viewvc.cgi/php-src/ext/posix/tests/posix_kill_variation2.phpt?view=markuprev=1.1
Index: php-src/ext/posix/tests/posix_kill_variation2.phpt
+++ php-src/ext/posix/tests/posix_kill_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/posix/tests posix_get_last_error_error.phpt posix_getgid_error.phpt posix_getgrgid_error.phpt posix_getpgid_error.phpt posix_getpgrp_error.phpt posix_getpid_error.

2008-04-11 Thread Steve Seear
stevseeaFri Apr 11 09:33:09 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/posix/testsposix_getgrgid_error.phpt 
posix_getpwuid_error.phpt 
posix_getpgid_error.phpt 
posix_getpgrp_error.phpt 
posix_get_last_error_error.phpt 
posix_times_error.phpt 
posix_strerror_error.phpt 
posix_getpid_error.phpt 
posix_uname_error.phpt 
posix_kill_error.phpt 
posix_getuid_error.phpt 
posix_getppid_error.phpt 
posix_getgid_error.phpt 
  Log:
  POSIX extension error tests
  

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

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

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

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

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

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

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

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

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

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

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

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

http://cvs.php.net/viewvc.cgi/php-src/ext/posix/tests/posix_getgid_error.phpt?view=markuprev=1.1
Index: php-src/ext/posix/tests/posix_getgid_error.phpt
+++ php-src/ext/posix/tests/posix_getgid_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/posix/tests posix_get_last_error_error.phpt posix_getgid_error.phpt posix_getgrgid_error.phpt posix_getpgid_error.phpt posix_getpgrp_error.phpt posix_getpid_error.

2008-04-11 Thread Steve Seear
stevseeaFri Apr 11 09:32:31 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/posix/testsposix_getuid_error.phpt 
posix_kill_error.phpt 
posix_get_last_error_error.phpt 
posix_getgrgid_error.phpt 
posix_getgid_error.phpt 
posix_getpgid_error.phpt 
posix_getpwuid_error.phpt 
posix_getppid_error.phpt 
posix_getpid_error.phpt 
posix_strerror_error.phpt 
posix_getpgrp_error.phpt 
posix_times_error.phpt 
posix_uname_error.phpt 
  Log:
  POSIX extension error tests
  

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

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

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

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

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

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

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

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

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

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

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

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

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



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



Re: [PHP-CVS] cvs: php-src(PHP_5_3) /ext/spl config.m4

2008-04-11 Thread Marcus Boerger
Hello Antony,

  I've put both in the NEWS file. The commit however did not go thriough.
Should we do anything more beside putting it in the NEWS and having a mail
to docs now (thx for writing there)?

marcus

Friday, April 11, 2008, 10:23:47 AM, you wrote:

 I believe this should documented.

 On 10.04.2008 01:53, Marcus Boerger wrote:
 helly Wed Apr  9 21:53:00 2008 UTC
 
   Modified files:  (Branch: PHP_5_3)
 /php-src/ext/spl  config.m4 
   Log:
   - MFH SPL can no longer be disabld as discussed some time ago (checked 
 back with RM)

 On 10.04.2008 23:42, Marcus Boerger wrote:
 helly Thu Apr 10 19:42:32 2008 UTC
 
   Modified files:  (Branch: PHP_5_3)
 /php-src/ext/pcreconfig0.m4 
   Log:
   - MFH No longer allow to disable pcre

 -- 
 Wbr, 
 Antony Dovgal




Best regards,
 Marcus


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



[PHP-CVS] cvs: php-src /ext/posix/tests posix_getgrgid_variation.phpt posix_getpgid_variation.phpt posix_getpwuid_variation.phpt posix_kill_variation1.phpt posix_kill_variation2.phpt posix_strerror_va

2008-04-11 Thread Steve Seear
stevseeaFri Apr 11 09:29:08 2008 UTC

  Modified files:  
/php-src/ext/posix/testsposix_getgrgid_variation.phpt 
posix_getpgid_variation.phpt 
posix_kill_variation2.phpt 
posix_strerror_variation1.phpt 
posix_getpwuid_variation.phpt 
posix_kill_variation1.phpt 
  Log:
  POSIX extension variation tests (failing due to spurious array to string 
conversion notices).
  http://cvs.php.net/viewvc.cgi/php-src/ext/posix/tests/posix_getgrgid_variation.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/posix/tests/posix_getgrgid_variation.phpt
diff -u /dev/null php-src/ext/posix/tests/posix_getgrgid_variation.phpt:1.2
--- /dev/null   Fri Apr 11 09:29:08 2008
+++ php-src/ext/posix/tests/posix_getgrgid_variation.phpt   Fri Apr 11 
09:29:08 2008
@@ -0,0 +1,267 @@
+--TEST--
+Test posix_getgrgid() function : usage variations  - parameter types
+--SKIPIF--
+?php 
+   if(!extension_loaded(posix)) print skip - POSIX extension not 
loaded; 
+?
+--FILE--
+?php
+/* Prototype  : proto array posix_getgrgid(long gid)
+ * Description: Group database access (POSIX.1, 9.2.1) 
+ * Source code: ext/posix/posix.c
+ * Alias to functions: 
+ */
+
+echo *** Testing posix_getgrgid() : usage variations ***\n;
+
+// Initialise function arguments not being substituted (if any)
+
+//get an unset variable
+$unset_var = 10;
+unset ($unset_var);
+
+//array of values to iterate over
+$values = array(
+
+  // float data
+  10.5,
+  -10.5,
+  10.1234567e10,
+  10.7654321E-10,
+  .5,
+
+  // array data
+  array(),
+  array(0),
+  array(1),
+  array(1, 2),
+  array('color' = 'red', 'item' = 'pen'),
+
+  // null data
+  NULL,
+  null,
+
+  // boolean data
+  true,
+  false,
+  TRUE,
+  FALSE,
+
+  // empty data
+  ,
+  '',
+
+  // string data
+  string,
+  'string',
+
+  // undefined data
+  $undefined_var,
+
+  // unset data
+  $unset_var,
+
+  // object data
+  new stdclass(),
+);
+
+// loop through each element of the array for gid
+
+foreach($values as $value) {
+  echo \nArg value $value \n;
+  $result = posix_getgrgid($value);
+  if ((is_array($result)  (count($result) == 4)) 
+  || 
+  ($result === false)) {
+  echo valid output\n;
+  } else {
+  var_dump($result);
+  }
+};
+
+echo Done;
+?
+--EXPECTF--
+*** Testing posix_getgrgid() : usage variations ***
+
+Notice: Undefined variable: undefined_var in %s on line %d
+
+Notice: Undefined variable: unset_var in %s on line %d
+
+Arg value 10.5 
+valid output
+
+Arg value -10.5 
+valid output
+
+Arg value 101234567000 
+valid output
+
+Arg value 1.07654321E-9 
+valid output
+
+Arg value 0.5 
+valid output
+
+Arg value Array 
+
+Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on 
line %d
+valid output
+
+Arg value Array 
+
+Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on 
line %d
+valid output
+
+Arg value Array 
+
+Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on 
line %d
+valid output
+
+Arg value Array 
+
+Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on 
line %d
+valid output
+
+Arg value Array 
+
+Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on 
line %d
+valid output
+
+Arg value  
+valid output
+
+Arg value  
+valid output
+
+Arg value 1 
+valid output
+
+Arg value  
+valid output
+
+Arg value 1 
+valid output
+
+Arg value  
+valid output
+
+Arg value  
+
+Warning: posix_getgrgid() expects parameter 1 to be long, string given in %s 
on line %d
+valid output
+
+Arg value  
+
+Warning: posix_getgrgid() expects parameter 1 to be long, string given in %s 
on line %d
+valid output
+
+Arg value string 
+
+Warning: posix_getgrgid() expects parameter 1 to be long, string given in %s 
on line %d
+valid output
+
+Arg value string 
+
+Warning: posix_getgrgid() expects parameter 1 to be long, string given in %s 
on line %d
+valid output
+
+Arg value  
+valid output
+
+Arg value  
+valid output
+
+Catchable fatal error: Object of class stdClass could not be converted to 
string in %s on line %d
+--UEXPECTF--
+*** Testing posix_getgrgid() : usage variations ***
+
+Notice: Undefined variable: undefined_var in %s on line %d
+
+Notice: Undefined variable: unset_var in %s on line %d
+
+Arg value 10.5 
+valid output
+
+Arg value -10.5 
+valid output
+
+Arg value 101234567000 
+valid output
+
+Arg value 1.07654321E-9 
+valid output
+
+Arg value 0.5 
+valid output
+
+Arg value Array 
+
+Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on 
line %d
+valid output
+
+Arg value Array 
+
+Warning: posix_getgrgid() expects parameter 1 to be long, array given in %s on 

[PHP-CVS] cvs: php-src(PHP_5_2) /ext/posix/tests posix_strerror_error.phpt posix_strerror_variation1.phpt

2008-04-11 Thread Antony Dovgal
tony2001Fri Apr 11 11:06:18 2008 UTC

  Modified files:  (Branch: PHP_5_2)
/php-src/ext/posix/testsposix_strerror_error.phpt 
posix_strerror_variation1.phpt 
  Log:
  fix tests
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/tests/posix_strerror_error.phpt?r1=1.1.2.1r2=1.1.2.2diff_format=u
Index: php-src/ext/posix/tests/posix_strerror_error.phpt
diff -u php-src/ext/posix/tests/posix_strerror_error.phpt:1.1.2.1 
php-src/ext/posix/tests/posix_strerror_error.phpt:1.1.2.2
--- php-src/ext/posix/tests/posix_strerror_error.phpt:1.1.2.1   Fri Apr 11 
09:32:31 2008
+++ php-src/ext/posix/tests/posix_strerror_error.phpt   Fri Apr 11 11:06:18 2008
@@ -42,5 +42,5 @@
 bool(false)
 
 -- Testing posix_strerror() function with invalid error number --
-string(24) Unknown error 4294966297
+string(%d) Unknown error %d
 Done
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/tests/posix_strerror_variation1.phpt?r1=1.1.2.1r2=1.1.2.2diff_format=u
Index: php-src/ext/posix/tests/posix_strerror_variation1.phpt
diff -u php-src/ext/posix/tests/posix_strerror_variation1.phpt:1.1.2.1 
php-src/ext/posix/tests/posix_strerror_variation1.phpt:1.1.2.2
--- php-src/ext/posix/tests/posix_strerror_variation1.phpt:1.1.2.1  Fri Apr 
11 09:27:41 2008
+++ php-src/ext/posix/tests/posix_strerror_variation1.phpt  Fri Apr 11 
11:06:18 2008
@@ -1,5 +1,5 @@
 --TEST--
-Test posix_strerror() function : usage variations  - type here specifics of 
this variation
+Test posix_strerror() function : usage variations
 --SKIPIF--
 ?php 
if(!extension_loaded(posix)) print skip - POSIX extension not 
loaded; 
@@ -89,10 +89,10 @@
 string(18) No child processes
 
 Arg value -10.5 
-string(24) Unknown error 4294967286
+string(%d) Unknown error %d
 
 Arg value 101234567000 
-string(24) Unknown error 2450319192
+string(%d) Unknown error %d
 
 Arg value 1.07654321E-9 
 string(7) Success



-- 
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/url parse_url_variation_001.phpt parse_url_variation_002.phpt parse_url_variation_002_32bit.phpt parse_url_variation_002_64bit.phpt

2008-04-11 Thread Robin Fernandes
robinf  Fri Apr 11 14:35:04 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/url parse_url_variation_002_64bit.phpt 
parse_url_variation_002_32bit.phpt 

  Removed files:   
/php-src/ext/standard/tests/url parse_url_variation_002.phpt 

  Modified files:  
/php-src/ext/standard/tests/url parse_url_variation_001.phpt 
  Log:
  Fix test parse_url_variation_002.phpt for 64bit platforms.
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/url/parse_url_variation_001.phpt?r1=1.1.2.2r2=1.1.2.3diff_format=u
Index: php-src/ext/standard/tests/url/parse_url_variation_001.phpt
diff -u php-src/ext/standard/tests/url/parse_url_variation_001.phpt:1.1.2.2 
php-src/ext/standard/tests/url/parse_url_variation_001.phpt:1.1.2.3
--- php-src/ext/standard/tests/url/parse_url_variation_001.phpt:1.1.2.2 Fri Apr 
11 08:57:11 2008
+++ php-src/ext/standard/tests/url/parse_url_variation_001.phpt Fri Apr 11 
14:35:04 2008
@@ -1,5 +1,5 @@
 --TEST--
-Test parse_url() function : usage variations  - type here specifics of this 
variation
+Test parse_url() function : usage variations  - unexpected type for arg 1.
 --FILE--
 ?php
 /* Prototype  : proto mixed parse_url(string url, [int url_component])

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

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/url/parse_url_variation_002_32bit.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/url/parse_url_variation_002_32bit.phpt
+++ php-src/ext/standard/tests/url/parse_url_variation_002_32bit.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/url parse_url_variation_001.phpt parse_url_variation_002.phpt

2008-04-11 Thread Robin Fernandes
robinf  Fri Apr 11 14:35:06 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/ext/standard/tests/url parse_url_variation_002.phpt 
parse_url_variation_001.phpt 
  Log:
  Fix test parse_url_variation_002.phpt for 64bit platforms.
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/url/parse_url_variation_002.phpt?r1=1.1.4.2r2=1.1.4.3diff_format=u
Index: php-src/ext/standard/tests/url/parse_url_variation_002.phpt
diff -u php-src/ext/standard/tests/url/parse_url_variation_002.phpt:1.1.4.2 
php-src/ext/standard/tests/url/parse_url_variation_002.phpt:1.1.4.3
--- php-src/ext/standard/tests/url/parse_url_variation_002.phpt:1.1.4.2 Fri Apr 
11 08:57:17 2008
+++ php-src/ext/standard/tests/url/parse_url_variation_002.phpt Fri Apr 11 
14:35:05 2008
@@ -1,5 +1,5 @@
 --TEST--
-Test parse_url() function : usage variations  - type here specifics of this 
variation
+Test parse_url() function : usage variations  - unexpected type for arg 2.
 --FILE--
 ?php
 /* Prototype  : proto mixed parse_url(string url, [int url_component])
@@ -106,7 +106,7 @@
 }
 
 Arg value 101234567000 
-Error: 2 - parse_url(): Invalid URL component identifier 2147483647, %s(71)
+Error: 2 - parse_url(): Invalid URL component identifier %d, %s(71)
 bool(false)
 
 Arg value 1.07654321E-9 
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/url/parse_url_variation_001.phpt?r1=1.1.4.2r2=1.1.4.3diff_format=u
Index: php-src/ext/standard/tests/url/parse_url_variation_001.phpt
diff -u php-src/ext/standard/tests/url/parse_url_variation_001.phpt:1.1.4.2 
php-src/ext/standard/tests/url/parse_url_variation_001.phpt:1.1.4.3
--- php-src/ext/standard/tests/url/parse_url_variation_001.phpt:1.1.4.2 Fri Apr 
11 08:57:17 2008
+++ php-src/ext/standard/tests/url/parse_url_variation_001.phpt Fri Apr 11 
14:35:06 2008
@@ -1,5 +1,5 @@
 --TEST--
-Test parse_url() function : usage variations  - type here specifics of this 
variation
+Test parse_url() function : usage variations  - unexpected type for arg 1.
 --FILE--
 ?php
 /* Prototype  : proto mixed parse_url(string url, [int url_component])



-- 
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) / NEWS /ext/standard html.c /ext/standard/tests/strings bug44703.phpt

2008-04-11 Thread Felipe Pena
felipe  Fri Apr 11 19:01:25 2008 UTC

  Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/strings bug44703.phpt 

  Modified files:  
/php-srcNEWS 
/php-src/ext/standard   html.c 
  Log:
  Fixed bug #44703 (htmlspecialchars() does not detect bad character set 
argument) (patch by Andy Wharmby)
  
  
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1141r2=1.2027.2.547.2.1142diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.1141 php-src/NEWS:1.2027.2.547.2.1142
--- php-src/NEWS:1.2027.2.547.2.1141Thu Apr 10 22:31:09 2008
+++ php-src/NEWSFri Apr 11 19:01:24 2008
@@ -1,6 +1,8 @@
 PHPNEWS
 |||
 ?? Apr 2008, PHP 5.2.6
+- Fixed bug #44703 (htmlspecialchars() does not detect bad character set 
argument)
+  (Andy Wharmby)
 
 10 Apr 2008, PHP 5.2.6RC5
 - Fixed incorrect heredoc handling when label is used within the block.
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/html.c?r1=1.111.2.2.2.19r2=1.111.2.2.2.20diff_format=u
Index: php-src/ext/standard/html.c
diff -u php-src/ext/standard/html.c:1.111.2.2.2.19 
php-src/ext/standard/html.c:1.111.2.2.2.20
--- php-src/ext/standard/html.c:1.111.2.2.2.19  Tue Jan 29 13:39:03 2008
+++ php-src/ext/standard/html.c Fri Apr 11 19:01:25 2008
@@ -18,7 +18,7 @@
+--+
 */
 
-/* $Id: html.c,v 1.111.2.2.2.19 2008/01/29 13:39:03 tony2001 Exp $ */
+/* $Id: html.c,v 1.111.2.2.2.20 2008/04/11 19:01:25 felipe Exp $ */
 
 /*
  * HTML entity resources:
@@ -847,7 +847,7 @@

/* now walk the charset map and look for the codeset */
for (i = 0; charset_map[i].codeset; i++) {
-   if (strncasecmp(charset_hint, charset_map[i].codeset, 
len) == 0) {
+   if (len == strlen(charset_map[i].codeset)  
strncasecmp(charset_hint, charset_map[i].codeset, len) == 0) {
charset = charset_map[i].charset;
found = 1;
break;

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/bug44703.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/strings/bug44703.phpt
+++ php-src/ext/standard/tests/strings/bug44703.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 html.c /ext/standard/tests/strings bug44703.phpt

2008-04-11 Thread Felipe Pena
felipe  Fri Apr 11 19:06:12 2008 UTC

  Added files: (Branch: PHP_5_3)
/php-src/ext/standard/tests/strings bug44703.phpt 

  Modified files:  
/php-src/ext/standard   html.c 
  Log:
  MFB: Fixed bug #44703 (htmlspecialchars() does not detect bad character set 
argument)
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/html.c?r1=1.111.2.2.2.14.2.8r2=1.111.2.2.2.14.2.9diff_format=u
Index: php-src/ext/standard/html.c
diff -u php-src/ext/standard/html.c:1.111.2.2.2.14.2.8 
php-src/ext/standard/html.c:1.111.2.2.2.14.2.9
--- php-src/ext/standard/html.c:1.111.2.2.2.14.2.8  Tue Jan 29 22:03:01 2008
+++ php-src/ext/standard/html.c Fri Apr 11 19:06:12 2008
@@ -18,7 +18,7 @@
+--+
 */
 
-/* $Id: html.c,v 1.111.2.2.2.14.2.8 2008/01/29 22:03:01 stas Exp $ */
+/* $Id: html.c,v 1.111.2.2.2.14.2.9 2008/04/11 19:06:12 felipe Exp $ */
 
 /*
  * HTML entity resources:
@@ -842,7 +842,7 @@

/* now walk the charset map and look for the codeset */
for (i = 0; charset_map[i].codeset; i++) {
-   if (strncasecmp(charset_hint, charset_map[i].codeset, 
len) == 0) {
+   if (len == strlen(charset_map[i].codeset)  
strncasecmp(charset_hint, charset_map[i].codeset, len) == 0) {
charset = charset_map[i].charset;
found = 1;
break;

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/bug44703.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/strings/bug44703.phpt
+++ php-src/ext/standard/tests/strings/bug44703.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 html.c /ext/standard/tests/strings bug44703.phpt

2008-04-11 Thread Felipe Pena
felipe  Fri Apr 11 19:08:05 2008 UTC

  Modified files:  
/php-src/ext/standard   html.c 
/php-src/ext/standard/tests/strings bug44703.phpt 
  Log:
  MFB: Fixed bug #44703 (htmlspecialchars() does not detect bad character set 
argument)
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/html.c?r1=1.132r2=1.133diff_format=u
Index: php-src/ext/standard/html.c
diff -u php-src/ext/standard/html.c:1.132 php-src/ext/standard/html.c:1.133
--- php-src/ext/standard/html.c:1.132   Tue Jan 29 22:03:44 2008
+++ php-src/ext/standard/html.c Fri Apr 11 19:08:04 2008
@@ -18,7 +18,7 @@
+--+
 */
 
-/* $Id: html.c,v 1.132 2008/01/29 22:03:44 stas Exp $ */
+/* $Id: html.c,v 1.133 2008/04/11 19:08:04 felipe Exp $ */
 
 /*
  * HTML entity resources:
@@ -848,7 +848,7 @@

/* now walk the charset map and look for the codeset */
for (i = 0; charset_map[i].codeset; i++) {
-   if (strncasecmp(charset_hint, charset_map[i].codeset, 
len) == 0) {
+   if (len == strlen(charset_map[i].codeset)  
strncasecmp(charset_hint, charset_map[i].codeset, len) == 0) {
charset = charset_map[i].charset;
found = 1;
break;
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/bug44703.phpt?r1=1.1r2=1.2diff_format=u
Index: php-src/ext/standard/tests/strings/bug44703.phpt
diff -u /dev/null php-src/ext/standard/tests/strings/bug44703.phpt:1.2
--- /dev/null   Fri Apr 11 19:08:05 2008
+++ php-src/ext/standard/tests/strings/bug44703.phptFri Apr 11 19:08:05 2008
@@ -0,0 +1,48 @@
+--TEST--
+Bug #44703 (htmlspecialchars() does not detect bad character set argument)
+--FILE--
+?php
+
+var_dump(htmlspecialchars(a href='test'Test/a, ENT_COMPAT, 1));
+var_dump(htmlspecialchars(a href='test'Test/a, ENT_COMPAT, 12));
+var_dump(htmlspecialchars(a href='test'Test/a, ENT_COMPAT, 125));
+var_dump(htmlspecialchars(a href='test'Test/a, ENT_COMPAT, 1252));
+var_dump(htmlspecialchars(a href='test'Test/a, ENT_COMPAT, 12526));
+
+var_dump(htmlspecialchars(, ENT_COMPAT, 866));
+var_dump(htmlspecialchars(, ENT_COMPAT, 8666));
+
+var_dump(htmlspecialchars(, ENT_COMPAT, NULL));
+
+
+var_dump(htmlspecialchars(, ENT_COMPAT, 'SJIS'));
+var_dump(htmlspecialchars(, ENT_COMPAT, 'SjiS'));
+
+var_dump(htmlspecialchars(, ENT_COMPAT, str_repeat('a', 100)));
+
+?
+--EXPECTF--
+Warning: htmlspecialchars(): charset `1' not supported, assuming iso-8859-1 in 
%s on line %d
+string(35) lt;a href='test'gt;Testlt;/agt;
+
+Warning: htmlspecialchars(): charset `12' not supported, assuming iso-8859-1 
in %s on line %d
+string(35) lt;a href='test'gt;Testlt;/agt;
+
+Warning: htmlspecialchars(): charset `125' not supported, assuming iso-8859-1 
in %s on line %d
+string(35) lt;a href='test'gt;Testlt;/agt;
+string(35) lt;a href='test'gt;Testlt;/agt;
+
+Warning: htmlspecialchars(): charset `12526' not supported, assuming 
iso-8859-1 in %s on line %d
+string(35) lt;a href='test'gt;Testlt;/agt;
+string(8) lt;gt;
+
+Warning: htmlspecialchars(): charset `8666' not supported, assuming iso-8859-1 
in %s on line %d
+string(8) lt;gt;
+string(8) lt;gt;
+string(8) lt;gt;
+string(8) lt;gt;
+
+Warning: htmlspecialchars(): charset 
`'
 not supported, assuming iso-8859-1 in %s on line %d
+string(8) lt;gt;
+
+



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



[PHP-CVS] cvs: php-src / README.PEAR

2008-04-11 Thread Hannes Magnusson
bjori   Fri Apr 11 21:53:37 2008 UTC

  Modified files:  
/php-srcREADME.PEAR 
  Log:
  Apparenty go-pear no longer exists (bug#44699)
  
  
http://cvs.php.net/viewvc.cgi/php-src/README.PEAR?r1=1.2r2=1.3diff_format=u
Index: php-src/README.PEAR
diff -u php-src/README.PEAR:1.2 php-src/README.PEAR:1.3
--- php-src/README.PEAR:1.2 Mon Aug 15 22:18:15 2005
+++ php-src/README.PEAR Fri Apr 11 21:53:37 2008
@@ -1,7 +1,7 @@
 To install the PEAR installer, please use go-pear.
 
 On linux:
-$ lynx -source http://go-pear.org/ | php
+$ lynx -source http://pear.php.net/go-pear | php
 
 or save the setup script under go-pear.php and run:
 



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



[PHP-CVS] cvs: php-src /win32/build mkdist.php

2008-04-11 Thread Hannes Magnusson
bjori   Fri Apr 11 21:57:19 2008 UTC

  Modified files:  
/php-src/win32/buildmkdist.php 
  Log:
  Update url for go-pear
  
  
http://cvs.php.net/viewvc.cgi/php-src/win32/build/mkdist.php?r1=1.14r2=1.15diff_format=u
Index: php-src/win32/build/mkdist.php
diff -u php-src/win32/build/mkdist.php:1.14 php-src/win32/build/mkdist.php:1.15
--- php-src/win32/build/mkdist.php:1.14 Tue Dec 19 10:26:44 2006
+++ php-src/win32/build/mkdist.php  Fri Apr 11 21:57:19 2008
@@ -1,4 +1,4 @@
-?php # $Id: mkdist.php,v 1.14 2006/12/19 10:26:44 edink Exp $
+?php # $Id: mkdist.php,v 1.15 2008/04/11 21:57:19 bjori Exp $
 /* piece together a windows binary distro */
 
 $build_dir = $argv[1];
@@ -344,7 +344,7 @@
 
/* grab the bootstrap script */
echo Downloading go-pear\n;
-   copy(http://go-pear.org/;, $dist_dir/PEAR/go-pear.php);
+   copy(http://pear.php.net/go-pear;, $dist_dir/PEAR/go-pear.php);
 
/* import the package list -- sets $packages variable */
include pear/go-pear-list.php;



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



[PHP-CVS] Re: cvs: php-src(PHP_5_3) /win32/build mkdist.php

2008-04-11 Thread Gregory Beaver
Hannes Magnusson wrote:
 bjori Fri Apr 11 21:57:58 2008 UTC
 
   Modified files:  (Branch: PHP_5_3)
 /php-src/win32/build  mkdist.php 
   Log:
   MFH: Update URL for go-pear
   
   
 http://cvs.php.net/viewvc.cgi/php-src/win32/build/mkdist.php?r1=1.13.4.1r2=1.13.4.1.2.1diff_format=u
 Index: php-src/win32/build/mkdist.php
 diff -u php-src/win32/build/mkdist.php:1.13.4.1 
 php-src/win32/build/mkdist.php:1.13.4.1.2.1
 --- php-src/win32/build/mkdist.php:1.13.4.1   Tue Dec 19 10:26:01 2006
 +++ php-src/win32/build/mkdist.phpFri Apr 11 21:57:58 2008
 @@ -1,4 +1,4 @@
 -?php # $Id: mkdist.php,v 1.13.4.1 2006/12/19 10:26:01 edink Exp $
 +?php # $Id: mkdist.php,v 1.13.4.1.2.1 2008/04/11 21:57:58 bjori Exp $
  /* piece together a windows binary distro */
  
  $build_dir = $argv[1];
 @@ -344,7 +344,7 @@
  
   /* grab the bootstrap script */
   echo Downloading go-pear\n;
 - copy(http://go-pear.org/;, $dist_dir/PEAR/go-pear.php);
 + copy(http://pear.php.net/go-pear;, $dist_dir/PEAR/go-pear.php);
  
   /* import the package list -- sets $packages variable */
   include pear/go-pear-list.php;

This should no longer be used.  go-pear.phar
(http://pear.php.net/go-pear.phar) has been used since PHP 5.1

Greg

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