Date: 08/30/01
- Next message: KR: "[PHP-DEV] Re: Bug #13028 Updated: bug with empty Class Constructors"
- Previous message: dbeu <email protected>: "[PHP-DEV] Bug #13056 Updated: creating pdf file the file not reading doc file"
- In reply to: 40334233 <email protected>: "[PHP-DEV] Bug #13028: bug with empty Class Constructors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 13028
Updated by: dbeu
Reported By: 40334233 <email protected>
Old Status: Open
Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Win2000
PHP Version: 4.0.6
New Comment:
be a bit more precise...
what do you mean with "have had problems instanciating classes" and "the class does not become properly instanciated" ?
Previous Comments:
------------------------------------------------------------------------
[2001-08-29 09:12:26] 40334233 <email protected>
I have had problems instanciating classes that have empty constructors defined. (PHP 4.05, win2000)
if a class has a constructor defined it seems that a (any) variable of that class must be set inside the constructor ot the class does not become properly instanciated.
If there is no Constructor then this problem does not exist.
eg1, this works:
class Foo
{
var $a;
function Foo()
{
$a = 1;
}
}
eg2, this does not work
class Foo
{
var $a;
function Foo()
{
//empty constructor
}
}
eg3, this works
class Foo
{
var $a;
//no constructor defined
}
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13028&edit=1
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: KR: "[PHP-DEV] Re: Bug #13028 Updated: bug with empty Class Constructors"
- Previous message: dbeu <email protected>: "[PHP-DEV] Bug #13056 Updated: creating pdf file the file not reading doc file"
- In reply to: 40334233 <email protected>: "[PHP-DEV] Bug #13028: bug with empty Class Constructors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

