← Back to team overview

mahara-contributors team mailing list archive

[Bug 667051] Re: safe_require throws exceptions for missing files when nonfatal set to true

 

** Changed in: mahara
     Assignee: (unassigned) => Richard Mansfield (richard-mansfield)

** Changed in: mahara
       Status: Triaged => Fix Committed

-- 
safe_require throws exceptions for missing files when nonfatal set to true
https://bugs.launchpad.net/bugs/667051
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.

Status in Mahara ePortfolio: Fix Committed

Bug description:
Sometimes the php realpath function returns true for files that don't exist:

http://php.net/manual/en/function.realpath.php#82770

When that happens, safe_require calls require_once on a nonexistent file, even when you ask it not to do that by calling it with the nonfatal parameter.

See the error log posted here: http://mahara.org/interaction/forum/topic.php?id=2414





References