Searched defs:suffix (Results 1 - 3 of 3) sorted by relevance

/PHP_5_3/ext/standard/
H A Dstring.c1341 PHPAPI void php_basename(char *s, size_t len, char *suffix, size_t sufflen, char **p_ret, size_t *p_len TSRMLS_DC) argument
1393 if (suffix != NULL && sufflen < (uint)(cend - comp) &&
1394 memcmp(cend - sufflen, suffix, sufflen) == 0) {
1412 /* {{{ proto string basename(string path [, string suffix])
1416 char *string, *suffix = NULL, *ret; local
1420 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &string, &string_len, &suffix, &suffix_len) == FAILURE) {
1424 php_basename(string, string_len, suffix, suffix_len, &ret, &ret_len TSRMLS_CC);
/PHP_5_3/sapi/fpm/fpm/
H A Dfpm_conf.c269 char suffix; local
275 suffix = val[len-1];
276 switch (suffix) {
289 case 's' : /* s is the default suffix */
291 suffix = '0';
293 if (suffix < '0' || suffix > '9') {
294 return "unknown suffix used in time value";
/PHP_5_3/ext/spl/
H A Dspl_directory.c982 /* {{{ proto string SplFileInfo::getBasename([string $suffix]) U
987 char *fname, *suffix = 0; local
991 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &suffix, &slen) == FAILURE) {
1005 php_basename(fname, flen, suffix, slen, &fname, &flen TSRMLS_CC);
1011 /* {{{ proto string DirectoryIterator::getBasename([string $suffix]) U
1016 char *suffix = 0, *fname; local
1020 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &suffix, &slen) == FAILURE) {
1024 php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), suffix, slen, &fname, &flen TSRMLS_CC);
1936 ZEND_ARG_INFO(0, suffix)

Completed in 22 milliseconds