1. Ruslan Osmanov
  2. pecl-ev

Source

pecl-ev / tests / 11_watcher_data.phpt

Diff from to

File tests/11_watcher_data.phpt

  • Ignore whitespace
 
 	// store data as ref to object
 	$t1 = $loop->timer(1, 0, function () {});
-	$t1->data = &$i1;
+	$t1->data = $i1;
 
 	// store data as object
 	$t2 = $loop->timer(1, 0, function () {});
-	$t2->data = $i2;
+	$t2->data = &$i2;
 
 	echo "0";
 	$t1->stop();