#endif
char *pattern = NULL;
int pattern_len;
- long flags = 0;
+ php_int_t flags = 0;
glob_t globbuf;
int n;
int ret;
zend_bool basedir_limit = 0;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|l", &pattern, &pattern_len, &flags) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|i", &pattern, &pattern_len, &flags) == FAILURE) {
return;
}
{
char *dirn;
int dirn_len;
- long flags = 0;
+ php_int_t flags = 0;
zend_string **namelist;
int n, i;
zval *zcontext = NULL;
php_stream_context *context = NULL;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|lr", &dirn, &dirn_len, &flags, &zcontext) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|ir", &dirn, &dirn_len, &flags, &zcontext) == FAILURE) {
return;
}
PHP_FUNCTION(openlog)
{
char *ident;
- long option, facility;
+ php_int_t option, facility;
int ident_len;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sll", &ident,
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sii", &ident,
&ident_len, &option, &facility) == FAILURE) {
return;
}
Generate a system log message */
PHP_FUNCTION(syslog)
{
- long priority;
+ php_int_t priority;
char *message;
int message_len;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ls", &priority,
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "is", &priority,
&message, &message_len) == FAILURE) {
return;
}