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

2004-02-29 Thread changelog
changelog   Sun Feb 29 20:32:09 2004 EDT

  Modified files:  
/php-srcChangeLog 
  Log:
  ChangeLog update
  
http://cvs.php.net/diff.php/php-src/ChangeLog?r1=1.1553r2=1.1554ty=u
Index: php-src/ChangeLog
diff -u php-src/ChangeLog:1.1553 php-src/ChangeLog:1.1554
--- php-src/ChangeLog:1.1553Sat Feb 28 20:32:18 2004
+++ php-src/ChangeLog   Sun Feb 29 20:32:08 2004
@@ -1,3 +1,54 @@
+2004-02-29  Moriyoshi Koizumi  [EMAIL PROTECTED]
+
+* NEWS:
+  - Yet another BFN
+
+2004-02-29  Andi Gutmans  [EMAIL PROTECTED]
+
+* ZendEngine2/zend_reflection_api.c:
+  - Apply fixes by Timm.
+
+* ZendEngine2/zend_compile.c:
+  - Change prototype isA check not to check the constructor.
+  - Only give an E_STRICT for non-isA compliant code as opposed to
+E_COMPILE_ERROR.
+
+2004-02-29  Stanislav Malyshev  [EMAIL PROTECTED]
+
+* ZendEngine2/zend_compile.h:
+  add ZEND_API there too for opcode handlers
+
+2004-02-29  Derick Rethans  [EMAIL PROTECTED]
+
+* ZendEngine2/zend_execute.c:
+  - Initialize memory to \0 so that we can reliable detect whether a specific
+opcode element is in use.
+
+2004-02-29  Anil Madhavapeddy  [EMAIL PROTECTED]
+
+* pear/PEAR/Downloader.php
+  pear/PEAR/Installer.php:
+  Move the _prependPath function into PEAR_Downloader from PEAR_Installer,
+  as PEAR_Downloader uses it (and PEAR_Installer inherits PEAR_Downloader).
+  
+  Unbreaks 'pear install -R'
+
+2004-02-29  Stanislav Malyshev  [EMAIL PROTECTED]
+
+* ZendEngine2/zend_execute.c:
+  export opcode table
+
+2004-02-29  Moriyoshi Koizumi  [EMAIL PROTECTED]
+
+* NEWS:
+  - BFN
+
+* ext/wddx/wddx.c:
+  - Bugfix #27287 (wddx segfaults during deserialization)
+
+* ext/session/session.c:
+  - Fix segfaults on deserialisation of referenced variables.
+
 2004-02-28  Ilia Alshanetsky  [EMAIL PROTECTED]
 
 * ext/pdf/pdf.c:


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

2004-02-29 Thread changelog
changelog   Sun Feb 29 20:32:12 2004 EDT

  Modified files:  
/ZendEngine2ChangeLog 
  Log:
  ChangeLog update
  
http://cvs.php.net/diff.php/ZendEngine2/ChangeLog?r1=1.417r2=1.418ty=u
Index: ZendEngine2/ChangeLog
diff -u ZendEngine2/ChangeLog:1.417 ZendEngine2/ChangeLog:1.418
--- ZendEngine2/ChangeLog:1.417 Fri Feb 27 20:32:09 2004
+++ ZendEngine2/ChangeLog   Sun Feb 29 20:32:12 2004
@@ -1,3 +1,29 @@
+2004-02-29  Andi Gutmans  [EMAIL PROTECTED]
+
+* zend_reflection_api.c:
+  - Apply fixes by Timm.
+
+* zend_compile.c:
+  - Change prototype isA check not to check the constructor.
+  - Only give an E_STRICT for non-isA compliant code as opposed to
+E_COMPILE_ERROR.
+
+2004-02-29  Stanislav Malyshev  [EMAIL PROTECTED]
+
+* zend_compile.h:
+  add ZEND_API there too for opcode handlers
+
+2004-02-29  Derick Rethans  [EMAIL PROTECTED]
+
+* zend_execute.c:
+  - Initialize memory to \0 so that we can reliable detect whether a specific
+opcode element is in use.
+
+2004-02-29  Stanislav Malyshev  [EMAIL PROTECTED]
+
+* zend_execute.c:
+  export opcode table
+
 2004-02-27  Marcus Boerger  [EMAIL PROTECTED]
 
 * zend_API.c
@@ -3650,7 +3676,7 @@
 2003-06-10  Jani Taskinen  [EMAIL PROTECTED]
 
 * zend_multiply.h:
