[OWASP_PHPSEC] Doubts in phpsec / framework / _core/autoload.php

rahul chaudhary rahul300chaudhary400 at gmail.com
Thu Aug 15 14:06:00 UTC 2013


ok...for my second doubt, I got the answer...the token for abstract is
T_ABSTRACT. So, in T_CLASS, there will only be genuine classes that will
contain "{"

So, if it does not contains "{", then that class is not valid and must not
be included....right ??


On Thu, Aug 15, 2013 at 7:25 PM, rahul chaudhary <
rahul300chaudhary400 at gmail.com> wrote:

> *SORRY, DOUBT IS IN *
> *FRONT.PHP*
>
> AND *NOT IN* AUTOLOAD.PHP
>
>
> On Thu, Aug 15, 2013 at 1:21 PM, rahul chaudhary <
> rahul300chaudhary400 at gmail.com> wrote:
>
>> 1) Line 38: elseif ($tokens[$j]==='{' or $tokens[$j]===';')
>> In this, I do not understand why you check for an open brace. If its a
>> namespace, where can we get open-brace. I understand that with ";" you are
>> checking for termination. But brace I dont understand.
>>
>> 2) Line 45: if ($tokens[$j]==='{')
>> In this you check for open-brace. Does this means that you are NOT
>> COUNTING "ABSTRACT CLASSES" ?
>>
>>
>>
>> --
>> Regards,
>> Rahul Chaudhary
>> Ph - 412-519-9634
>>
>
>
>
> --
> Regards,
> Rahul Chaudhary
> Ph - 412-519-9634
>



-- 
Regards,
Rahul Chaudhary
Ph - 412-519-9634
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/owasp_php_security_project/attachments/20130815/45b4f2ca/attachment.html>


More information about the OWASP_PHP_Security_Project mailing list