Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
1 vote
1 answer
26 views

PHP7 pthreads3 woes : Unable to increment public property of Threaded class from within an instantiated Worker object

I am confused by the results from the following simplified code. A Threaded object MyPool is to instantiate a variable number of MyWorker objects. As each MyWorker object is correctly instantiated, ...
Viktorius's user avatar
-1 votes
1 answer
47 views

weird behaviour with protected static properties and inheritance in php

I have a problem with static members and inheritance in php Why this works: class A { public static function me() { echo static::$b; } } class B extends A { protected static $b = "hello"...
cubob's user avatar
  • 61
1 vote
3 answers
1k views

PHP print_r and static member

I've got an instance of a DB object that's passed to a Session object, because the Session object has several methods that make use of DB object to execute SQL statements I had plan to store this DB ...
user avatar