Flush the output buffer */
PHP_FUNCTION(flush)
{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
sapi_flush();
}
Get the name of the owner of the current PHP script */
PHP_FUNCTION(get_current_user)
{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
RETURN_STRING(php_get_current_user());
}
Get the last occurred error as associative array. Returns NULL if there hasn't been an error yet. */
PHP_FUNCTION(error_get_last)
{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
if (PG(last_error_message)) {
array_init(return_value);
Clear the last occurred error. */
PHP_FUNCTION(error_clear_last)
{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
if (PG(last_error_message)) {
PG(last_error_type) = 0;
{
char *str;
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
str = zend_ini_string("include_path", sizeof("include_path") - 1, 0);
{
zend_string *key;
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
+
key = zend_string_init("include_path", sizeof("include_path")-1, 0);
zend_restore_ini_entry(key, PHP_INI_STAGE_RUNTIME);
zend_string_efree(key);
Returns true if client disconnected */
PHP_FUNCTION(connection_aborted)
{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
RETURN_LONG(PG(connection_status) & PHP_CONNECTION_ABORTED);
}
Returns the connection status bitfield */
PHP_FUNCTION(connection_status)
{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
RETURN_LONG(PG(connection_status));
}
{
double load[3];
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
if (getloadavg(load, 3) == -1) {
RETURN_FALSE;
char path[MAXPATHLEN];
char *ret=NULL;
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
#if HAVE_GETCWD
ret = VCWD_GETCWD(path, MAXPATHLEN);
{
char buf[HOST_NAME_MAX + 1];
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
if (gethostname(buf, sizeof(buf))) {
php_error_docref(NULL, E_WARNING, "unable to fetch host [%d]: %s", errno, strerror(errno));
{
php_stream *stream;
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
stream = php_stream_fopen_tmpfile();
Returns directory path used for temporary files */
PHP_FUNCTION(sys_get_temp_dir)
{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
+
RETURN_STRING((char *)php_get_temporary_directory());
}
/* }}} */
Get current size of realpath cache */
PHP_FUNCTION(realpath_cache_size)
{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
+
RETURN_LONG(realpath_cache_size());
}
{
realpath_cache_bucket **buckets = realpath_cache_get_buckets(), **end = buckets + realpath_cache_max_buckets();
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
array_init(return_value);
while(buckets < end) {
Return list of headers to be sent / already sent */
PHP_FUNCTION(headers_list)
{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
array_init(return_value);
zend_llist_apply_with_argument(&SG(sapi_headers).headers, php_head_apply_header_list_to_hash, return_value);
Return the current SAPI module name */
PHP_FUNCTION(php_sapi_name)
{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
if (sapi_module.name) {
RETURN_STRING(sapi_module.name);
Return comma-separated string of .ini files parsed from the additional ini dir */
PHP_FUNCTION(php_ini_scanned_files)
{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
if (php_ini_scanned_files) {
RETURN_STRING(php_ini_scanned_files);
Return the actual loaded ini filename */
PHP_FUNCTION(php_ini_loaded_file)
{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
if (php_ini_opened_path) {
RETURN_STRING(php_ini_opened_path);
Returns a value from the combined linear congruential generator */
PHP_FUNCTION(lcg_value)
{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
+
RETURN_DOUBLE(php_combined_lcg());
}
/* }}} */
Returns an approximation of pi */
PHP_FUNCTION(pi)
{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
RETURN_DOUBLE(M_PI);
}
Returns the maximum value a random number from Mersenne Twister can have */
PHP_FUNCTION(mt_getrandmax)
{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
/*
* Melo: it could be 2^^32 but we only use 2^^31 to maintain
{
zend_long uid;
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
uid = php_getuid();
if (uid < 0) {
{
zend_long gid;
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
gid = php_getgid();
if (gid < 0) {
{
zend_long pid;
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
pid = getpid();
if (pid < 0) {
Get the inode of the current script being parsed */
PHP_FUNCTION(getmyinode)
{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
php_statpage();
if (BG(page_inode) < 0) {
{
zend_long lm;
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
lm = php_getlastmod();
if (lm < 0) {
HashTable *stream_xport_hash;
zend_string *stream_xport;
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
if ((stream_xport_hash = php_stream_xport_get_hash())) {
array_init(return_value);
HashTable *url_stream_wrappers_hash;
zend_string *stream_protocol;
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
if ((url_stream_wrappers_hash = php_stream_get_url_stream_wrappers_hash())) {
array_init(return_value);
zval grouping, mon_grouping;
int len, i;
- /* We don't need no stinkin' parameters... */
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
array_init(return_value);
array_init(&grouping);
Close connection to system logger */
PHP_FUNCTION(closelog)
{
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
closelog();
if (BG(syslog_device)) {
zend_string *filter_name;
HashTable *filters_hash;
- if (zend_parse_parameters_none() == FAILURE) {
- return;
- }
+ ZEND_PARSE_PARAMETERS_NONE();
array_init(return_value);