note 16643 added to keyword.paamayim-nekudotayim
| From: | christian at der-schulte dot com | Date: | Wed, 07 Nov 2001 17:56:41 +0000 |
| Subject: | note 16643 added to keyword.paamayim-nekudotayim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20557@lists.php.net to get a copy of this message | ||
Actually Apache crashes when PHP is used as a built-in module when I'm doing something like
this:
class A {
// Constructor
function A(){
// Do Something
}
}
class B {
// Constructor B takes an object-reference
function B (&$an_object){
// Do something
}
}
$test=new a(new b());
Segmentation fault (11)
This is not dependent on the constructors themselves! The same happens, when doing it like:
class A {
// Constructor
function A(){
// Do Something
}
}
class B {
// Constructor
function B (){
// Do something
}
// Method takes an object-reference
function notConstructor(&$an_object){
// Do something
}
}
$test=new B();
$test->notConstructor(new A());
I think that PHP can only use references on real existent variables!
--
http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php
http://master.php.net/manage/user-notes.php?action=edit+16643
http://master.php.net/manage/user-notes.php?action=delete+16643
http://master.php.net/manage/user-notes.php?action=reject+16643