summaryrefslogtreecommitdiff
path: root/ext/standard/ftok.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2011-06-06 21:28:16 +0000
committerFelipe Pena <felipe@php.net>2011-06-06 21:28:16 +0000
commit4737910b69eba83b5ba6dd2d43f88a7bd3461ccf (patch)
treedc6ecafe9a79a17cbb6d4a96b83a1bcbda30e5a8 /ext/standard/ftok.c
parent6b85eb58b27a60cfc4d78ad0a85afeda373132c5 (diff)
downloadphp-git-4737910b69eba83b5ba6dd2d43f88a7bd3461ccf.tar.gz
- Added new parameter parsing option (p - for valid path (string without null byte in the middle))
# The tests will be fixed in the next commits
Diffstat (limited to 'ext/standard/ftok.c')
-rw-r--r--ext/standard/ftok.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/ftok.c b/ext/standard/ftok.c
index 809a1e078a..8486eb12c7 100644
--- a/ext/standard/ftok.c
+++ b/ext/standard/ftok.c
@@ -35,7 +35,7 @@ PHP_FUNCTION(ftok)
int pathname_len, proj_len;
key_t k;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &pathname, &pathname_len, &proj, &proj_len) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ps", &pathname, &pathname_len, &proj, &proj_len) == FAILURE) {
return;
}