Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

note 99759 added to function.spl-autoload-extensions

4 views
Skip to first unread message

Jerem...@osu1.php.net

unread,
Sep 3, 2010, 9:46:25 AM9/3/10
to php-...@lists.php.net
A quick note for anyone using this function to add their own autoload extensions. I found that if I included a space in between the different extensions (i.e. '.php, .class.php') the function would not work. To get it to work I had to remove the spaces between the extensions (ie. '.php,.class.php'). This was tested in PHP 5.3.3 on Windows and I'm using spl_autoload_register() without adding any custom autoload functions.

Hope that helps somebody.
----
Server IP: 66.207.199.35
Probable Submitter: 70.55.235.82
----
Manual Page -- http://www.php.net/manual/en/function.spl-autoload-extensions.php
Edit -- https://master.php.net/note/edit/99759
Del: integrated -- https://master.php.net/note/delete/99759/integrated
Del: useless -- https://master.php.net/note/delete/99759/useless
Del: bad code -- https://master.php.net/note/delete/99759/bad+code
Del: spam -- https://master.php.net/note/delete/99759/spam
Del: non-english -- https://master.php.net/note/delete/99759/non-english
Del: in docs -- https://master.php.net/note/delete/99759/in+docs
Del: other reasons-- https://master.php.net/note/delete/99759
Reject -- https://master.php.net/note/reject/99759
Search -- https://master.php.net/manage/user-notes.php

0 new messages