Mil gracias de nuevo :-))) Primero probaré con la actualización del driver 
y si no lo soluciono me pondo con el tema este, que parece que hablan de 
la versión del PHP.

Salut!



Sergi Sitjes
Director Sistemes d'Informació/IT Manager
GENEBRE GROUP
E-mail: [email protected]
Web:   http://www.genebre.es
Tel:  +34 93 298 80 02
Fax: +34 93 298 80 07



De:     Alex Martínez <[email protected]>
Para:   "forum.help400" <[email protected]>
Fecha:  28/10/2015 14:22
Asunto: Re: Problema con driver bajo Linux
Enviado por:    [email protected]



Hay un hilo en un foro de fedora donde hablan de un problema parecido,
te lo paso por si hay algo más que te sea de utilidad

http://forums.fedoraforum.org/archive/index.php/t-293004.html

El 28 de octubre de 2015, 12:08, <[email protected]> escribió:
Gracias!!!



Sergi Sitjes
Director Sistemes d'Informació/IT Manager
GENEBRE GROUP
E-mail: [email protected]
Web:   http://www.genebre.es
Tel:  +34 93 298 80 02
Fax: +34 93 298 80 07



De:        Alex Martínez <[email protected]>
Para:        "forum.help400" <[email protected]>
Fecha:        28/10/2015 11:53
Asunto:        Re: Problema con driver bajo Linux
Enviado por:        [email protected]




Hola

Hay un rpm nuevo de Odbc ibm-iaccess-1.1.0.4-1.0.x86_64.rpm
incluido en el producto para linux de IBM i Access Client Solutions

Mira este doc para descargarlo desde ESS
http://www-01.ibm.com/support/docview.wss?uid=nas8N1010355

IBM_i_Access_Client_Solutions_-_Linux_AP_LCD8_2012_04.zip

El 28 de octubre de 2015, 11:19, <[email protected]> escribió:
Buenos días compañeros,

Tengo un portal web en Linux que periódicamente extrae datos de un AS/400 
en V7.1 y de vez en cuando el proceso me da un error de falta de memoria. 
Estoy totalmente perdido en este tema, alguien me podría echar un cable?

Los detalles de la instalación son:
Datos del servidor Linux
SO: Debian 7
Versión Apache: Apache/2.2.22 (Debian)
Versión PHP: PHP 5.4.4-14+deb7u14 (cli)
Drivers instalados: iSeriesAccess-7.1.0-1.0.x86_64.rpm

Error:
Fatal error: Out of memory (allocated 7864320) (tried to allocate 
17014641920971898896 bytes)

Código simple php:
$conn=odbc_connect($driveribm,$useribm,$passibm); 
$sql="select ifnull(okcono,'') as okcono from ocusma where okcono = 010 "; 

$rs=odbc_exec($conn,$sql); 
 
while (odbc_fetch_row($rs)) { 
      $data=trim(odbc_result($rs,"okcono")); 
} 
odbc_close($conn);

Muchas gracias,



Sergi Sitjes
Director Sistemes d'Informació/IT Manager
GENEBRE GROUP
E-mail: [email protected]
Web:   http://www.genebre.es
Tel:  +34 93 298 80 02
Fax: +34 93 298 80 07
La información que contiene este correo electrónico es confidencial y 
compete exclusivamente al destinatario. Si Vd. ha recibido esta 
comunicación por error, por favor, notifíquelo inmediatamente al remitente 
y borre el mensaje junto con sus ficheros anexos sin leerlo, copiarlo, 
grabarlo, distribuirlo o divulgarlo o hacer cualquier otro uso de la 
información sin el consentimiento de Genebre S.A. El correo electrónico 
vía Internet no permite asegurar la confidencialidad o correcta recepción 
de los mensajes, por lo que Genebre no asume responsabilidad alguna por 
los daños causados. The information contained in this communication is 
confidential, may be privileged and is intended for the exclusive use of 
the above named addressee. If you receive this communication in error, 
please notify the sender immediately and delete it, and all its attached 
documents. If you are not the intended recipient, you are expressly 
prohibited from reading, copying, distributing, disseminating or, in any 
other way, using any of the information without the Genebre S.A. consent. 
Please note that Internet e-mail guarantees neither the confidentiality 
nor the proper receipt of the message sent, so that Genebre shall not be 
liable for any damages caused.
____________________________________________________
Únete a Recursos AS400, nuestra Comunidad ( http://bit.ly/db68dd)
Forum.Help400 © Publicaciones Help400, S.L.
____________________________________________________
Únete a Recursos AS400, nuestra Comunidad ( http://bit.ly/db68dd)
Forum.Help400 © Publicaciones Help400, S.L.
La información que contiene este correo electrónico es confidencial y 
compete exclusivamente al destinatario. Si Vd. ha recibido esta 
comunicación por error, por favor, notifíquelo inmediatamente al remitente 
y borre el mensaje junto con sus ficheros anexos sin leerlo, copiarlo, 
grabarlo, distribuirlo o divulgarlo o hacer cualquier otro uso de la 
información sin el consentimiento de Genebre S.A. El correo electrónico 
vía Internet no permite asegurar la confidencialidad o correcta recepción 
de los mensajes, por lo que Genebre no asume responsabilidad alguna por 
los daños causados. The information contained in this communication is 
confidential, may be privileged and is intended for the exclusive use of 
the above named addressee. If you receive this communication in error, 
please notify the sender immediately and delete it, and all its attached 
documents. If you are not the intended recipient, you are expressly 
prohibited from reading, copying, distributing, disseminating or, in any 
other way, using any of the information without the Genebre S.A. consent. 
Please note that Internet e-mail guarantees neither the confidentiality 
nor the proper receipt of the message sent, so that Genebre shall not be 
liable for any damages caused.

____________________________________________________
Únete a Recursos AS400, nuestra Comunidad ( http://bit.ly/db68dd )
Forum.Help400 © Publicaciones Help400, S.L.
____________________________________________________
Únete a Recursos AS400, nuestra Comunidad ( http://bit.ly/db68dd )
Forum.Help400 © Publicaciones Help400, S.L.

La información que contiene este correo electrónico es confidencial y compete 
exclusivamente al destinatario. Si Vd. ha recibido esta comunicación por error, 
por favor, notifíquelo inmediatamente al remitente y borre el mensaje junto con 
sus ficheros anexos sin leerlo, copiarlo, grabarlo, distribuirlo o divulgarlo o 
hacer cualquier otro uso de la información sin el consentimiento de Genebre 
S.A. El correo electrónico vía Internet no permite asegurar la confidencialidad 
o correcta recepción de los mensajes, por lo que Genebre no asume 
responsabilidad alguna por los daños causados. The information contained in 
this communication is confidential, may be privileged and is intended for the 
exclusive use of the above named addressee. If you receive this communication 
in error, please notify the sender immediately and delete it, and all its 
attached documents. If you are not the intended recipient, you are expressly 
prohibited from reading, copying, distributing, disseminating or, in any other 
way, using any of the information without the Genebre S.A. consent. Please note 
that Internet e-mail guarantees neither the confidentiality nor the proper 
receipt of the message sent, so that Genebre shall not be liable for any 
damages caused.
____________________________________________________
Únete a Recursos AS400, nuestra Comunidad ( http://bit.ly/db68dd )
Forum.Help400 © Publicaciones Help400, S.L.

Responder a