diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2007-06-18 16:53:09 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2007-06-18 16:53:09 +0000 |
| commit | 24bdf0e3681f5e9e86a71f4463488ff10d60276f (patch) | |
| tree | 0e2ef33e5a1785f5c16a1a3ee583a0fb70036ed9 /ext/standard/array.c | |
| parent | 161ab0aa507a96e0bfbe36d4e158bf765dd7f7d9 (diff) | |
| download | php-git-24bdf0e3681f5e9e86a71f4463488ff10d60276f.tar.gz | |
Fixed bug #41686 (Omitting length param in array_slice not possible).
Diffstat (limited to 'ext/standard/array.c')
| -rw-r--r-- | ext/standard/array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c index 1901630ef5..b698ead1ee 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -2213,7 +2213,7 @@ PHP_FUNCTION(array_slice) is not passed */ convert_to_long_ex(offset); offset_val = Z_LVAL_PP(offset); - if (argc >= 3) { + if (argc >= 3 && Z_TYPE_PP(length) != IS_NULL) { convert_to_long_ex(length); length_val = Z_LVAL_PP(length); } else { |
