wodby / php

Generic PHP docker container images
MIT License
152 stars 103 forks source link

Add "pdo_sqlsrv.client_buffer_max_kb_size" and "sqlsrv.ClientBufferMaxKBSize" now that sqlsrv is available #124

Closed gertvdb closed 3 years ago

gertvdb commented 3 years ago

Thanks for adding the "sqlsrv" extension! (https://github.com/wodby/php/issues/48)

Our legacy application uses "buffered" queries therefor i need to set (increase) "pdo_sqlsrv.client_buffer_max_kb_size" and "sqlsrv.ClientBufferMaxKBSize" in php.ini https://www.php.net/manual/en/sqlsrv.configuration.php#120109

can you please add this configuration or is their another way I can add it to the php.ini?

gertvdb commented 3 years ago

Or should I mount a custom php-extra.ini for this ?

volumes:
      - "./.docker/php/conf.d/docker-php-extra.ini:/usr/local/etc/php/conf.d/docker-php-extra.ini"
csandanov commented 3 years ago

New env vars have been added https://github.com/wodby/php/blob/master/7/templates/docker-php-ext-sqlsrv.ini.tmpl