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)    
Subscription  


 [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.

Comments

 [2006-05-05 13:42 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [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] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!