Re: [PHP-CVS] cvs: php-src(PHP_5_3) / NEWS /ext/xmlwriter php_xmlwriter.c

2009-05-11 Thread Pierre Joye
Did you notice the "assigned" field in the bug report? I had the patch
already as well (wrote it on my way back home from the NL test fest,
these bugs were found there while writing tests for xmlwriter :)

Can you MFB it to 5.2 as well then? Small enough.

Cheers,
--
Pierre

On Mon, May 11, 2009 at 2:21 PM, Ilia Alshanetsky  wrote:
> iliaa           Mon May 11 12:21:26 2009 UTC
>
>  Modified files:              (Branch: PHP_5_3)
>    /php-src/ext/xmlwriter      php_xmlwriter.c
>    /php-src    NEWS
>  Log:
>
>  Fixed bug #48204 (xmlwriter_open_uri() does not emit warnings on invalid
>  paths)
>
> http://cvs.php.net/viewvc.cgi/php-src/ext/xmlwriter/php_xmlwriter.c?r1=1.20.2.12.2.15.2.11&r2=1.20.2.12.2.15.2.12&diff_format=u
> Index: php-src/ext/xmlwriter/php_xmlwriter.c
> diff -u php-src/ext/xmlwriter/php_xmlwriter.c:1.20.2.12.2.15.2.11 
> php-src/ext/xmlwriter/php_xmlwriter.c:1.20.2.12.2.15.2.12
> --- php-src/ext/xmlwriter/php_xmlwriter.c:1.20.2.12.2.15.2.11   Wed Dec 31 
> 11:15:47 2008
> +++ php-src/ext/xmlwriter/php_xmlwriter.c       Mon May 11 12:21:26 2009
> @@ -17,7 +17,7 @@
>   +--+
>  */
>
> -/* $Id: php_xmlwriter.c,v 1.20.2.12.2.15.2.11 2008/12/31 11:15:47 sebastian 
> Exp $ */
> +/* $Id: php_xmlwriter.c,v 1.20.2.12.2.15.2.12 2009/05/11 12:21:26 iliaa Exp 
> $ */
>
>  #ifdef HAVE_CONFIG_H
>  #include "config.h"
> @@ -1755,6 +1755,7 @@
>
>        valid_file = _xmlwriter_get_valid_file_path(source, resolved_path, 
> MAXPATHLEN TSRMLS_CC);
>        if (!valid_file) {
> +               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to 
> resolve file path");
>                RETURN_FALSE;
>        }
>
> http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.965.2.596&r2=1.2027.2.547.2.965.2.597&diff_format=u
> Index: php-src/NEWS
> diff -u php-src/NEWS:1.2027.2.547.2.965.2.596 
> php-src/NEWS:1.2027.2.547.2.965.2.597
> --- php-src/NEWS:1.2027.2.547.2.965.2.596       Sun May 10 21:06:35 2009
> +++ php-src/NEWS        Mon May 11 12:21:26 2009
> @@ -39,6 +39,8 @@
>  - Added ability to throw exceptions from SQLite3 instead of warnings. (Scott)
>  - Added startup notices for deprecated ini settings. (Kalle)
>
> +- Fixed bug #48204 (xmlwriter_open_uri() does not emit warnings on invalid
> +  paths). (Ilia)
>  - Fixed bug #48185 (warning: value computed is not used in
>   pdo_sqlite_stmt_get_col line 271). (Matteo)
>  - Fixed bug #48087 (call_user_method() invalid free of arguments). (Felipe)
>
>
>
> --
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

--
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) / NEWS /ext/xmlwriter php_xmlwriter.c

2009-05-11 Thread Ilia Alshanetsky
iliaa   Mon May 11 12:21:26 2009 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/ext/xmlwriter  php_xmlwriter.c 
/php-srcNEWS 
  Log:
  
  Fixed bug #48204 (xmlwriter_open_uri() does not emit warnings on invalid  
  paths)
  
http://cvs.php.net/viewvc.cgi/php-src/ext/xmlwriter/php_xmlwriter.c?r1=1.20.2.12.2.15.2.11&r2=1.20.2.12.2.15.2.12&diff_format=u
Index: php-src/ext/xmlwriter/php_xmlwriter.c
diff -u php-src/ext/xmlwriter/php_xmlwriter.c:1.20.2.12.2.15.2.11 
php-src/ext/xmlwriter/php_xmlwriter.c:1.20.2.12.2.15.2.12
--- php-src/ext/xmlwriter/php_xmlwriter.c:1.20.2.12.2.15.2.11   Wed Dec 31 
11:15:47 2008
+++ php-src/ext/xmlwriter/php_xmlwriter.c   Mon May 11 12:21:26 2009
@@ -17,7 +17,7 @@
   +--+
 */
 
