Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.16.14

Bug #7564 debug => false in conf doesn't work when adding a new application
Submitted: 2006-05-05 13:00 UTC
From: kezban11 at gmx dot de Assigned: lsmith
Status: Closed Package: LiveUser (version 0.3.8)
PHP Version: 5.0.2 OS: Linux
Roadmaps: (Not assigned)    

 [2006-05-05 13:00 UTC] kezban11 at gmx dot de (Veysel Özer)
Description: ------------ I'm writing an sajax frontend for LiveUser_Admin and i don't need any kind of output, especially no error reports. So in my $conf i write somethink like 'debug => false,'. But when adding an application which is already in the DB, the LiveUser_Admin creates an error report. After removing the debug line from the config, no reports occur. So it looks like LU_A is not looking at the value of debug and simply looks only if this exits. Test script: --------------- $appid = $LUA->perm->addApplication($data) if ($appid==false) myerrorhandler(); else continue; Expected result: ---------------- i expect that when i write 'debug => false,' in the config that while an error occurs, no error report is automatically printed out and i can handle it my way.


 [2006-05-05 13:42 UTC] lsmith (Lukas Smith)
this is quite peculiar .. could you also paste the code you are using to create the object instance?
 [2006-05-08 11:07 UTC] kezban11 at gmx dot de
$conf = array( 'debug' => true, 'session' => array( 'name' => 'PHPSESSION', 'varname' => 'ludata' ), 'login' => array( 'force' => false, ), 'logout' => array( 'destroy' => true, ), 'authContainers' => array( 'DB' => array( 'type' => 'DB', 'expireTime' => 360000, 'idleTime' => 180000, 'allowDuplicateHandles' => 0, 'allowEmptyPasswords' => 0, 'storage' => array( 'dsn' => $dsn, 'alias' => array( 'lastlogin' => 'lastlogin', 'is_active' => 'is_active', 'email' => 'email', ), 'fields' => array( 'lastlogin' => 'timestamp', 'is_active' => 'boolean', 'email' => 'text', ), 'tables' => array( 'users' => array( 'fields' => array( 'lastlogin' => false, 'is_active' => false, 'email' => false, ), ), ), ) ) ), 'permContainer' => array( 'type' => 'Complex', 'storage' => array('DB' => array('dsn' => $dsn, 'prefix' => 'liveuser_')), ), ); // the LUA init $LUA=& LiveUser_Admin::factory($conf); $LUA->init(); // the usage $data = array('application_define_name' => $application_name); $appId = $LUA->perm->addApplication($data); if ($appId == false){ $response['error']=true; $response['payload']=$LUA->getErrors(); return $response; } /* so with this conf a get also debug output on error and it only disapears after removing the hole 'debug' line */
 [2006-08-07 20:40 UTC] lsmith (Lukas Smith)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.