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

Bug #595 Hyphens (which are valid in MySQL table names) aren't valid in PHP Classes
Submitted: 2004-01-17 17:56 UTC
From: thomas at unifiedconsulting dot com Assigned: alan_k
Status: Closed Package: DB_DataObject
PHP Version: Irrelevant OS: Linux 2.6.0
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


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 : 7 + 38 = ?

 
 [2004-01-17 17:56 UTC] thomas at unifiedconsulting dot com
Description: ------------ When createTables encounters a table with a name like "foo-bar" it creates a class with a hyphen in its name, which is invalid. Reproduce code: --------------- -Create a MySQL table with a hyphen in its name -Run createTables.php Expected result: ---------------- Hyphens should be converted to a valid character (e.g. '_') or the script should fail with a message Actual result: -------------- Classes like this one are created: class DataObjects_foo-bar extends DB_DataObject { ... }

Comments

 [2004-01-18 02:50 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!
 [2004-02-02 15:47 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!
 [2004-02-03 06:10 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!
 [2004-12-07 10:35 UTC] eingfoan at yahoo dot de
hi all, with pear data object 1.7.2 i get the hyphen problems again ! any suggestion why? thx chris