[ phpopencounter-Bugs-792804 ] emacs backups blow up LoadPlugin
"SourceForge.net" <[email protected]> Sat, 30 Aug 2003 01:27:35 -0700
| Newsgroups | gmane.comp.web.phpopentracker.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #792804, was opened at 2003-08-22 00:29
Message generated for change (Comment added) made by bergmann
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101716&aid=792804&group_id=1716
Category: Analysis Module
Group: None
>Status: Deleted
>Resolution: Duplicate
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: emacs backups blow up LoadPlugin
Initial Comment:
In the _loadPlugin function in API.php, it'll die with
a fatal error if you're text editor leaves a backup
copy of a plugin lieing around. In _loadPlugin, I
modified the second if to ignore files with leading #'s
and trailing ~'s
function _loadPlugins() {
if ($dir = @opendir(POT_INCLUDE_PATH .
'API/plugins')) {
while (($file = @readdir($dir)) !== false) {
if (strstr($file, '.php')
-> && substr( $file, -1, 1) != "~"
-> && substr( $file, 0, 1) != "#"
) {
-- Tim Wood / tim.wood (at) compuComFed.com
----------------------------------------------------------------------
>Comment By: Sebastian Bergmann (bergmann)
Date: 2003-08-30 10:27
Message:
Logged In: YES
user_id=7993
Duplicate of #792791.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101716&aid=792804&group_id=1716
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf