Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Using Library #5

Open
derekang opened this issue Aug 24, 2015 · 6 comments
Open

Error Using Library #5

derekang opened this issue Aug 24, 2015 · 6 comments

Comments

@derekang
Copy link

Hi,

I faced the following error when added to namespace and registering db in services.

( ! ) Strict standards: Declaration of Twm\Db\Adapter\Pdo\Mssql::executePrepared() should be compatible with Phalcon\Db\Adapter\Pdo::executePrepared(PDOStatement $statement, array $placeholders, $dataTypes) in C:\wamp\sites\apacnet\app\vendor\mssql\db\adapter\Mssql.php on line 10

Any help appreciated.

@fishjerky
Copy link
Owner

Did you download version:1.x for Phalonc 2.0?

@derekang
Copy link
Author

Hi,

I am using Phalcon 2.0.1. Is it supported?

@fishjerky
Copy link
Owner

Well...
We did write v2.x which support Phalcon 2.0, you may download it from branch v2.x.

Unfortunately, we find out "limit" is not supported. XD

@derekang
Copy link
Author

Hi fish,

Changed to version2.x. Still received this error.

Strict standards: Declaration of Twm\Db\Adapter\Pdo\Mssql::executePrepared() should be compatible with Phalcon\Db\Adapter\Pdo::executePrepared(PDOStatement $statement, array $placeholders, $dataTypes) in C:\wamp\sites\apacnet\app\vendor\mssql\db\adapter\Mssql.php on line 10

https://github.com/phalcon/cphalcon/blob/880b4fde422c1e7a112d5546e274d12f6784442a/phalcon/db/adapter/pdo.zep#L184

https://github.com/fishjerky/phalcon-mssql/blob/master/test/app/library/db/adapter/Mssql.php#L276

is it due to mismatching method declarations?

@SoccerField24x7
Copy link

Off the top of my head - as I haven't had a chance to look at it yet - you need to remove the array declaration from before $placeholders. Start there and let me know if that solves that issue.

@tr33m4n
Copy link

tr33m4n commented Aug 25, 2015

Hi Derek,

Essentially this error means that the function in this library that is
overriding the default function has to implement the same parameters. You
can update the specific function it tells you with the parameter from the
error (or compare them side by side) and you'll get a bit further. However
this plugin has not been updated for a while and I never got it to work...
You might have better luck however
On 25 Aug 2015 06:21, "SoccerField24x7" notifications@github.com wrote:

Off the top of my head - as I haven't had a chance to look at it yet - you
need to remove the array declaration from before $placeholders. Start there
and let me know if that solves that issue.


Reply to this email directly or view it on GitHub
#5 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants