Lines Matching refs:buf
96 char *buf; in php_exec() local
122 buf = (char *) emalloc(EXEC_INPUT_BUF); in php_exec()
126 b = buf; in php_exec()
131 if (buflen < (bufl + (b - buf) + EXEC_INPUT_BUF)) { in php_exec()
132 bufl += b - buf; in php_exec()
134 buf = erealloc(buf, buflen); in php_exec()
135 b = buf + bufl; in php_exec()
140 } else if (b != buf) { in php_exec()
141 bufl += b - buf; in php_exec()
145 PHPWRITE(buf, bufl); in php_exec()
152 while (l-- > 0 && isspace(((unsigned char *)buf)[l])); in php_exec()
155 buf[bufl] = '\0'; in php_exec()
157 add_next_index_stringl(array, buf, bufl); in php_exec()
159 b = buf; in php_exec()
163 if ((type == 2 && buf != b) || type != 2) { in php_exec()
165 while (l-- > 0 && isspace(((unsigned char *)buf)[l])); in php_exec()
168 buf[bufl] = '\0'; in php_exec()
171 add_next_index_stringl(array, buf, bufl); in php_exec()
176 RETVAL_STRINGL(buf, bufl); in php_exec()
181 while((bufl = php_stream_read(stream, buf, EXEC_INPUT_BUF)) > 0) { in php_exec()
182 PHPWRITE(buf, bufl); in php_exec()
187 efree(buf); in php_exec()