Commits

Ruslan Osmanov committed 005b600

Fix

  • Participants
  • Parent commits a356015

Comments (0)

Files changed (2)

File classes/buffer.c

 		end_pos = -1;
 	}
 
-	if (end_pos) {
+	if (end_pos != -1) {
 		ptr_res = evbuffer_search_range(b->buf, what, (size_t) what_len,
 				(start_pos != -1 ? &ptr_start : NULL), &ptr_end);
 	} else {

File tests/05-buffer-pos.phpt

     $total = 0;
 	$p = 0;
 
-	$i = 0;
     while (1) {
         $p = $buf->search($str, $p);
         if ($p === FALSE) {