[PHP-DEV] PDO types

2005-02-19 Thread Timm Friebe
Hi, while testing PDO I was astonished to see that all values (regardless of their types in the database) are returned as strings (in all extensions except for PgSQL). Why is that so? It _is_ quite inconsistent, isn't it? Wasn't PDO supposed to _unify_ the RDBMS access apis? -- Timm If it ain't

[PHP-DEV] PDO/MySQL getColumnMeta() broken

2005-02-19 Thread Timm Friebe
Hi, the following sourcecode: prepare('select * from entries where id = :id'); $stmt->bindParam(':id', $argv[4]); if (!$stmt->execute()) { var_dump($dbh->errorInfo()); exit; } for ($i= 0, $s= $stmt->columnCount(); $i < $s; $i++) { echo $i, ':: '; var_dump($stmt->getColumnMeta

[PHP-DEV] PDO/MySQL column metadata native_type broken

2005-02-19 Thread Timm Friebe
Hi, native_type (returned from PDOStatement::getColumnMeta()) was showing weird behaviour in PDO/MySQL, mostly not existing at all and showing incorrect values (e.g. "DECIMAL" for varchars). A small typo is why: Index: ext/pdo_mysql/mysql_statement.c =

RE: [PHP-DEV] AMD64 and libdir Broken?

2005-02-19 Thread Hans Zaunere
> > Not if you only have 64bit libs installed, which is dangerous, since > > otherwise it doesn't give any warnings and you're not getting what you > > think you are. > > You did have some "-L/usr/lib "'s sneak in from somewhere in the make > output you posted. Can you also upload the config.log

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-19 Thread Alan Knowles
I guess swapping out the compiler and executer globals before /after the compile call wont work? egs = executor_globals cgs = compiler_globals compile_string / file etc. efree(executor_globals); efree(compiler_globals); executor_globals = egs; compiler_globals = cgs; obviously if this is the ca

[PHP-DEV] Re: problems compiling mysqli (on win32)

2005-02-19 Thread Sebastian Bergmann
M. Sokolewicz wrote: > So, is this a problem with my compiler being stupid? Are you sure you have the right MySQL headers and libraries? -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69 -- PH

Re: [PHP-DEV] function proposal - php_check_syntax_string

2005-02-19 Thread Frédéric LECOINTRE
Hello all, With Val Khokhlov's help: sapi/cli/php -r "php_check_syntax_string('class foo {}'); var_dump(class_exists('foo'));" bool(false) thanks :-) The original purpose is to valid small code like $foo->bar($foo->bar($blah,$foo,44,"foo",$foo[0].bar)) and avoid regexp ( good example in Smarty

[PHP-DEV] problems compiling mysqli (on win32)

2005-02-19 Thread M. Sokolewicz
whenever I try compiling PHP, the mysqli extension gives me trouble. I've gotten this all from HEAD just a couple of hours ago (again, it didn't work before either). I'm using MSVC 7.1 (.NET). Here's the error I'm getting: ext\mysqli\php_mysqli.h(50) : error C2061: syntax error : identifier 'MY