Skip to content

Loading…

DBAL-480: [GH-296] PDO bug workaround #1681

Closed
doctrinebot opened this Issue · 4 comments

2 participants

@doctrinebot

Jira issue originally created by user @beberlei:

This issue is created automatically through a Github pull request on behalf of dasmfm:

Url: #296

Message:

In combination of PHP 5.4 and Doctrine 2 (upto 2.4Beta1) there's a bug with "boolean" type of field.
Ref link:��http://stackoverflow.com/questions/10242312/pdo-bindvalue-with-pdoparam-bool-causes-statement-execute-to-fail-silently

This patch binds int instead of bool and everything goes working fine.

@doctrinebot

Comment created by @doctrinebot:

A related Github Pull-Request [GH-296] was closed:
#296

@doctrinebot

Issue was closed with resolution "Won't Fix"

@doctrinebot

Comment created by @beberlei:

Not fixing PHP bugs or adding workarounds.

You need to pass an integer (1 or 0) instead of a boolean to make it working. This is how we do it in the ORM.

@doctrinebot

Comment created by @doctrinebot:

A related Github Pull-Request [GH-296] was closed:
doctrine/common#296

@doctrinebot doctrinebot added the Bug label
@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.