mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Convert remaining zend_parse_parameters_none() to ZPP (#21343)
This commit is contained in:
committed by
GitHub
parent
0039af028c
commit
a8543dfdd2
@@ -1393,9 +1393,7 @@ PHP_FUNCTION(ob_start)
|
||||
/* {{{ Flush (send) contents of the output buffer. The last buffer content is sent to next buffer */
|
||||
PHP_FUNCTION(ob_flush)
|
||||
{
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
if (!OG(active)) {
|
||||
php_error_docref("ref.outcontrol", E_NOTICE, "Failed to flush buffer. No buffer to flush");
|
||||
@@ -1413,9 +1411,7 @@ PHP_FUNCTION(ob_flush)
|
||||
/* {{{ Clean (delete) the current output buffer */
|
||||
PHP_FUNCTION(ob_clean)
|
||||
{
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
if (!OG(active)) {
|
||||
php_error_docref("ref.outcontrol", E_NOTICE, "Failed to delete buffer. No buffer to delete");
|
||||
@@ -1433,9 +1429,7 @@ PHP_FUNCTION(ob_clean)
|
||||
/* {{{ Flush (send) the output buffer, and delete current output buffer */
|
||||
PHP_FUNCTION(ob_end_flush)
|
||||
{
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
if (!OG(active)) {
|
||||
php_error_docref("ref.outcontrol", E_NOTICE, "Failed to delete and flush buffer. No buffer to delete or flush");
|
||||
@@ -1449,9 +1443,7 @@ PHP_FUNCTION(ob_end_flush)
|
||||
/* {{{ Clean the output buffer, and delete current output buffer */
|
||||
PHP_FUNCTION(ob_end_clean)
|
||||
{
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
if (!OG(active)) {
|
||||
php_error_docref("ref.outcontrol", E_NOTICE, "Failed to delete buffer. No buffer to delete");
|
||||
@@ -1465,9 +1457,7 @@ PHP_FUNCTION(ob_end_clean)
|
||||
/* {{{ Get current buffer contents, flush (send) the output buffer, and delete current output buffer */
|
||||
PHP_FUNCTION(ob_get_flush)
|
||||
{
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
if (php_output_get_contents(return_value) == FAILURE) {
|
||||
php_error_docref("ref.outcontrol", E_NOTICE, "Failed to delete and flush buffer. No buffer to delete or flush");
|
||||
@@ -1483,9 +1473,7 @@ PHP_FUNCTION(ob_get_flush)
|
||||
/* {{{ Get current buffer contents and delete current output buffer */
|
||||
PHP_FUNCTION(ob_get_clean)
|
||||
{
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
if(!OG(active)) {
|
||||
RETURN_FALSE;
|
||||
@@ -1505,9 +1493,7 @@ PHP_FUNCTION(ob_get_clean)
|
||||
/* {{{ Return the contents of the output buffer */
|
||||
PHP_FUNCTION(ob_get_contents)
|
||||
{
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
if (php_output_get_contents(return_value) == FAILURE) {
|
||||
RETURN_FALSE;
|
||||
@@ -1518,9 +1504,7 @@ PHP_FUNCTION(ob_get_contents)
|
||||
/* {{{ Return the nesting level of the output buffer */
|
||||
PHP_FUNCTION(ob_get_level)
|
||||
{
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
RETURN_LONG(php_output_get_level());
|
||||
}
|
||||
@@ -1529,9 +1513,7 @@ PHP_FUNCTION(ob_get_level)
|
||||
/* {{{ Return the length of the output buffer */
|
||||
PHP_FUNCTION(ob_get_length)
|
||||
{
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
if (php_output_get_length(return_value) == FAILURE) {
|
||||
RETURN_FALSE;
|
||||
@@ -1542,9 +1524,7 @@ PHP_FUNCTION(ob_get_length)
|
||||
/* {{{ List all output_buffers in an array */
|
||||
PHP_FUNCTION(ob_list_handlers)
|
||||
{
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
array_init(return_value);
|
||||
|
||||
@@ -1595,9 +1575,7 @@ PHP_FUNCTION(ob_implicit_flush)
|
||||
/* {{{ Reset(clear) URL rewriter values */
|
||||
PHP_FUNCTION(output_reset_rewrite_vars)
|
||||
{
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
if (php_url_scanner_reset_vars() == SUCCESS) {
|
||||
RETURN_TRUE;
|
||||
|
||||
Reference in New Issue
Block a user