#41438 [Opn->Bgs]: COLUMN LONG RAW ORACLE

From: Date: Fri, 18 May 2007 16:07:30 +0000
Subject: #41438 [Opn->Bgs]: COLUMN LONG RAW ORACLE
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-112846@lists.php.net to get a copy of this message
ID: 41438 Updated by: tony2001@php.net Reported By: jrojass at gmail dot com -Status: Open +Status: Bogus Bug Type: OCI8 related Operating System: Windows 2000 PHP Version: 4.4.7 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2007-05-18 16:01:43] jrojass at gmail dot com Description: ------------ { $db = "(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521)))(CONNECT_DATA=(SID=xxx)))"; $cl = ocilogon("xxx","xxxxxxxxx",$db); $stmt = ociparse($cl,"UPDATE TABLA_IMAGEN SET IMAGEN=:fileimage WHERE COD_IMAGEN=:id"); $fileimage = file_get_contents("Cualquier archivo .gif"); OCIBindByName($stmt,":id",$cod_cli, -1); OCIBindByName($stmt,":fileimage",$fileimage, -1); ociexecute($stmt, $OCI_DEFAULT); ocicommit($cl); $msg = "Actualización realizada Satisfactoriamente"; } Reproduce code: --------------- Warning: ociexecute() [function.ociexecute]: OCIStmtExecute: ORA-01465: invalid hex number in c:\servidor\Apache\htdocs\Oracle\actualizar_imagen.php on line 13 Expected result: ---------------- { $db = "(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521)))(CONNECT_DATA=(SID=xxx)))"; $cl = ocilogon("xxx","xxxxxxxxx",$db); $stmt = ociparse($cl,"UPDATE TABLA_IMAGEN SET IMAGEN=:fileimage WHERE COD_IMAGEN=:id"); $fileimage = file_get_contents("Cualquier archivo .gif"); OCIBindByName($stmt,":id",$cod_cli, -1); OCIBindByName($stmt,":fileimage",bin2hex($fileimage), -1); ociexecute($stmt, $OCI_DEFAULT); ocicommit($cl); $msg = "Actualización realizada Satisfactoriamente"; } // fUNCIONA OK. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41438&edit=1

« previous php.bugs (#112846) next »