Skip to content

Commit 64f00fe

Browse files
committed
Mark Phar::buildFromIterator() base directory argument as a path
This is like buildFromDirectory() which does it right.
1 parent 1791578 commit 64f00fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/phar/phar_object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,7 @@ PHP_METHOD(Phar, buildFromIterator)
18281828
zend_string *base = ZSTR_EMPTY_ALLOC();
18291829
struct _phar_t pass;
18301830

1831-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|S!", &obj, zend_ce_traversable, &base) == FAILURE) {
1831+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|P!", &obj, zend_ce_traversable, &base) == FAILURE) {
18321832
RETURN_THROWS();
18331833
}
18341834

0 commit comments

Comments
 (0)