note 106660 added to soapserver.setclass
| From: | funky2step at gmail dot com | Date: | Fri, 25 Nov 2011 09:54:55 +0000 |
| Subject: | note 106660 added to soapserver.setclass | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-184673@lists.php.net to get a copy of this message | ||
When passing arguments to the default class constructor, make sure that you don't try and use
the magic __construct method because that won't work.
<?php
class MyClass
{
function MyClass($arg1, $arg2)
{
}
}
// Not:
class MyClass
{
function __construct($arg1, $arg2)
{
}
}
?>
----
Server IP: 92.48.74.199
Probable Submitter: 81.145.183.178
----
Manual Page -- http://www.php.net/manual/en/soapserver.setclass.php
Edit -- https://master.php.net/note/edit/106660
Del: integrated -- https://master.php.net/note/delete/106660/integrated
Del: useless -- https://master.php.net/note/delete/106660/useless
Del: bad code -- https://master.php.net/note/delete/106660/bad+code
Del: spam -- https://master.php.net/note/delete/106660/spam
Del: non-english -- https://master.php.net/note/delete/106660/non-english
Del: in docs -- https://master.php.net/note/delete/106660/in+docs
Del: other reasons-- https://master.php.net/note/delete/106660
Reject -- https://master.php.net/note/reject/106660
Search -- https://master.php.net/manage/user-notes.php