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

Bug #9839 Generator creates PHP syntax breaking code
Submitted: 2007-01-15 12:26 UTC
From: powtac at gmx dot de Assigned: alan_k
Status: Closed Package: DB_DataObject (version 1.8.5)
PHP Version: 5.2.0 OS: WIN 2000
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 : 37 + 25 = ?

 
 [2007-01-15 12:26 UTC] powtac at gmx dot de (Simon Brüchner)
Description: ------------ I'm using a MSSql server witch has colum names like "E-Mail" oder "EG Number". The Generator creates my DataObject-files with contents like this: ... public $Telefax; // varchar(25) public $E-Mail; // varchar(60) public $Internet; // varchar(60) public $EG Number; // varchar(30) ... This breaks the PHP syntax of variable names. Because it uses "-" and" "! The regular expression for a variable name is: ^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$

Comments

 [2007-01-16 03:00 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!
 [2007-01-24 04:49 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!