We should probably use PEAR CS, and require instead of include:
function __autoload($class_name) {
require_once $class_name . '.php';
}
I didn't see your commit, so assuming it's still local (waiting to be
commited) we'll save the translators a commit
"Sean Coates" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I saw your note, and fixed the docs (in CVS), already. Thanks very much
> for pointing it out.
>
> In the future, however, it would be best to file this sort of problem as
> a documentation problem at bugs.php.net.
>
> Thanks again,
> S
>
> Kishan Hickman wrote:
>> Hi guys,
>>
>> In the Autoloading Objects Section of your documentation I believe you
>
>> have a small error in the example you gave, the example is:
>>
>>
>>
>> <?php
>> function __autoload($class_name) {
>> include_once($class_name . 'php');
>> }
>>
>> $obj = new MyClass1();
>> $obj2 = new MyClass2();
>> ?>
>>
>>
>>
>> In the third line of this example I believe there should be a "." Before
>
>> the php i.e.
>>
>>
>>
>> include_once($class_name . '.php');
>>
>>
>>
>> if I am incorrect about this sorry for taking your time
>>
>>
>>
>> cheers
>>
>>
>>
>> Kishan
>>