Lines Matching refs:maxlen
530 zend_long maxlen = (ssize_t) PHP_STREAM_COPY_ALL; in PHP_FUNCTION() local
542 Z_PARAM_LONG(maxlen) in PHP_FUNCTION()
545 if (ZEND_NUM_ARGS() == 5 && maxlen < 0) { in PHP_FUNCTION()
565 if (maxlen > INT_MAX) { in PHP_FUNCTION()
566 …php_error_docref(NULL, E_WARNING, "maxlen truncated from " ZEND_LONG_FMT " to %d bytes", maxlen, I… in PHP_FUNCTION()
567 maxlen = INT_MAX; in PHP_FUNCTION()
569 if ((contents = php_stream_copy_to_mem(stream, maxlen, 0)) != NULL) { in PHP_FUNCTION()
1194 zend_long maxlen = 0; in PHP_FUNCTION() local
1201 Z_PARAM_LONG(maxlen) in PHP_FUNCTION()
1206 } else if (maxlen <= 0) { in PHP_FUNCTION()
1209 num_bytes = MIN((size_t) maxlen, inputlen); in PHP_FUNCTION()