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

Bug #820 not reading configuration in insert() function
Submitted: 2004-02-21 15:33 UTC
From: dragun at yegon dot sk Assigned: alan_k
Status: Closed Package: DB_DataObject
PHP Version: 4.3.2 OS: Debian Linux
Roadmaps: (Not assigned)    
Subscription  


 [2004-02-21 15:33 UTC] dragun at yegon dot sk
Description: ------------ when trying to insert data into a table the configuration is not loaded, that means that some directives like quote_entities in the do.ini file are ignored the code function insert() { global $_DB_DATAOBJECT; $quoteEntities = @$_DB_DATAOBJECT['CONFIG']['quote_entities']; should read in my opinion like this function insert() { global $_DB_DATAOBJECT; if (empty($_DB_DATAOBJECT['CONFIG'])) { DB_DataObject::_loadConfig(); } $quoteEntities = @$_DB_DATAOBJECT['CONFIG']['quote_entities']; otherwise the quote_entities directive is totaly ignored

Comments

 [2004-02-23 06:45 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!