Lines Matching refs:maxlen
528 zend_long maxlen = (ssize_t) PHP_STREAM_COPY_ALL; in PHP_FUNCTION() local
540 Z_PARAM_LONG(maxlen) in PHP_FUNCTION()
543 if (ZEND_NUM_ARGS() == 5 && maxlen < 0) { in PHP_FUNCTION()
563 if (maxlen > INT_MAX) { in PHP_FUNCTION()
564 …php_error_docref(NULL, E_WARNING, "maxlen truncated from " ZEND_LONG_FMT " to %d bytes", maxlen, I… in PHP_FUNCTION()
565 maxlen = INT_MAX; in PHP_FUNCTION()
567 if ((contents = php_stream_copy_to_mem(stream, maxlen, 0)) != NULL) { in PHP_FUNCTION()
1191 zend_long maxlen = 0; in PHP_FUNCTION() local
1198 Z_PARAM_LONG(maxlen) in PHP_FUNCTION()
1203 } else if (maxlen <= 0) { in PHP_FUNCTION()
1206 num_bytes = MIN((size_t) maxlen, inputlen); in PHP_FUNCTION()