Answer the question
In order to leave comments, you need to log in
Pdo oci, process crashes when charset=utf8 is specified?
In general, without specifying the encoding, I get such warnings, plus the answer comes in the wrong encoding, respectively, it is not clear what the default is.
PDOStatement::fetchAll(): column 3 data was too large for buffer and was truncated to fit it in
$conn = new PDO('oci:dbname=//[host]/orcldb;charset=UTF8',$db_username,$db_password);
Answer the question
In order to leave comments, you need to log in
In general, I prevented the crash, thanks to AloneCoder for the tip, I set up the environment by adding the following to php-fpm.conf:
env[ORACLE_HOME]=/opt/oracle/instantclient
env[LD_LIBRARY_PATH]=/opt/oracle/instantclient/lib
env[NLS_LANG]="RUSSIAN_RUSSIA.AL32UTF8"
env[NLS_DATE_FORMAT]="YYYY-MM-DD HH24:MI:SS"
env[NLS_LENGTH_SEMANTICS]=CHAR
env[NLS_NUMERIC_CHARACTERS]=".,"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question