Hello All -
On my production server I am trying to read in recordsets in php that happen to have a few null values. im using PDO in php through the linux iSeries odbc driver. Recordsets without nulls work fine. Sql statement prepares and executes, but assigning the resultset to a php variable/array results in a segmentation fault.
The error is found in the apache error log - nothing display on the screen and the log only states 'child pid ##### exit signal Segmentation fault (11)'.
The development server works perfectly fine with or without null values in the resultset. Both servers point to the same database - v5r4 and both servers have identical drivers (as far as I can tell).
heres the differences between servers:
development server has:
fedora 7 on a 32 bit machine
php version 5.2.6
Apache version 2.2.8
pdo v. 5.2.6-fc7
production server has:
fedora 10 on a 64 bit machine
php version 5.2.9
Apache version 2.2.11
pdo v. 5.2.9-fc10
ive already tried setting the attribute PDO::ATTR_ORACLE_NULLS to everything it allows, but doesnt even seem to get that far in the process.
The apache modules that are running are identical to both servers. As well as the config files - php.ini and httpd.conf.
any suggestions?
PDO segfaults on a resultset with a null
Moderator: General Moderators