Lines Matching refs:bufl
84 static size_t strip_trailing_whitespace(char *buf, size_t bufl) { in strip_trailing_whitespace() argument
85 size_t l = bufl; in strip_trailing_whitespace()
87 if (l != (bufl - 1)) { in strip_trailing_whitespace()
88 bufl = l + 1; in strip_trailing_whitespace()
89 buf[bufl] = '\0'; in strip_trailing_whitespace()
91 return bufl; in strip_trailing_whitespace()
94 static size_t handle_line(int type, zval *array, char *buf, size_t bufl) { in handle_line() argument
96 PHPWRITE(buf, bufl); in handle_line()
101 bufl = strip_trailing_whitespace(buf, bufl); in handle_line()
102 add_next_index_stringl(array, buf, bufl); in handle_line()
104 return bufl; in handle_line()
121 size_t buflen, bufl = 0; in php_exec() local
148 while (php_stream_get_line(stream, b, EXEC_INPUT_BUF, &bufl)) { in php_exec()
150 if (b[bufl - 1] != '\n' && !php_stream_eof(stream)) { in php_exec()
151 if (buflen < (bufl + (b - buf) + EXEC_INPUT_BUF)) { in php_exec()
152 bufl += b - buf; in php_exec()
153 buflen = bufl + EXEC_INPUT_BUF; in php_exec()
155 b = buf + bufl; in php_exec()
157 b += bufl; in php_exec()
161 bufl += b - buf; in php_exec()
164 bufl = handle_line(type, array, buf, bufl); in php_exec()
167 if (bufl) { in php_exec()
170 bufl = handle_line(type, array, buf, bufl); in php_exec()
174 bufl = strip_trailing_whitespace(buf, bufl); in php_exec()
175 RETVAL_STRINGL(buf, bufl); in php_exec()