cloudControl / buildpack-php

cloudControl PHP buildpack
Apache License 2.0
13 stars 18 forks source link

ext-pdo_mysql not working with php 5.6.12 #43

Closed ertogs closed 9 years ago

ertogs commented 9 years ago

having this composer.json

[...]
"require": {
    "php-64bit": "5.6.12",        
    "ext-curl": "*",
    "ext-mcrypt": "*",
    "ext-zip": "*",
    "ext-pdo": "*",
    "ext-pdo_mysql": "*"
},
[...]

results in this error:

PHP Warning: PHP Startup: Unable to load dynamic library '/srv/www/php-5.6.12/lib/php/extensions/pdo_mysql.so' - /srv/www/php-5.6.12/lib/php/extensions/pdo_mysql.so: undefined symbol: mysqlnd_allocator in Unknown on line 0

This also did not work with php-64bit 5.6.13

TooAngel commented 9 years ago

For pdo_mysql php also requires the mysqlnd extension.

{
    "require": {
        "php-64bit": "~5.6",
        "ext-mysqlnd": "*",
        "ext-pdo_mysql": "*",
        "ext-pdo": "*"
    }
}

We didn't include any special php extension dependencies resolving yet.

ertogs commented 9 years ago

Great, that's it. Thank you! :+1: :)