note 48585 added to function.include-once
| From: | brainmastering at gmail dot com | Date: | Fri, 31 Dec 2004 11:17:52 +0000 |
| Subject: | note 48585 added to function.include-once | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-82496@lists.php.net to get a copy of this message | ||
After the server (which hosts a forum that I'm administrating) upgraded to php 4.3.10 I had to
solve a few problems and it seems to me that include_once is working in a somewhat diferent way. if
you use include_once on the files named "./xpto.php" and "././xpto.php" it will
in fact include the file twice thus creating some redefinition problems. I don't know if this
should this be considered a bug or a feature. Anyways just watch out for this if your php programs
just stopped working.
----
Manual Page -- http://www.php.net/manual/en/function.include-once.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+48585
Delete -- http://master.php.net/manage/user-notes.php?action=delete+48585&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48585&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48585&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48585&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48585&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48585&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+48585&report=yes
Search -- http://master.php.net/manage/user-notes.php