]> granicus.if.org Git - php/commitdiff
MFH
authorAntony Dovgal <tony2001@php.net>
Thu, 1 Feb 2007 14:21:01 +0000 (14:21 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 1 Feb 2007 14:21:01 +0000 (14:21 +0000)
ext/standard/user_filters.c

index 7b9b6362a3e830fdc24c2a404b12ac089d51876f..321ef58532608ea2f1a87f9026c98f975cc1c8a1 100644 (file)
@@ -496,6 +496,10 @@ PHP_FUNCTION(stream_bucket_new)
        memcpy(pbuffer, buffer, buffer_len);
 
        bucket = php_stream_bucket_new(stream, pbuffer, buffer_len, 1, php_stream_is_persistent(stream) TSRMLS_CC);
+       
+       if (bucket == NULL) {
+               RETURN_FALSE;
+       }
 
        ALLOC_INIT_ZVAL(zbucket);
        ZEND_REGISTER_RESOURCE(zbucket, bucket, le_bucket);