[OWASP_PHPSEC] use of require_once

Chris White cwhite at remarinc.com
Tue Jul 30 11:25:37 UTC 2013


Finally! It is not as lonely in the PSR-x boat anymore. No need to recreate the wheel here, guys. Just utilize one of their sample loaders. You won’t even have to change namespaces or classnames. Although, I am in favor of going deeper than just \phpsec\. ;)

Chris White
Network Administrator
Remar, Inc.
Work: 615-449-0231
Cell: 615-948-1388

From: owasp_php_security_project-bounces at lists.owasp.org [mailto:owasp_php_security_project-bounces at lists.owasp.org] On Behalf Of Sven Rautenberg
Sent: Tuesday, July 30, 2013 5:48 AM
To: Minhaz A V; owasp_php_security_project at lists.owasp.org
Subject: Re: [OWASP_PHPSEC] use of require_once

Yes. Just have a look at how "PSR-0" autoloading is done.


Minhaz A V <minhazav at gmail.com<mailto:minhazav at gmail.com>> schrieb:
will it be changed to require  after autoloading is done?

On Tue, Jul 30, 2013 at 3:30 PM, Minhaz A V <minhazav at gmail.com<mailto:minhazav at gmail.com>> wrote:
Can I know how will autoloading be accomplished and what it exactly means?

On Tue, Jul 30, 2013 at 3:26 PM, Sven Rautenberg <sven at rtbg.de<mailto:sven at rtbg.de>> wrote:
It's probably because of the current lack of autoloading, but I think this will be addressed.


Minhaz A V <minhazav at gmail.com<mailto:minhazav at gmail.com>> schrieb:
while going through the codes I found the use of require_once at many places
why isn't require  being used, when require_once  has computational overheads, it consumes more memory and is slower

reference: http://stackoverflow.com/questions/186338/why-is-require-once-so-bad-to-use




________________________________

OWASP_PHP_Security_Project mailing list
OWASP_PHP_Security_Project at lists.owasp.org<mailto:OWASP_PHP_Security_Project at lists.owasp.org>




https://lists.owasp.org/mailman/listinfo/owasp_php_security_project

Regards,

Sven



Mit freundlichen Grüßen

Sven Rautenberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/owasp_php_security_project/attachments/20130730/e1230735/attachment-0001.html>


More information about the OWASP_PHP_Security_Project mailing list