-/* $Id: php_xmlwriter.c,v 1.20.2.12.2.15.2.11 2008/12/31 11:15:47 sebastian 
Exp $ */
+/* $Id: php_xmlwriter.c,v 1.20.2.12.2.15.2.12 2009/05/11 12:21:26 iliaa Exp $ 
*/
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -1755,6 +1755,7 @@
 
valid_file = _xmlwriter_get_valid_file_path(source, resolved_path, 
MAXPATHLEN TSRMLS_CC);
if (!valid_file) {
+   php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to resolve 
file path");
RETURN_FALSE;
}
 
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.965.2.596&r2=1.2027.2.547.2.965.2.597&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.965.2.596 
php-src/NEWS:1.2027.2.547.2.965.2.597
--- php-src/NEWS:1.2027.2.547.2.965.2.596   Sun May 10 21:06:35 2009
+++ php-src/NEWSMon May 11 12:21:26 2009
@@ -39,6 +39,8 @@
 - Added ability to throw exceptions from SQLite3 instead of warnings. (Scott)
 - Added startup notices for deprecated ini settings. (Kalle)
 
+- Fixed bug #48204 (xmlwriter_open_uri() does not emit warnings on invalid
+  paths). (Ilia)
 - Fixed bug #48185 (warning: value computed is not used in
   pdo_sqlite_stmt_get_col line 271). (Matteo)
 - Fixed bug #48087 (call_user_method() invalid free of arguments). (Felipe)



-- 
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) / NEWS /ext/xmlwriter php_xmlwriter.c

2008-09-17 Thread Ilia Alshanetsky
iliaa   Wed Sep 17 23:27:54 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/ext/xmlwriter  php_xmlwriter.c 
/php-srcNEWS 
  Log:
  
  Fixed bug #46110 (XMLWriter - openmemory() and openuri() leak memory on
  multiple calls).
  
http://cvs.php.net/viewvc.cgi/php-src/ext/xmlwriter/php_xmlwriter.c?r1=1.20.2.12.2.15.2.5&r2=1.20.2.12.2.15.2.6&diff_format=u
Index: php-src/ext/xmlwriter/php_xmlwriter.c
diff -u php-src/ext/xmlwriter/php_xmlwriter.c:1.20.2.12.2.15.2.5 
php-src/ext/xmlwriter/php_xmlwriter.c:1.20.2.12.2.15.2.6
--- php-src/ext/xmlwriter/php_xmlwriter.c:1.20.2.12.2.15.2.5Fri Jun 27 
13:13:09 2008
+++ php-src/ext/xmlwriter/php_xmlwriter.c   Wed Sep 17 23:27:53 2008
@@ -17,7 +17,7 @@
   +--+
 */
 
-/* $Id: php_xmlwriter.c,v 1.20.2.12.2.15.2.5 2008/06/27 13:13:09 felipe Exp $ 
*/
+/* $Id: php_xmlwriter.c,v 1.20.2.12.2.15.2.6 2008/09/17 23:27:53 iliaa Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -1844,6 +1844,9 @@
intern->uri_output = out_buffer;
 #else
if (this) {
+   if (ze_obj->xmlwriter_ptr) {
+   xmlwriter_free_resource_ptr(ze_obj->xmlwriter_ptr 
TSRMLS_CC);
+   }
ze_obj->xmlwriter_ptr = intern;
RETURN_TRUE;
} else
@@ -1894,6 +1897,9 @@
intern->uri_output = NULL;
 #else
if (this) {
+   if (ze_obj->xmlwriter_ptr) {
+   xmlwriter_free_resource_ptr(ze_obj->xmlwriter_ptr 
TSRMLS_CC);
+   }
ze_obj->xmlwriter_ptr = intern;
RETURN_TRUE;
} else
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.965.2.322&r2=1.2027.2.547.2.965.2.323&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.965.2.322 
php-src/NEWS:1.2027.2.547.2.965.2.323
--- php-src/NEWS:1.2027.2.547.2.965.2.322   Wed Sep 17 15:11:27 2008
+++ php-src/NEWSWed Sep 17 23:27:53 2008
@@ -53,6 +53,8 @@
 - Fixed a bug causing miscalculations with the "last  of  month"
   relative time string. (Derick)
 
+- Fixed bug #46110 (XMLWriter - openmemory() and openuri() leak memory on
+  multiple calls). (Ilia)
 - Fixed bug #46032 (PharData::__construct() wrong memory read). (Greg)
 - Fixed bug #45826 (custom ArrayObject serialization). (Etienne)
 - Fixed bug #45798 (sqlite3 doesn't notice if variable was bound). (Felipe)



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