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

[APIS-767] in PHP 7, bindParam resource is accessed by indirect via R… #6

merged 2 commits into from Jan 8, 2018


None yet
2 participants

byungwook-kim commented Jan 8, 2018

PHP version 7 (7.1.x) use different zend_plaform from version 5 (5.5.x or 5.6.x).

PDO driver on PHP version 7 also use different zend_platform and PDO feature. from version 5 as above.
In PDO function processing, driver uses cubrid_stmt_param_hook in common(...).
This common routine extract parameter values from zend platform of PHP.

With PDOStatement::bindParam unlike PDOStatement::bindValue(), the variable is bound as a reference and will only be evaluated at the time that PDOStatement::execute() is called.

In zend_platform of PHP version 7, bindParam resource is accessed by indirect via REF type of zval.
It's a one of the different feature from PHP version 5.

@byungwook-kim byungwook-kim requested a review from kisoo-han Jan 8, 2018

@byungwook-kim byungwook-kim merged commit ac16b23 into CUBRID:develop Jan 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment