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

2006-05-14 Thread changelog
changelog   Mon May 15 05:31:51 2006 UTC

  Modified files:  
/php-srcChangeLog 
  Log:
  ChangeLog update
  
http://cvs.php.net/viewcvs.cgi/php-src/ChangeLog?r1=1.2345r2=1.2346diff_format=u
Index: php-src/ChangeLog
diff -u php-src/ChangeLog:1.2345 php-src/ChangeLog:1.2346
--- php-src/ChangeLog:1.2345Sun May 14 05:31:49 2006
+++ php-src/ChangeLog   Mon May 15 05:31:51 2006
@@ -1,3 +1,96 @@
+2006-05-14  Marcus Boerger  [EMAIL PROTECTED]
+
+* (PHP_5_2)
+  README.UPDATE_5_2:
+  - Add some update notes
+
+* (PHP_5_2)
+  NEWS:
+  - We have it now fully RFC compliant
+
+* (PHP_5_2)
+  main/streams/memory.c:
+  - MFH No need to have this controlled by allow_url_fopen
+
+* main/streams/memory.c:
+  - No need to have this controlled by allow_url_fopen
+
+* (PHP_5_2)
+  ZendEngine2/zend_errors.h:
+  - Readd that E_RECOVERABLE_ERROR, dropping it is a bad idea
+
+* (PHP_5_2)
+  ZendEngine2/zend_errors.h:
+  - Do not include E_RECOVERABLE_ERROR to the default mode E_ALL
+
+* (PHP_5_2)
+  ext/standard/tests/file/stream_rfc2397_004.phpt
+  ext/standard/tests/file/stream_rfc2397_005.phpt
+  main/streams/streams.c:
+  - MFH Add strict compliant RFC2397 support (no //)
+
+* ext/standard/tests/file/stream_rfc2397_004.phpt
+  ext/standard/tests/file/stream_rfc2397_004.phpt
+  ext/standard/tests/file/stream_rfc2397_005.phpt
+  ext/standard/tests/file/stream_rfc2397_005.phpt
+  main/streams/streams.c:
+  
+  - Add strict compliant RFC2397 support (no //)
+
+2006-05-14  Derick Rethans  [EMAIL PROTECTED]
+
+* (PHP_5_2)
+  NEWS:
+  MFH:
+  - Implemented Dmitry's const patch.
+  - Added support for weekday as relative item.
+  - Fixed bug #37368 (Incorrect timestamp returned for strtotime()).
+
+2006-05-14  Ilia Alshanetsky  [EMAIL PROTECTED]
+
+* (PHP_5_2)
+  NEWS
+  ext/standard/basic_functions.c
+  ext/standard/basic_functions.h
+  ext/standard/file.c:
+  MFH: Fixed bug #36630 (umask not reset at the end of the request).
+
+2006-05-14  Marcus Boerger  [EMAIL PROTECTED]
+
+* (PHP_5_2)
+  NEWS
+  NEWS
+  README.UPDATE_5_2:
+  - Update
+
+* ext/standard/tests/file/stream_rfc2397_003.gif
+  ext/standard/tests/file/stream_rfc2397_003.gif
+  ext/standard/tests/file/stream_rfc2397_003.phpt
+  ext/standard/tests/file/stream_rfc2397_003.phpt
+  main/streams/memory.c:
+  
+  - RFC2397 add decoding
+
+* main/streams/memory.c:
+  - Enforce stream mode correct
+
+* ext/standard/tests/file/stream_rfc2397_001.phpt
+  ext/standard/tests/file/stream_rfc2397_002.phpt
+  ext/standard/tests/file/stream_rfc2397_002.phpt
+  main/streams/memory.c:
+  - Change to use dedicated stream ops
+
+* ext/standard/tests/file/stream_rfc2397_002.phpt
+  main/streams/memory.c:
+  - RFC 2397 meta data handling
+
+2006-05-14  Pierre-Alain Joye  [EMAIL PROTECTED]
+
+* README.UPDATE_5_2
+  README.UPDATE_5_2:
+  
+  file README.UPDATE_5_2 was initially added on branch PHP_5_2.
+
 2006-05-13  Rasmus Lerdorf  [EMAIL PROTECTED]
 
 * (PHP_5_1)


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

2006-05-14 Thread changelog
changelog   Mon May 15 05:31:56 2006 UTC

  Modified files:  
/ZendEngine2ChangeLog 
  Log:
  ChangeLog update
  
http://cvs.php.net/viewcvs.cgi/ZendEngine2/ChangeLog?r1=1.912r2=1.913diff_format=u
Index: ZendEngine2/ChangeLog
diff -u ZendEngine2/ChangeLog:1.912 ZendEngine2/ChangeLog:1.913
--- ZendEngine2/ChangeLog:1.912 Sun May 14 05:31:55 2006
+++ ZendEngine2/ChangeLog   Mon May 15 05:31:56 2006
@@ -1,3 +1,13 @@
+2006-05-14  Marcus Boerger  [EMAIL PROTECTED]
+
+* (PHP_5_2)
+  zend_errors.h:
+  - Readd that E_RECOVERABLE_ERROR, dropping it is a bad idea
+
+* (PHP_5_2)
+  zend_errors.h:
+  - Do not include E_RECOVERABLE_ERROR to the default mode E_ALL
+
 2006-05-13  Marcus Boerger  [EMAIL PROTECTED]
 
 * (PHP_5_2)
@@ -13490,7 +13500,7 @@
 2003-06-10  Jani Taskinen  [EMAIL PROTECTED]
 
 * zend_multiply.h:
-  - Missing $Id: ChangeLog,v 1.912 2006/05/14 05:31:55 changelog Exp $ tag
+  - Missing $Id: ChangeLog,v 1.913 2006/05/15 05:31:56 changelog Exp $ tag
 
 2003-06-10  James Cox  [EMAIL PROTECTED]
 
@@ -15214,7 +15224,7 @@
   zend_types.h
   zend_variables.c
   zend_variables.h:
-  - Added some missing CVS $Id: ChangeLog,v 1.912 2006/05/14 05:31:55 
changelog Exp $ tags, headers and footers.
+  - Added some missing CVS $Id: ChangeLog,v 1.913 2006/05/15 05:31:56 
changelog Exp $ tags, headers and footers.
 
 2003-01-30  Ilia Alshanetsky  [EMAIL PROTECTED]
 


[PHP-CVS] cvs: php-src(PHP_5_2) / NEWS /ext/standard basic_functions.c basic_functions.h file.c

2006-05-14 Thread Ilia Alshanetsky
iliaa   Sun May 14 16:06:48 2006 UTC

  Modified files:  (Branch: PHP_5_2)
/php-srcNEWS 
/php-src/ext/standard   file.c basic_functions.c basic_functions.h 
  Log:
  MFH: Fixed bug #36630 (umask not reset at the end of the request).
  
  
http://cvs.php.net/viewcvs.cgi/php-src/NEWS?r1=1.2027.2.547.2.19r2=1.2027.2.547.2.20diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.19 php-src/NEWS:1.2027.2.547.2.20
--- php-src/NEWS:1.2027.2.547.2.19  Sun May 14 02:00:04 2006
+++ php-src/NEWSSun May 14 16:06:47 2006
@@ -39,6 +39,7 @@
 - Fixed bug #37306 (max_execution_time = max_input_time). (Dmitry)
 - Fixed bug #37244 (Added strict flag to base64_decode() that enforces 
   RFC3548 compliance). (Ilia)
+- Fixed bug #36630 (umask not reset at the end of the request). (Ilia)
 
 04 May 2006, PHP 5.1.4
 - Added capture_peer_cert and capture_peer_cert_chain context options
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/file.c?r1=1.409.2.6r2=1.409.2.6.2.1diff_format=u
Index: php-src/ext/standard/file.c
diff -u php-src/ext/standard/file.c:1.409.2.6 
php-src/ext/standard/file.c:1.409.2.6.2.1
--- php-src/ext/standard/file.c:1.409.2.6   Thu Apr  6 02:39:55 2006
+++ php-src/ext/standard/file.c Sun May 14 16:06:47 2006
@@ -21,7 +21,7 @@
+--+
  */
 
-/* $Id: file.c,v 1.409.2.6 2006/04/06 02:39:55 iliaa Exp $ */
+/* $Id: file.c,v 1.409.2.6.2.1 2006/05/14 16:06:47 iliaa Exp $ */
 
 /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
 
@@ -1464,6 +1464,10 @@
 
oldumask = umask(077);
 
+   if (BG(umask) != -1) {
+   BG(umask) = oldumask;
+   }
+
if (arg_count == 0) {
umask(oldumask);
} else {
@@ -1474,8 +1478,6 @@
umask(Z_LVAL_PP(arg1));
}
 
-   /* XXX we should maybe reset the umask after each request! */
-
RETURN_LONG(oldumask);
 }
 
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/basic_functions.c?r1=1.725.2.31.2.1r2=1.725.2.31.2.2diff_format=u
Index: php-src/ext/standard/basic_functions.c
diff -u php-src/ext/standard/basic_functions.c:1.725.2.31.2.1 
php-src/ext/standard/basic_functions.c:1.725.2.31.2.2
--- php-src/ext/standard/basic_functions.c:1.725.2.31.2.1   Sat May 13 
17:58:58 2006
+++ php-src/ext/standard/basic_functions.c  Sun May 14 16:06:48 2006
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: basic_functions.c,v 1.725.2.31.2.1 2006/05/13 17:58:58 helly Exp $ */
+/* $Id: basic_functions.c,v 1.725.2.31.2.2 2006/05/14 16:06:48 iliaa Exp $ */
 
 #include php.h
 #include php_streams.h
