SourceForge logo
SourceForge logo
Menu

phpwiki-checkins

From: Geoffrey T. D. <da...@us...> - 2001年09月20日 18:26:16
Update of /cvsroot/phpwiki/phpwiki/lib
In directory usw-pr-cvs1:/tmp/cvs-serv25209/lib
Modified Files:
	FileFinder.php 
Log Message:
Workaround for apparent bug in some versions of PHP (notably the
PHP 4.0.6 which is on SourceForge's project web server.)
Index: FileFinder.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/FileFinder.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** FileFinder.php	2001年09月19日 19:16:27	1.1
--- FileFinder.php	2001年09月20日 18:26:14	1.2
***************
*** 126,131 ****
 if (!in_array($dir, $path)) {
 $path[] = $dir;
! ini_set('include_path', implode(':', $path));
 }
 }
 }
--- 126,143 ----
 if (!in_array($dir, $path)) {
 $path[] = $dir;
! //ini_set('include_path', implode(':', $path));
 }
+ /*
+ * Some (buggy) PHP's (notable SourceForge's PHP 4.0.6)
+ * sometimes don't seem to heed their include_path.
+ 	 * I.e. sometimes a file is not found even though it seems
+ * to be in the current include_path.
+ * A simple ini_set('include_path', ini_get('include_path'))
+ * seems to be enough to fix the problem
+ *
+ * This following line should be in the above if-block,
+ * but we put it here, as it seems to work-around the bug. 
+ */
+ ini_set('include_path', implode(':', $path));
 }
 }
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /