Lines Matching refs:maxlen
527 zend_long maxlen = (ssize_t) PHP_STREAM_COPY_ALL; in PHP_FUNCTION() local
533 … "p|br!ll", &filename, &filename_len, &use_include_path, &zcontext, &offset, &maxlen) == FAILURE) { in PHP_FUNCTION()
537 if (ZEND_NUM_ARGS() == 5 && maxlen < 0) { in PHP_FUNCTION()
557 if (maxlen > INT_MAX) { in PHP_FUNCTION()
558 …php_error_docref(NULL, E_WARNING, "maxlen truncated from " ZEND_LONG_FMT " to %d bytes", maxlen, I… in PHP_FUNCTION()
559 maxlen = INT_MAX; in PHP_FUNCTION()
561 if ((contents = php_stream_copy_to_mem(stream, maxlen, 0)) != NULL) { in PHP_FUNCTION()
1166 zend_long maxlen = 0; in PHP_FUNCTION() local
1173 Z_PARAM_LONG(maxlen) in PHP_FUNCTION()
1178 } else if (maxlen <= 0) { in PHP_FUNCTION()
1181 num_bytes = MIN((size_t) maxlen, inputlen); in PHP_FUNCTION()