Lukas, On Wed, 2007-11-14 at 16:49 +0100, Lukas Kahwe Smith wrote: > On 01.11.2007, at 00:56, Lorenzo Alberton wrote: > > > Lukas Kahwe Smith wrote: > >> I talked to Christopher Jones (of Oracle fame) and Lorenzo (MDB2 > >> maintainer). Its clear that the only named parameter supporting > >> database I know does not support dash inside named parameters. Its > >> also dangerous since it means that whitespace typos could have > >> serious hard to spot issues. I think a safe regexp for bound > >> parameters would look something like: /^[a-z0-9][a-z0-9_]{0,30}$/ > > > > Since I couldn't find any official reference in > > the oracle documentation, I did further tests. [...] > so please someone revert this change ... or better yet implement the > above rules.
I won't like having vendor specific rules there but a subset which works with most/all backends and which should full-fill most user's needs. The regexp from above looks like a good compromise for me. johannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php