@@ -944,6 +944,7 @@
 {
BG(rand_is_seeded) = 0;
BG(mt_rand_is_seeded) = 0;
+   BG(umask) = -1;

BG(next) = NULL;
BG(left) = -1;
@@ -1217,6 +1218,10 @@
zend_hash_destroy(BG(putenv_ht));
 #endif
 
+   if (BG(umask) != -1) {
+   umask(BG(umask));
+   }
+
/* Check if locale was changed and change it back
   to the value in startup environment */
if (BG(locale_string) != NULL) {
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/basic_functions.h?r1=1.139.2.4r2=1.139.2.4.2.1diff_format=u
Index: php-src/ext/standard/basic_functions.h
diff -u php-src/ext/standard/basic_functions.h:1.139.2.4 
php-src/ext/standard/basic_functions.h:1.139.2.4.2.1
--- php-src/ext/standard/basic_functions.h:1.139.2.4Sat Feb 18 05:41:59 2006
+++ php-src/ext/standard/basic_functions.h  Sun May 14 16:06:48 2006
@@ -17,7 +17,7 @@
+--+
 */
 
-/* $Id: basic_functions.h,v 1.139.2.4 2006/02/18 05:41:59 rasmus Exp $ */
+/* $Id: basic_functions.h,v 1.139.2.4.2.1 2006/05/14 16:06:48 iliaa Exp $ */
 
 #ifndef BASIC_FUNCTIONS_H
 #define BASIC_FUNCTIONS_H
@@ -215,6 +215,8 @@
 #if defined(_REENTRANT)  defined(HAVE_MBRLEN)  defined(HAVE_MBSTATE_T)
mbstate_t mblen_state;
 #endif
+
+   int umask;
 } php_basic_globals;
 
 #ifdef ZTS

-- 
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/file stream_rfc2397_004.phpt stream_rfc2397_005.phpt /main/streams streams.c

2006-05-14 Thread Marcus Boerger
helly   Sun May 14 18:35:41 2006 UTC

  Added files: 
/php-src/ext/standard/tests/filestream_rfc2397_004.phpt 
stream_rfc2397_005.phpt 

  Modified files:  
/php-src/main/streams   streams.c 
  Log:
  - Add strict compliant RFC2397 support (no //)
  
http://cvs.php.net/viewcvs.cgi/php-src/main/streams/streams.c?r1=1.123r2=1.124diff_format=u
Index: php-src/main/streams/streams.c
diff -u php-src/main/streams/streams.c:1.123 
php-src/main/streams/streams.c:1.124
--- php-src/main/streams/streams.c:1.123Sat Apr 22 23:49:39 2006
+++ php-src/main/streams/streams.c  Sun May 14 18:35:40 2006
@@ -19,7 +19,7 @@
+--+
  */
 
-/* $Id: streams.c,v 1.123 2006/04/22 23:49:39 tony2001 Exp $ */
+/* $Id: streams.c,v 1.124 2006/05/14 18:35:40 helly Exp $ */
 
 #define _GNU_SOURCE
 #include php.h
@@ -1982,9 +1982,9 @@
n++;
}
 
-   if ((*p == ':')  (n  1)  !strncmp(://, p, 3)) {
+   if ((*p == ':')  (n  1)  (!strncmp(//, p+1, 2) || 
!memcmp(data, path, 4))) {
protocol = path;
-   } else if (strncasecmp(path, zlib:, 5) == 0) {
+   } else if (n == 5  strncasecmp(path, zlib:, 5) == 0) {
/* BC with older php scripts and zlib wrapper */
protocol = compress.zlib;
n = 13;

http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/tests/file/stream_rfc2397_004.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/file/stream_rfc2397_004.phpt
+++ php-src/ext/standard/tests/file/stream_rfc2397_004.phpt
--TEST--
Stream: RFC2397 Mozilla tests
--FILE--
?php

$streams = array(
'data://,;test',
'data://text/plain,test',
'data://text/plain;charset=US-ASCII,test',
'data://;charset=UTF-8,Hello',
'data://text/plain;charset=UTF-8,Hello',
'data://,a,b',
);

foreach($streams as $stream)
{
var_dump(@file_get_contents($stream));
}

?
===DONE===
?php exit(0); ?
--EXPECTF--
string(5) ;test
string(4) test
string(4) test
bool(false)
string(5) Hello
string(3) a,b
===DONE===
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/tests/file/stream_rfc2397_005.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/file/stream_rfc2397_005.phpt
+++ php-src/ext/standard/tests/file/stream_rfc2397_005.phpt
--TEST--
Stream: RFC2397 without //
--FILE--
?php

$streams = array(
'data:,A%20brief%20note',

'data:application/vnd-xxx-query,select_vcount,fcol_from_fieldtable/local',
'data:;base64,Zm9vYmFyIGZvb2Jhcg==',
'data:,;test',
'data:text/plain,test',
'data:text/plain;charset=US-ASCII,test',
'data:;charset=UTF-8,Hello',
'data:text/plain;charset=UTF-8,Hello',
'data:,a,b',
);

foreach($streams as $stream)
{
var_dump(@file_get_contents($stream));
}

?
===DONE===
?php exit(0); ?
--EXPECTF--
string(12) A brief note
string(40) select_vcount,fcol_from_fieldtable/local
string(13) foobar foobar
string(5) ;test
string(4) test
string(4) test
bool(false)
string(5) Hello
string(3) a,b
===DONE===

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



[PHP-CVS] cvs: php-src(PHP_5_2) /ext/standard/tests/file stream_rfc2397_004.phpt stream_rfc2397_005.phpt /main/streams streams.c

2006-05-14 Thread Marcus Boerger
helly   Sun May 14 18:40:12 2006 UTC

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

  Modified files:  
/php-src/main/streams   streams.c 
  Log:
  - MFH Add strict compliant RFC2397 support (no //)
  
http://cvs.php.net/viewcvs.cgi/php-src/main/streams/streams.c?r1=1.82.2.6r2=1.82.2.6.2.1diff_format=u
Index: php-src/main/streams/streams.c
diff -u php-src/main/streams/streams.c:1.82.2.6 
php-src/main/streams/streams.c:1.82.2.6.2.1
--- php-src/main/streams/streams.c:1.82.2.6 Sat Apr 22 17:17:40 2006
+++ php-src/main/streams/streams.c  Sun May 14 18:40:12 2006
@@ -19,7 +19,7 @@
+--+
  */
 
-/* $Id: streams.c,v 1.82.2.6 2006/04/22 17:17:40 wez Exp $ */
+/* $Id: streams.c,v 1.82.2.6.2.1 2006/05/14 18:40:12 helly Exp $ */
 
 #define _GNU_SOURCE
 #include php.h
@@ -1520,9 +1520,9 @@
n++;
}
 
-   if ((*p == ':')  (n  1)  !strncmp(://, p, 3)) {
+   if ((*p == ':')  (n  1)  (!strncmp(//, p+1, 2) || 
!memcmp(data, path, 4))) {
protocol = path;
-   } else if (strncasecmp(path, zlib:, 5) == 0) {
+   } else if (n == 5  strncasecmp(path, zlib:, 5) == 0) {
/* BC with older php scripts and zlib wrapper */
protocol = compress.zlib;
n = 13;

http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/tests/file/stream_rfc2397_004.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/file/stream_rfc2397_004.phpt
+++ php-src/ext/standard/tests/file/stream_rfc2397_004.phpt
--TEST--
Stream: RFC2397 Mozilla tests
--FILE--
?php

$streams = array(
'data://,;test',
'data://text/plain,test',
'data://text/plain;charset=US-ASCII,test',
'data://;charset=UTF-8,Hello',
'data://text/plain;charset=UTF-8,Hello',
'data://,a,b',
);

foreach($streams as $stream)
{
var_dump(@file_get_contents($stream));
}

?
===DONE===
?php exit(0); ?
--EXPECTF--
string(5) ;test
string(4) test
string(4) test
bool(false)
string(5) Hello
string(3) a,b
===DONE===
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/tests/file/stream_rfc2397_005.phpt?view=markuprev=1.1
Index: php-src/ext/standard/tests/file/stream_rfc2397_005.phpt
+++ php-src/ext/standard/tests/file/stream_rfc2397_005.phpt
--TEST--
Stream: RFC2397 without //
--FILE--
?php

$streams = array(
'data:,A%20brief%20note',

'data:application/vnd-xxx-query,select_vcount,fcol_from_fieldtable/local',
'data:;base64,Zm9vYmFyIGZvb2Jhcg==',
'data:,;test',
'data:text/plain,test',
'data:text/plain;charset=US-ASCII,test',
'data:;charset=UTF-8,Hello',
'data:text/plain;charset=UTF-8,Hello',
'data:,a,b',
);

foreach($streams as $stream)
{
var_dump(@file_get_contents($stream));
}

?
===DONE===
?php exit(0); ?
--EXPECTF--
string(12) A brief note
string(40) select_vcount,fcol_from_fieldtable/local
string(13) foobar foobar
string(5) ;test
string(4) test
string(4) test
bool(false)
string(5) Hello
string(3) a,b
===DONE===

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



[PHP-CVS] cvs: php-src /main/streams memory.c

2006-05-14 Thread Marcus Boerger
helly   Sun May 14 19:13:17 2006 UTC

  Modified files:  
/php-src/main/streams   memory.c 
  Log:
  - No need to have this controlled by allow_url_fopen
  
http://cvs.php.net/viewcvs.cgi/php-src/main/streams/memory.c?r1=1.19r2=1.20diff_format=u
Index: php-src/main/streams/memory.c
diff -u php-src/main/streams/memory.c:1.19 php-src/main/streams/memory.c:1.20
--- php-src/main/streams/memory.c:1.19  Sun May 14 01:39:24 2006
+++ php-src/main/streams/memory.c   Sun May 14 19:13:17 2006
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: memory.c,v 1.19 2006/05/14 01:39:24 helly Exp $ */
+/* $Id: memory.c,v 1.20 2006/05/14 19:13:17 helly Exp $ */
 
 #define _GNU_SOURCE
 #include php.h
@@ -701,7 +701,7 @@
 php_stream_wrapper php_stream_rfc2397_wrapper ={
php_stream_rfc2397_wops,
NULL,
-   1, /* is_url */
+   0, /* is_url */
 };
 
 /*

-- 
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) /main/streams memory.c

2006-05-14 Thread Marcus Boerger
helly   Sun May 14 19:15:31 2006 UTC

  Modified files:  (Branch: PHP_5_2)
/php-src/main/streams   memory.c 
  Log:
  - MFH No need to have this controlled by allow_url_fopen
  
http://cvs.php.net/viewcvs.cgi/php-src/main/streams/memory.c?r1=1.8.2.6.2.3r2=1.8.2.6.2.4diff_format=u
Index: php-src/main/streams/memory.c
diff -u php-src/main/streams/memory.c:1.8.2.6.2.3 
php-src/main/streams/memory.c:1.8.2.6.2.4
--- php-src/main/streams/memory.c:1.8.2.6.2.3   Sun May 14 01:42:03 2006
+++ php-src/main/streams/memory.c   Sun May 14 19:15:31 2006
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: memory.c,v 1.8.2.6.2.3 2006/05/14 01:42:03 helly Exp $ */
+/* $Id: memory.c,v 1.8.2.6.2.4 2006/05/14 19:15:31 helly Exp $ */
 
 #define _GNU_SOURCE
 #include php.h
@@ -701,7 +701,7 @@
 php_stream_wrapper php_stream_rfc2397_wrapper ={
php_stream_rfc2397_wops,
NULL,
-   1, /* is_url */
+   0, /* is_url */
 };
 
 /*

-- 
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

2006-05-14 Thread Marcus Boerger
helly   Sun May 14 19:20:21 2006 UTC

  Modified files:  (Branch: PHP_5_2)
/php-srcNEWS 
  Log:
  - We have it now fully RFC compliant
  
http://cvs.php.net/viewcvs.cgi/php-src/NEWS?r1=1.2027.2.547.2.21r2=1.2027.2.547.2.22diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.21 php-src/NEWS:1.2027.2.547.2.22
--- php-src/NEWS:1.2027.2.547.2.21  Sun May 14 17:35:56 2006
+++ php-src/NEWSSun May 14 19:20:21 2006
@@ -24,7 +24,7 @@
 - Added support for Apache 2.2 handler in the Windows distro. (Edin)
 - Added pg_field_table() function. (Edin)
 - Added implementation of curl_multi_info_read(). (Brian)
-- Added RFC2397 (data:// stream) support. (Marcus)
+- Added RFC2397 (data: stream) support. (Marcus)
 - Fixed bug #37416 (iterator_to_array() hides exceptions thrown in rewind()
   method). (Tony)
 - Fixed bug #37413 (Rejected versions of flex that don't work). (Ilia)

-- 
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) / README.UPDATE_5_2

2006-05-14 Thread Marcus Boerger
helly   Sun May 14 19:23:19 2006 UTC

  Modified files:  (Branch: PHP_5_2)
/php-srcREADME.UPDATE_5_2 
  Log:
  - Add some update notes
  
http://cvs.php.net/viewcvs.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.1r2=1.1.2.2diff_format=u
Index: php-src/README.UPDATE_5_2
diff -u php-src/README.UPDATE_5_2:1.1.2.1 php-src/README.UPDATE_5_2:1.1.2.2
--- php-src/README.UPDATE_5_2:1.1.2.1   Sun May 14 00:29:08 2006
+++ php-src/README.UPDATE_5_2   Sun May 14 19:23:19 2006
@@ -1 +1,40 @@
-To be filled...
+PHP 5.2 Update info or NEWS explained
+
+- Added new error mode E_RECOVERABLE_ERROR. (Derick, Marcus, Tony)
+
+  This changes a few E_ERROR conditions to something that you can now catch 
+  using a user error handler. If the user error handler does not grab these
+  kind of error they behave as fatal errors just like in any PHP version prior
+  to 5.2. Errors of this type are logged as 'Catchable fatal error'.
+
+- Removed ze1 compatibility mode. (Marcus)
+
+  The backwards compatibility support for the old PHP 4.x object handling that 
+  uses copying by default instead of the 5.x reference handling has been 
+  removed completley.
+
+- Added support for constructors in interfaces to force constructor signature
+  checks in implementations. (Marcus)
+  
+  Starting with PHP 5.2 interfaces can have constructors. If you use this 
+  feature then all implementing classes must implement constructors with a 
+  matching signature, while normally constructors do not need to follow any
+  base class or interface constructor signature. (Signature is the name for 
+  the parameter and return type definition which captures count, reference or 
+  not and any type hints).
+
+- Changed __toString to be called whereever applicable. (Marcus)
+
+  The magic object method __toString() is now called whenever an object is used
+  as a string. The function must not throw an exception or the script will be
+  terminated. The PHP 5.0/%51 fallback to return a string containing the object
+  idetifier has been dropped. Note that the object identifier is never unique. 
+  That measn that if you have used this feature your application has been 
+  flawed. Nonetheless it will now be a catchable fatal error (see above).
+
+- Added RFC2397 (data: stream) support. (Marcus)
+
+  Under windows this can mean a very rare change of behavior. If you are using 
+  NTFS filesystem and making use of meta streams in your application this does
+  no longer work for a file with the name 'data' accessed without any path. IF
+  you need to do so you have to prefix the filename with the file: protocol.

-- 
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) / README.UPDATE_5_2

2006-05-14 Thread Marcus Boerger
helly   Sun May 14 19:58:04 2006 UTC

  Modified files:  (Branch: PHP_5_2)
/php-srcREADME.UPDATE_5_2 
  Log:
  - Update
  
http://cvs.php.net/viewcvs.cgi/php-src/README.UPDATE_5_2?r1=1.1.2.2r2=1.1.2.3diff_format=u
Index: php-src/README.UPDATE_5_2
diff -u php-src/README.UPDATE_5_2:1.1.2.2 php-src/README.UPDATE_5_2:1.1.2.3
--- php-src/README.UPDATE_5_2:1.1.2.2   Sun May 14 19:23:19 2006
+++ php-src/README.UPDATE_5_2   Sun May 14 19:58:04 2006
@@ -38,3 +38,4 @@
   NTFS filesystem and making use of meta streams in your application this does
   no longer work for a file with the name 'data' accessed without any path. IF
   you need to do so you have to prefix the filename with the file: protocol.
+  For the functionality itself look here http://www.faqs.org/rfcs/rfc2397.html.

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



Re: [PHP-CVS] cvs: php-src /main/streams memory.c

2006-05-14 Thread Wez Furlong

Are you sure about that?
Seems to me that this is one case that really should be protected by
allow_url_fopen, as it allows specifying arbitrary data in the
filename.
While this is not quite such a big deal in HEAD, it is in PHP 5.2.
I think this needs further analysis and discussion before we roll PHP 5.2.

--Wez.

On 5/14/06, Marcus Boerger [EMAIL PROTECTED] wrote:

helly   Sun May 14 19:13:17 2006 UTC

  Modified files:
/php-src/main/streams   memory.c
  Log:
  - No need to have this controlled by allow_url_fopen

http://cvs.php.net/viewcvs.cgi/php-src/main/streams/memory.c?r1=1.19r2=1.20diff_format=u
Index: php-src/main/streams/memory.c
diff -u php-src/main/streams/memory.c:1.19 php-src/main/streams/memory.c:1.20
--- php-src/main/streams/memory.c:1.19  Sun May 14 01:39:24 2006
+++ php-src/main/streams/memory.c   Sun May 14 19:13:17 2006
@@ -16,7 +16,7 @@
+--+
  */

-/* $Id: memory.c,v 1.19 2006/05/14 01:39:24 helly Exp $ */
+/* $Id: memory.c,v 1.20 2006/05/14 19:13:17 helly Exp $ */

 #define _GNU_SOURCE
 #include php.h
@@ -701,7 +701,7 @@
 php_stream_wrapper php_stream_rfc2397_wrapper ={
php_stream_rfc2397_wops,
NULL,
-   1, /* is_url */
+   0, /* is_url */
 };

 /*

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




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