ID:               47953
 User updated by:  bbarnett at gt dot co dot cr
 Reported By:      bbarnett at gt dot co dot cr
-Status:           Feedback
+Status:           Open
 Bug Type:         SimpleXML related
 Operating System: WXP
 PHP Version:      5.2.9
 New Comment:

Hi.

I want to know if you need more information about this issue???

Thank you.


Previous Comments:
------------------------------------------------------------------------

[2009-04-12 00:07:46] bbarnett at gt dot co dot cr

This is a part of the code that I'm using:
<?
$consulta="select trama from gestiones where
consecutivo=".trim($_REQUEST['consecutivo']);
$buffconsulta = mssql_query($consulta,$conn);
$reg = mssql_fetch_row($buffconsulta);
                
// Procesa el XML enviado
$xml2= simplexml_load_string(utf8_decode(trim($reg[0])));
if (!$xml2){
        print wordwrap($reg[0], 30, "<br>",1);
} 
?>

------------------------------------------------------------------------

[2009-04-12 00:03:21] bbarnett at gt dot co dot cr

This is an example of the XML string that I'm trying to read
<X_A_PagoGen>
  <Banco>2</Banco>
  <Localizacion>8203261610</Localizacion>
  <NotaCredito>000000009770</NotaCredito>
  <Correlativo>80782584</Correlativo>
  <Self>9</Self>
  <Monto>0000011930</Monto>
  <Agencia>1400</Agencia>
  <FechaPago>20090216</FechaPago>
  <FechaCaja>20090217</FechaCaja>
</X_A_PagoGen>

------------------------------------------------------------------------

[2009-04-11 23:51:46] j...@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



------------------------------------------------------------------------

[2009-04-11 23:49:39] bbarnett at gt dot co dot cr

Description:
------------
I'm receiving and error when I try to read and XML string. The error
is: Premature end of data in tag FechaPago line 9 Line: 9

Reproduce code:
---------------
$xml2= simplexml_load_string(utf8_decode(trim($reg[0])));

Expected result:
----------------
An XML object

Actual result:
--------------
An Error.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47953&edit=1

Reply via email to