-  - Missing $Id: ChangeLog,v 1.417 2004/02/28 01:32:09 changelog Exp $ tag
+  - Missing $Id: ChangeLog,v 1.418 2004/03/01 01:32:12 changelog Exp $ tag
 
 2003-06-10  James Cox  [EMAIL PROTECTED]
 
@@ -5374,7 +5400,7 @@
   zend_types.h
   zend_variables.c
   zend_variables.h:
-  - Added some missing CVS $Id: ChangeLog,v 1.417 2004/02/28 01:32:09 changelog 
Exp $ tags, headers and footers.
+  - Added some missing CVS $Id: ChangeLog,v 1.418 2004/03/01 01:32:12 changelog 
Exp $ tags, headers and footers.
 
 2003-01-30  Ilia Alshanetsky  [EMAIL PROTECTED]
 


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

2004-02-29 Thread Derick Rethans
On Sun, 29 Feb 2004, Moriyoshi Koizumi wrote:

 moriyoshi Sun Feb 29 00:21:36 2004 EDT

   Modified files:
 /php-src/ext/wddx wddx.c
   Log:
   - Bugfix #27287 (wddx segfaults during deserialization)

Can you also add a test case if there is none yet?

Derick

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



[PHP-CVS] cvs: php-src / NEWS

2004-02-29 Thread Moriyoshi Koizumi
moriyoshi   Sun Feb 29 14:07:57 2004 EDT

  Modified files:  
/php-srcNEWS 
  Log:
  - Yet another BFN
  
  
  
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1619r2=1.1620ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1619 php-src/NEWS:1.1620
--- php-src/NEWS:1.1619 Sun Feb 29 00:22:57 2004
+++ php-src/NEWSSun Feb 29 14:07:56 2004
@@ -14,6 +14,8 @@
 - Fixed start-up problem if both SPL and SimpleXML were enabled. The double
   initialization of apache 1.3 was causing problems here. (Marcus, Derick)
 - Fixed bug #27287 (wddx segfaults during deserialization). (Moriyoshi)
+- Fixed bug #27263 (session extension crashes when unserializing referenced
+  values / objects). (Moriyoshi)
 - Fixed bug #27237 (Working with simplexml crashes apache2). (Rob)
 - Fixed bug #27227 (Mixed case class names causes Fatal Error in Constructor 
   call). (Marcus)

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



[PHP-CVS] cvs: php-src /main/streams php_stream_context.h

2004-02-29 Thread Sara Golemon
pollita Mon Mar  1 00:33:20 2004 EDT

  Modified files:  
/php-src/main/streams   php_stream_context.h 
  Log:
  Must addref the resource when we make a new zval reference to it that will be 
exported to userspace.
  
http://cvs.php.net/diff.php/php-src/main/streams/php_stream_context.h?r1=1.9r2=1.10ty=u
Index: php-src/main/streams/php_stream_context.h
diff -u php-src/main/streams/php_stream_context.h:1.9 
php-src/main/streams/php_stream_context.h:1.10
--- php-src/main/streams/php_stream_context.h:1.9   Fri Feb 20 03:22:12 2004
+++ php-src/main/streams/php_stream_context.h   Mon Mar  1 00:33:19 2004
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: php_stream_context.h,v 1.9 2004/02/20 08:22:12 hholzgra Exp $ */
+/* $Id: php_stream_context.h,v 1.10 2004/03/01 05:33:19 pollita Exp $ */
 
 /* Stream context and status notification related definitions */
 
@@ -38,7 +38,7 @@
FG(default_context) ? FG(default_context) : \
(FG(default_context) = php_stream_context_alloc()) )
 
-#define php_stream_context_to_zval(context, zval) { ZVAL_RESOURCE(zval, 
(context)-rsrc_id); }
+#define php_stream_context_to_zval(context, zval) { ZVAL_RESOURCE(zval, 
(context)-rsrc_id); zend_list_addref((context)-rsrc_id); }
 
 typedef struct _php_stream_notifier php_stream_notifier;
 

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



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

2004-02-29 Thread Sara Golemon
pollita Mon Mar  1 00:40:15 2004 EDT

  Modified files:  
/php-src/ext/standard   dir.c 
  Log:
  context parameter for opendir() and dir()
  
