phpCAS::setDebug(FALSE) does not stop logging

Description

The documentation states that phpCAS::setDebug(FALSE) stops debugging. http://downloads.jasig.org/cas-clients/php/1.2.0/docs/api/group__publicDebug.html#ga3b7fb5108aa7a21f3d09bebe5fc8c81e

If I call phpCAS:setDebug(FALSE), phpCAS seems to log all activity to /tmp/phpCAS.log. When I remove the line, it stops logging there.

Environment

None

Activity

Show:

Joachim Fritschi 
March 27, 2012 at 5:10 PM

Closing all old issues.

Joachim Fritschi 
February 6, 2011 at 12:57 PM

Thanks for spotting the bug. I have added a patch that should stop this issue.

Joe Lencioni 
January 17, 2011 at 4:55 PM
(edited)

Looking at the code, I'm thinking that you may just need to add this to the top of setDebug():

<code>
if ($filename === FALSE)
{
return;
}
</code>

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created January 17, 2011 at 4:47 PM
Updated March 27, 2012 at 5:10 PM
Resolved February 6, 2011 at 12:57 PM