| version 1.1, 2012/02/21 23:48:02 | 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 79  PHPAPI void php_statpage(TSRMLS_D) | Line 79  PHPAPI void php_statpage(TSRMLS_D) | 
 |  |  | 
 | /* {{{ php_getuid | /* {{{ php_getuid | 
 | */ | */ | 
| long php_getuid(void) | long php_getuid(TSRMLS_D) | 
 | { | { | 
 | TSRMLS_FETCH(); |  | 
 |  |  | 
 | php_statpage(TSRMLS_C); | php_statpage(TSRMLS_C); | 
 | return (BG(page_uid)); | return (BG(page_uid)); | 
 | } | } | 
 | /* }}} */ | /* }}} */ | 
 |  |  | 
| long php_getgid(void) | long php_getgid(TSRMLS_D) | 
 | { | { | 
 | TSRMLS_FETCH(); |  | 
 |  |  | 
 | php_statpage(TSRMLS_C); | php_statpage(TSRMLS_C); | 
 | return (BG(page_gid)); | return (BG(page_gid)); | 
 | } | } | 
| Line 101  long php_getgid(void) | Line 97  long php_getgid(void) | 
 | PHP_FUNCTION(getmyuid) | PHP_FUNCTION(getmyuid) | 
 | { | { | 
 | long uid; | long uid; | 
 |  |  | 
 |  | if (zend_parse_parameters_none() == FAILURE) { | 
 |  | return; | 
 |  | } | 
 |  |  | 
| uid = php_getuid(); | uid = php_getuid(TSRMLS_C); | 
 | if (uid < 0) { | if (uid < 0) { | 
 | RETURN_FALSE; | RETURN_FALSE; | 
 | } else { | } else { | 
| Line 116  PHP_FUNCTION(getmyuid) | Line 116  PHP_FUNCTION(getmyuid) | 
 | PHP_FUNCTION(getmygid) | PHP_FUNCTION(getmygid) | 
 | { | { | 
 | long gid; | long gid; | 
 |  |  | 
 |  | if (zend_parse_parameters_none() == FAILURE) { | 
 |  | return; | 
 |  | } | 
 |  |  | 
| gid = php_getgid(); | gid = php_getgid(TSRMLS_C); | 
 | if (gid < 0) { | if (gid < 0) { | 
 | RETURN_FALSE; | RETURN_FALSE; | 
 | } else { | } else { | 
| Line 131  PHP_FUNCTION(getmygid) | Line 135  PHP_FUNCTION(getmygid) | 
 | PHP_FUNCTION(getmypid) | PHP_FUNCTION(getmypid) | 
 | { | { | 
 | int pid; | int pid; | 
 |  |  | 
 |  | if (zend_parse_parameters_none() == FAILURE) { | 
 |  | return; | 
 |  | } | 
 |  |  | 
 | pid = getpid(); | pid = getpid(); | 
 | if (pid < 0) { | if (pid < 0) { | 
| Line 145  PHP_FUNCTION(getmypid) | Line 153  PHP_FUNCTION(getmypid) | 
 | Get the inode of the current script being parsed */ | Get the inode of the current script being parsed */ | 
 | PHP_FUNCTION(getmyinode) | PHP_FUNCTION(getmyinode) | 
 | { | { | 
 |  | if (zend_parse_parameters_none() == FAILURE) { | 
 |  | return; | 
 |  | } | 
 |  |  | 
 | php_statpage(TSRMLS_C); | php_statpage(TSRMLS_C); | 
 | if (BG(page_inode) < 0) { | if (BG(page_inode) < 0) { | 
 | RETURN_FALSE; | RETURN_FALSE; | 
| Line 164  PHPAPI long php_getlastmod(TSRMLS_D) | Line 176  PHPAPI long php_getlastmod(TSRMLS_D) | 
 | Get time of last page modification */ | Get time of last page modification */ | 
 | PHP_FUNCTION(getlastmod) | PHP_FUNCTION(getlastmod) | 
 | { | { | 
| long lm = php_getlastmod(TSRMLS_C); | long lm; | 
|  |  | 
|  | if (zend_parse_parameters_none() == FAILURE) { | 
|  | return; | 
|  | } | 
|  |  | 
|  | lm = php_getlastmod(TSRMLS_C); | 
 | if (lm < 0) { | if (lm < 0) { | 
 | RETURN_FALSE; | RETURN_FALSE; | 
 | } else { | } else { | 
| Line 173  PHP_FUNCTION(getlastmod) | Line 191  PHP_FUNCTION(getlastmod) | 
 | } | } | 
 | /* }}} */ | /* }}} */ | 
 |  |  | 
| /* | /*nma | 
 | * Local variables: | * Local variables: | 
 | * tab-width: 4 | * tab-width: 4 | 
 | * c-basic-offset: 4 | * c-basic-offset: 4 |