Commits

Ruslan Osmanov committed ff6e34b

Fix: had to dup string returned by EventBuffer::readLine

  • Participants
  • Parent commits 8be3465

Comments (0)

Files changed (2)

File classes/buffer.c

 		RETURN_NULL();
 	}
 
-	RETVAL_STRINGL(res, len, 0);
+	RETVAL_STRINGL(res, len, 1);
 }
 /* }}} */
 
   <license uri="http://www.php.net/license">PHP</license>
   <notes><![CDATA[
   Fix: deleted redundant len argument of EventBuffer::readLine
+  Fix: EventBuffer::readLine returned non-dup'd string. Caused bugs with pointers.
   ]]></notes>
   <!--}}}-->
   <!--{{{ Contents -->
   <license uri="http://www.php.net/license">PHP</license>
   <notes><![CDATA[
   Fix: deleted redundant len argument of EventBuffer::readLine
+  Fix: EventBuffer::readLine returned non-dup'd string. Caused bugs with pointers.
   ]]></notes>
   <!--}}}-->
     <!--{{{ 1.2.3-alpha -->