Ten sam kod w C++ i PHP daje różne efekty:
http://phpfi.com/332420
http://phpfi.com/332422
C++ daje poprawny wynik:
Kod
Hello, it's parent!
Hello, it's son!
Bye, bye, it was son
Bye, bye, it was parent
Hello, it's son!
Bye, bye, it was son
Bye, bye, it was parent
A php daje tylko:
Kod
Hello, it's son!
Bye, bye, it was son
Bye, bye, it was son
To tak ma być, czy ja coś źle napisałem ? ;0