|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-11-21 03:06 UTC] laruence@php.net
-Assigned To:
+Assigned To: krakjoe
[2012-11-22 22:44 UTC] wagner_tim78 at yahoo dot de
[2012-11-22 22:46 UTC] wagner_tim78 at yahoo dot de
-Status: Assigned
+Status: Closed
[2012-11-22 22:46 UTC] wagner_tim78 at yahoo dot de
[2012-11-23 19:21 UTC] krakjoe@php.net
-Status: Closed
+Status: Not a bug
[2012-11-23 19:21 UTC] krakjoe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 18:00:01 2025 UTC |
Description: ------------ Hi guys, we're really interested in your package and decided to start a little test project. During implementation we got the following problem. When in the threads run method a method of a class with type hints will be invoked, the thread stops working without any debug out or output in a log file. If the type hint is removed the method works as expected. See the short code example below! Tim Test script: --------------- class Test { protected $_name = ''; public function __construct($name) { $this->_name = $name; } } class TestProcessor { public function doSomething(Test $test) { // do something here } } class SomeThread extends Thread { public function run() { while (true) { .... // some socket stuff here /* var $test Test $test = unserialize($dataFromSocket); $processor = new TestProcessor(); $processor->doSomething($test); .... } } } $someThread = new SomeThread(); $someThread->start(); Expected result: ---------------- The method should also work with type hints. Actual result: -------------- The method will not be invoked and the thread stops working without debug/log file output.