ID:               35368
 Comment by:       uggabc at yahoo dot cn
 Reported By:      lists at cyberlot dot net
 Status:           Suspended
 Bug Type:         PDO related
 Operating System: *
 PHP Version:      6CVS, 5CVS
 Assigned To:      wez
 New Comment:

It was my pleasure to visit your Website. I am also very Website you 

enjoy the article.And I also have [url=http://www.emu-boots.net/]emu
boots[/url]  he feeling that it was really a 

pity that we didn¡¯ 

t meet each other earlier. Because the kindness and warmth in your 

Website can make me completely relaxed and happy. I hope that you 

will visit my  blog too


Previous Comments:
------------------------------------------------------------------------

[2010-01-07 06:48:39] uggabc at yahoo dot cn

It was my pleasure to visit your Website. I am also very Website you 

enjoy the article.And I also have <a
href="http://www.emu-boots.net/";>emu boots</a>  he feeling that it was 

really a pity that we didn¡¯ 

t meet each other earlier. Because the kindness and warmth in your 

Website can make me completely relaxed and happy. I hope that you 

will visit my  blog too

------------------------------------------------------------------------

[2005-11-27 22:11:06] w...@php.net

We managed to reproduce the problem; it's a problem with the query
rewriter when it maps :name to ?.  If the string is embedded in the SQL
using single quotes, but has double quotes backslashed, the string it
too tricky for the parser to follow, and it ends up transforming parts
of the serialized string that it shouldn't.

There are three possible workarounds for this issue, in order of
preference:
- Don't embed serialized data into the query string; use bound
parameters (that's what they're there for).  In future versions of PDO,
prepared statements may be cacheable in persistent connections, leading
to a performance gain.
- Use PDO::quote() to correctly quote the string
- Use PDO::exec() to fire off this UPDATE/INSERT statement; it uses an
alternate API that doesn't need to handle parameters.


------------------------------------------------------------------------

[2005-11-25 16:40:35] tony2...@php.net

This is fixed in CVS, get a fresh snapshot and try again.

------------------------------------------------------------------------

[2005-11-25 16:32:07] lists at cyberlot dot net

To try and narrow this down and be able to play with the code more I
recompiled PHP 5.1 without pdo support then compiled seperate modules
however I could not get pdo_mysql to compile.
I phpized ./configure and make and get the following error

checking for MySQL support for PDO... yes, shared
checking for mysql_config... /usr/bin/mysql_config
checking for mysql_query... no
configure: error: mysql_query missing!?

Might be related? So I forced a install of pdo_mysql RC2

The bug goes away, Same exact script but everything is working...

So its either a diffrence between pdo_mysql RC2 or some wierd issue
with shared vs compiled in.

I hope that helps somehow?

------------------------------------------------------------------------

[2005-11-25 15:14:33] lists at cyberlot dot net

What OS are you testing on? All I have are Centos/Redhat based boxes to
test on.

Also if this helps I always download directly from MySQL I never use
the DIST included rpms.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/35368

-- 
Edit this bug report at http://bugs.php.net/?id=35368&edit=1

Reply via email to