Commits

Ruslan Osmanov committed e0c7427

Preparing for event-1.7.3

Comments (0)

Files changed (2)

     <email>osmanov@php.net</email>
     <active>yes</active>
   </lead>
-  <date>2013-07-29</date>
+  <date>2013-08-09</date>
   <!--{{{ Current version -->
   <version>
     <release>1.7.3</release>
   <license uri="http://www.php.net/license">PHP</license>
   <notes><![CDATA[
   Fix: in php_event.c write_property function wasn't static
+  Fix: absence of get_gc property handler caused segfaults with gc_collect_cycles()
   ]]></notes>
   <!--}}}-->
   <!--{{{ Contents -->
         <file role="src" name="08-buffer.phpt"/>
         <file role="src" name="09-gc-cycles.phpt"/>
         <file role="src" name="10-event-data-dtor.phpt"/>
+        <file role="src" name="11-gc-cycles.phpt"/>
       </dir>
     </dir>
   </contents>
   </extsrcrelease>
   <!--{{{ changelog-->
   <changelog>
-    <!--{{{ Current version -->
+    <!--{{{ 1.7.3 -->
     <release>
       <version>
         <release>1.7.3</release>
       <license uri="http://www.php.net/license">PHP</license>
       <notes><![CDATA[
   Fix: in php_event.c write_property function wasn't static
+  Fix: absence of get_gc property handler caused segfaults with gc_collect_cycles()
   ]]></notes>
     </release>
     <!--}}}-->

tests/11-gc-cycles.phpt

+--TEST--
+Check for get_gc property handler
+--FILE--
+<?php
+ 
+class x {
+        public $t = null;
+ 
+        public function __construct() {
+                $this->t = Event::timer(new EventBase(), function () { });
+                $this->t->free();
+        }
+}
+ 
+
+echo "1";
+new x();
+gc_collect_cycles();
+echo "2"; // we had segfault here
+?>
+--EXPECT--
+12