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

Bug #15055 PHP Warning in validateTable()
Submitted: 2008-11-17 12:52 UTC
From: hschletz Assigned: ifeghali
Status: Closed Package: MDB2_Schema (version 0.8.3)
PHP Version: 5.2.0 OS:
Roadmaps: (Not assigned)    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 24 - 11 = ?

 
 [2008-11-17 12:52 UTC] hschletz (Holger Schletz)
Description: ------------ The changes introduced in 0.8.3 give me a bunch of warnings sometimes: > Warning: array_key_exists(): The first argument should be either a string or an integer in MDB2/Schema/Validate.php on line 230 This seems to happen when $autoinc is still set to false. Fix attached.

Comments

 [2008-11-17 15:00 UTC] doconnor (Daniel O'Connor)
With your fix, are there any legit circumstances where $autoinc === 0 ?
 [2008-11-17 15:08 UTC] ifeghali (Igor Feghali)
Hello Daniel, It is initialized to "false" and then is set to the field name when autoincrement is found. Regards, Igor.
 [2008-11-17 20:50 UTC] ifeghali (Igor Feghali)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net 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.