@@ -389,7 +389,7 @@ static void filter_item_dtor(zval *zv)
389
389
efree (fdat );
390
390
}
391
391
392
- /* {{{ proto object|false stream_bucket_make_writeable(resource brigade)
392
+ /* {{{ proto object|null stream_bucket_make_writeable(resource brigade)
393
393
Return a bucket object from the brigade for operating on */
394
394
PHP_FUNCTION (stream_bucket_make_writeable )
395
395
{
@@ -434,8 +434,8 @@ static void php_stream_bucket_attach(int append, INTERNAL_FUNCTION_PARAMETERS)
434
434
ZEND_PARSE_PARAMETERS_END ();
435
435
436
436
if (NULL == (pzbucket = zend_hash_str_find (Z_OBJPROP_P (zobject ), "bucket" , sizeof ("bucket" )- 1 ))) {
437
- php_error_docref ( NULL , E_WARNING , "Object has no bucket property" );
438
- RETURN_FALSE ;
437
+ zend_value_error ( "Object has no bucket property" );
438
+ return ;
439
439
}
440
440
441
441
if ((brigade = (php_stream_bucket_brigade * )zend_fetch_resource (
@@ -505,7 +505,6 @@ PHP_FUNCTION(stream_bucket_new)
505
505
ZEND_PARSE_PARAMETERS_END ();
506
506
507
507
php_stream_from_zval (stream , zstream );
508
-
509
508
pbuffer = pemalloc (buffer_len , php_stream_is_persistent (stream ));
510
509
511
510
memcpy (pbuffer , buffer , buffer_len );
@@ -564,15 +563,13 @@ PHP_FUNCTION(stream_filter_register)
564
563
Z_PARAM_STR (classname )
565
564
ZEND_PARSE_PARAMETERS_END ();
566
565
567
- RETVAL_FALSE ;
568
-
569
566
if (!ZSTR_LEN (filtername )) {
570
- php_error_docref ( NULL , E_WARNING , "Filter name cannot be empty" );
567
+ zend_value_error ( "Filter name cannot be empty" );
571
568
return ;
572
569
}
573
570
574
571
if (!ZSTR_LEN (classname )) {
575
- php_error_docref ( NULL , E_WARNING , "Class name cannot be empty" );
572
+ zend_value_error ( "Class name cannot be empty" );
576
573
return ;
577
574
}
578
575
@@ -590,6 +587,7 @@ PHP_FUNCTION(stream_filter_register)
590
587
} else {
591
588
zend_string_release_ex (classname , 0 );
592
589
efree (fdat );
590
+ RETVAL_FALSE ;
593
591
}
594
592
}
595
593
/* }}} */
0 commit comments