File tree Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Original file line number Diff line number Diff line change 19
19
* @author Johann Zelger <jz@techdivision.com>
20
20
*/
21
21
22
- class Universe
23
- {
24
- public function injectObj ($ obj )
25
- {
26
- $ this ->obj = $ obj ;
27
- }
28
- }
29
-
30
- class World
31
- {
32
- public function injectObj ($ obj )
33
- {
34
- $ this ->obj = $ obj ;
35
- }
36
- }
37
-
38
- class TestThread extends Thread
39
- {
40
- public function __construct ($ obj )
41
- {
42
- $ this ->obj = $ obj ;
43
- }
44
-
45
- public function run ()
46
- {
47
- $ obj = $ this ->obj ;
48
- }
49
- }
50
-
51
- $ universe = new Universe ();
52
- $ world = new World ();
53
-
54
- $ universe ->injectObj ($ world );
55
- $ world ->injectObj ($ universe );
56
-
57
- $ testThread = new TestThread ($ universe );
58
- $ testThread ->start ();
59
-
60
22
define ('PHP_SAPI ' , 'appserver ' );
61
23
echo "Constant PHP_SAPI: -> SAPI_TYPE: " . PHP_SAPI ;
62
24
echo PHP_EOL . "========================================== " . PHP_EOL ;
You can’t perform that action at this time.
0 commit comments