new <class> as Parameter
| From: | Andre Christ | Date: | Thu, 21 Mar 2002 16:02:49 +0000 |
| Subject: | new <class> as Parameter | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-81601@lists.php.net to get a copy of this message | ||
Hi,
I'd like to know if the following piece of code is compatible with php 4.0.0
higher:
<?php
function myFunction($class) {
[...]
}
class myClass {
[...]
}
myFunction(new myClass);
?>
Are there any bugs known of you pass new Class directly ?
Thanks in advance,
André