php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61253
Patch bug61253.diff revision 2012-03-07 14:05 UTC by cataphract@php.net
revision 2012-03-02 22:13 UTC by cataphract@php.net

Patch bug61253.diff for Streams related Bug #61253

Patch version 2012-03-07 14:05 UTC

Return to Bug #61253 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions: 2012-03-07 14:05 UTC | 2012-03-02 22:13 UTC

Developer: cataphract@php.net



  @@ -157,20 +157,35 @@
   
   /* }}} */
   
 +static zend_llist *php_get_wrapper_errors_list(php_stream_wrapper *wrapper)
 +static zend_llist *php_get_wrapper_errors_list(php_stream_wrapper *wrapper TSRMLS_DC)
  +{
  +    zend_llist *list = NULL;
  +    if (!FG(wrapper_errors)) {
  +        return NULL;


  -	php_stream_wrapper orig_wrapper;
   
   	if (wrapper) {
  -		if (wrapper->err_count > 0) {
 +		zend_llist *err_list = php_get_wrapper_errors_list(wrapper);
 +		zend_llist *err_list = php_get_wrapper_errors_list(wrapper TSRMLS_CC);
  +		if (err_list) {
  +			size_t l = 0;
  +			int brlen;
   			int i;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 03:01:27 2024 UTC