version 1.1.1.2, 2012/05/29 12:34:43
|
version 1.1.1.4, 2014/06/15 20:03:57
|
Line 2
|
Line 2
|
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| PHP Version 5 | |
| PHP Version 5 | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| Copyright (c) 1997-2012 The PHP Group | | | Copyright (c) 1997-2014 The PHP Group | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| This source file is subject to version 3.01 of the PHP license, | |
| This source file is subject to version 3.01 of the PHP license, | |
| that is bundled with this package in the file LICENSE, and is | |
| that is bundled with this package in the file LICENSE, and is | |
Line 180 php_stream_filter_status_t userfilter_filter(
|
Line 180 php_stream_filter_status_t userfilter_filter(
|
zval zpropname; |
zval zpropname; |
int call_result; |
int call_result; |
|
|
|
/* the userfilter object probably doesn't exist anymore */ |
|
if (CG(unclean_shutdown)) { |
|
return ret; |
|
} |
|
|
if (FAILURE == zend_hash_find(Z_OBJPROP_P(obj), "stream", sizeof("stream"), (void**)&zstream)) { |
if (FAILURE == zend_hash_find(Z_OBJPROP_P(obj), "stream", sizeof("stream"), (void**)&zstream)) { |
/* Give the userfilter class a hook back to the stream */ |
/* Give the userfilter class a hook back to the stream */ |
ALLOC_INIT_ZVAL(zstream); |
ALLOC_INIT_ZVAL(zstream); |
Line 474 static void php_stream_bucket_attach(int append, INTER
|
Line 479 static void php_stream_bucket_attach(int append, INTER
|
} else { |
} else { |
php_stream_bucket_prepend(brigade, bucket TSRMLS_CC); |
php_stream_bucket_prepend(brigade, bucket TSRMLS_CC); |
} |
} |
/* This is a hack necessary to accomodate situations where bucket is appended to the stream | /* This is a hack necessary to accommodate situations where bucket is appended to the stream |
* multiple times. See bug35916.phpt for reference. |
* multiple times. See bug35916.phpt for reference. |
*/ |
*/ |
if (bucket->refcount == 1) { |
if (bucket->refcount == 1) { |