http://cvs.php.net/diff.php/php-src/ext/standard/dir.c?r1=1.134r2=1.135ty=u
Index: php-src/ext/standard/dir.c
diff -u php-src/ext/standard/dir.c:1.134 php-src/ext/standard/dir.c:1.135
--- php-src/ext/standard/dir.c:1.134Wed Feb 25 15:16:26 2004
+++ php-src/ext/standard/dir.c  Mon Mar  1 00:40:14 2004
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: dir.c,v 1.134 2004/02/25 20:16:26 abies Exp $ */
+/* $Id: dir.c,v 1.135 2004/03/01 05:40:14 pollita Exp $ */
 
 /* {{{ includes/startup/misc */
 
@@ -175,15 +175,21 @@
 /* {{{ internal functions */
 static void _php_do_opendir(INTERNAL_FUNCTION_PARAMETERS, int createobject)
 {
-   pval **arg;
+   char *dirname;
+   long dir_len;
+   zval *zcontext = NULL;
+   php_stream_context *context = NULL;
php_stream *dirp;
-   
-   if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, arg) == FAILURE) {
-   WRONG_PARAM_COUNT;
+
+   if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, s|r, dirname, 
dir_len, zcontext) == FAILURE) {
+   RETURN_NULL();
+   }
+
+   if (zcontext) {
+   context = php_stream_context_from_zval(zcontext, 0);
}
-   convert_to_string_ex(arg);

-   dirp = php_stream_opendir(Z_STRVAL_PP(arg), ENFORCE_SAFE_MODE|REPORT_ERRORS, 
NULL);
+   dirp = php_stream_opendir(dirname, ENFORCE_SAFE_MODE|REPORT_ERRORS, context);
 
if (dirp == NULL) {
RETURN_FALSE;
@@ -193,7 +199,7 @@
 
if (createobject) {
object_init_ex(return_value, dir_class_entry_ptr);
-   add_property_stringl(return_value, path, Z_STRVAL_PP(arg), 
Z_STRLEN_PP(arg), 1);
+   add_property_stringl(return_value, path, dirname, dir_len, 1);
add_property_resource(return_value, handle, dirp-rsrc_id);
php_stream_auto_cleanup(dirp); /* so we don't get warnings under debug 
*/
} else {
@@ -202,7 +208,7 @@
 }
 /* }}} */
 
-/* {{{ proto mixed opendir(string path)
+/* {{{ proto mixed opendir(string path[, resource context])
Open a directory and return a dir_handle */
 PHP_FUNCTION(opendir)
 {
@@ -210,7 +216,7 @@
 }
 /* }}} */
 
-/* {{{ proto object dir(string directory)
+/* {{{ proto object dir(string directory[, resource context])
Directory class with properties, handle and class and methods read, rewind and 
close */
 PHP_FUNCTION(getdir)
 {

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



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

2004-02-29 Thread Jon Parise
jon Mon Mar  1 02:02:24 2004 EDT

  Modified files:  
/php-src/main/streams   streams.c 
  Log:
  Cast the php_stream_dirent to a 'const char *' for estrndup() to avoid a
  compiler warning.
  
  
http://cvs.php.net/diff.php/php-src/main/streams/streams.c?r1=1.49r2=1.50ty=u
Index: php-src/main/streams/streams.c
diff -u php-src/main/streams/streams.c:1.49 php-src/main/streams/streams.c:1.50
--- php-src/main/streams/streams.c:1.49 Wed Feb  4 17:46:44 2004
+++ php-src/main/streams/streams.c  Mon Mar  1 02:02:23 2004
@@ -19,7 +19,7 @@
+--+
  */
 
-/* $Id: streams.c,v 1.49 2004/02/04 22:46:44 wez Exp $ */
+/* $Id: streams.c,v 1.50 2004/03/01 07:02:23 jon Exp $ */
 
 #define _GNU_SOURCE
 #include php.h
@@ -1881,7 +1881,7 @@
vector = (php_stream_dirent **) erealloc(vector, vector_size * 
sizeof(php_stream_dirent *));
}
 
-   vector[nfiles++] = (php_stream_dirent*)estrndup(sdp, 
sizeof(php_stream_dirent) + ((strlen(sdp.d_name) + 1) * sizeof(char)));
+   vector[nfiles++] = (php_stream_dirent*)estrndup((const char *)sdp, 
sizeof(php_stream_dirent) + ((strlen(sdp.d_name) + 1) * sizeof(char)));
}
php_stream_closedir(stream);
 

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