From: Everton L. B. <ev...@fa...> - 2003-11-05 12:49:57
|
Hi, My xml files are writen using ISO-8859-1 encoding. Rlib does not show report correctly.. Example one: <?xml version=3D"1.0"?> <!DOCTYPE report > <Report fontSize=3D"9" orientation=3D"landscape"> <ReportHeader> </ReportHeader> <PageHeader> <Output> <Line fontSize=3D"11"> <text>Testing ISO8859: =E7=E3=E1[{=E9=FA</text> ... rlib output is: xmlParseError ** NUTS.. WE CRASHED Sair (core dumped) Example two: I have changed line 1 to <?xml version=3D"1.0" encoding=3D"ISO-8859-1"?> rlib output is: Testing ISO8859: =C3=A7=C3=A3=C3=A1[{=C3=A9=C3=BA ... --=20 Everton Luis Berz Nucleo de Sistemas :: FACCAT - Faculdades de Taquara +55 51 541 6600 ICQ 7807919 |
From: Bob D. <bd...@si...> - 2003-11-05 13:57:50
|
Hey, You always send in the hard requests ;) Could you either 1) give me a mysql example w/ php code and a sample xml file or 2) run it manually from a command line php whatever.php it will crash & create a core or core.xxxxx then run it through gdb like: gdb /usr/bin/php core or gdb /usr/bin/php core.xxxxxx then hit enter a bunch of times as it resolves all the damn php symbols then type: bt and send me the stack trace thanks - Bob On Wed, 2003-11-05 at 07:49, Everton Luis Berz wrote: > Hi, > My xml files are writen using ISO-8859-1 encoding. > Rlib does not show report correctly.. > Example one: > <?xml version="1.0"?> > <!DOCTYPE report > > <Report fontSize="9" orientation="landscape"> > <ReportHeader> > </ReportHeader> > > <PageHeader> > <Output> > <Line fontSize="11"> > <text>Testing ISO8859: çãá[{éú</text> > ... > > rlib output is: > xmlParseError > ** NUTS.. WE CRASHED > Sair (core dumped) > > Example two: > I have changed line 1 to > <?xml version="1.0" encoding="ISO-8859-1"?> > > rlib output is: > > Testing ISO8859: çãá[{éú > ... > |
From: Everton L. B. <ev...@fa...> - 2003-11-05 21:18:21
|
(gdb) bt #0 0xffffe002 in ?? () #1 <signal handler called> #2 rlib_execute (r=3D0x1) at init.c:92 #3 0x4002561d in zif_rlib_execute (ht=3D1, return_value=3D0x0,=20 this_ptr=3D0x0, return_value_used=3D0) at php.c:238 #4 0x08156f4c in execute () #5 0x0813dc16 in zend_execute_scripts () #6 0x08070b7a in php_execute_script () #7 0x0806dbf8 in main () #8 0x420156a4 in __libc_start_main () from /lib/tls/libc.so.6 Bob Doan escreveu: >Hey, > >You always send in the hard requests ;) > >Could you either=20 > >1) give me a mysql example w/ php code and a sample xml file > >or 2) > >run it manually from a command line > >php whatever.php > >it will crash & create a core or core.xxxxx > >then run it through gdb like: > >gdb /usr/bin/php core > >or=20 > >gdb /usr/bin/php core.xxxxxx > >then > >hit enter a bunch of times as it resolves all the damn php symbols > >then type: bt > >and send me the stack trace > >thanks > >- Bob > >On Wed, 2003-11-05 at 07:49, Everton Luis Berz wrote: > =20 > >>Hi, >>My xml files are writen using ISO-8859-1 encoding. >>Rlib does not show report correctly.. >>Example one: >><?xml version=3D"1.0"?> >><!DOCTYPE report > >><Report fontSize=3D"9" orientation=3D"landscape"> >> <ReportHeader> >> </ReportHeader> >> >> <PageHeader> >> <Output> >> <Line fontSize=3D"11"> >> <text>Testing ISO8859: =E7=E3=E1[{=E9=FA</text> >>... >> >>rlib output is: >>xmlParseError >>** NUTS.. WE CRASHED >>Sair (core dumped) >> >>Example two: >>I have changed line 1 to >><?xml version=3D"1.0" encoding=3D"ISO-8859-1"?> >> >>rlib output is: >> >>Testing ISO8859: =C3=A7=C3=A3=C3=A1[{=C3=A9=C3=BA >>... >> >> =20 >> > > > >------------------------------------------------------- >This SF.net email is sponsored by: SF.net Giveback Program. >Does SourceForge.net help you be more productive? Does it >help you create better code? SHARE THE LOVE, and help us help >YOU! Click Here: http://sourceforge.net/donate/ >_______________________________________________ >Rlib-users mailing list >Rli...@li... >https://lists.sourceforge.net/lists/listinfo/rlib-users > > =20 > --=20 Everton Luis Berz Nucleo de Sistemas :: FACCAT - Faculdades de Taquara +55 51 541 6600 ICQ 7807919 |
From: Bob D. <bd...@si...> - 2003-11-06 14:30:07
|
First problem is your XML file If you are gonna put those chars in you need to <?xml version="1.0" encoding="ISO-8859-1"?> it was libxml2 complaining.... and the new RLIB won't crash when that happens.. if you do proper error checking Next problem is RLIB and i18n stuff... I think.. I could be wrong.. but RLIB's html output should be fine(If it is not what HTML do I need to put out to make it work???).. can you verify that for me... I also think RLIB's PDF output will be wrong... .. however you did mention earlier that you put in rlib this: cpdf_setFont(OUTPUT_PRIVATE(r)->pdf, "Courier", "WinAnsiEncoding", point); and that did the trick... does everything come out ok in PDF w/ that option turned on? - Bob On Wed, 2003-11-05 at 11:22, Everton Luis Berz wrote: > (gdb) bt > #0 0xffffe002 in ?? () > #1 <signal handler called> > #2 rlib_execute (r=0x1) at init.c:92 > #3 0x4002561d in zif_rlib_execute (ht=1, return_value=0x0, > this_ptr=0x0, return_value_used=0) at php.c:238 > #4 0x08156f4c in execute () > #5 0x0813dc16 in zend_execute_scripts () > #6 0x08070b7a in php_execute_script () > #7 0x0806dbf8 in main () > #8 0x420156a4 in __libc_start_main () from /lib/tls/libc.so.6 > > > Bob Doan escreveu: > > >Hey, > > > >You always send in the hard requests ;) > > > >Could you either > > > >1) give me a mysql example w/ php code and a sample xml file > > > >or 2) > > > >run it manually from a command line > > > >php whatever.php > > > >it will crash & create a core or core.xxxxx > > > >then run it through gdb like: > > > >gdb /usr/bin/php core > > > >or > > > >gdb /usr/bin/php core.xxxxxx > > > >then > > > >hit enter a bunch of times as it resolves all the damn php symbols > > > >then type: bt > > > >and send me the stack trace > > > >thanks > > > >- Bob > > > >On Wed, 2003-11-05 at 07:49, Everton Luis Berz wrote: > > > > > >>Hi, > >>My xml files are writen using ISO-8859-1 encoding. > >>Rlib does not show report correctly.. > >>Example one: > >><?xml version="1.0"?> > >><!DOCTYPE report > > >><Report fontSize="9" orientation="landscape"> > >> <ReportHeader> > >> </ReportHeader> > >> > >> <PageHeader> > >> <Output> > >> <Line fontSize="11"> > >> <text>Testing ISO8859: çãá[{éú</text> > >>... > >> > >>rlib output is: > >>xmlParseError > >>** NUTS.. WE CRASHED > >>Sair (core dumped) > >> > >>Example two: > >>I have changed line 1 to > >><?xml version="1.0" encoding="ISO-8859-1"?> > >> > >>rlib output is: > >> > >>Testing ISO8859: çãá[{éú > >>... > >> > >> > >> > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: SF.net Giveback Program. > >Does SourceForge.net help you be more productive? Does it > >help you create better code? SHARE THE LOVE, and help us help > >YOU! Click Here: http://sourceforge.net/donate/ > >_______________________________________________ > >Rlib-users mailing list > >Rli...@li... > >https://lists.sourceforge.net/lists/listinfo/rlib-users > > > > > > > |
From: Bob D. <bd...@si...> - 2003-11-05 22:31:48
|
Err.. hym.... It looks like the rlib pointer got manegeld.. somewhere in the xml parsing... could you make me an XML file based off the example in the betabook.pdf so that I can debug it further? - Bob On Wed, 2003-11-05 at 11:24, Everton Luis Berz wrote: > these lines at top maybe important.. > > ... > Reading symbols from /usr/local/lib/libr-postgre.so...done. > Loaded symbols for /usr/local/lib/libr-postgre.so > Reading symbols from /usr/lib/gconv/ISO8859-1.so...done. > Loaded symbols for /usr/lib/gconv/ISO8859-1.so > #0 0xffffe002 in ?? () > (gdb) > (gdb) > (gdb) > (gdb) bt > #0 0xffffe002 in ?? () > #1 <signal handler called> > #2 rlib_execute (r=0x1) at init.c:92 > #3 0x4002561d in zif_rlib_execute (ht=1, return_value=0x0, > this_ptr=0x0, return_value_used=0) at php.c:238 > #4 0x08156f4c in execute () > #5 0x0813dc16 in zend_execute_scripts () > #6 0x08070b7a in php_execute_script () > #7 0x0806dbf8 in main () > #8 0x420156a4 in __libc_start_main () from /lib/tls/libc.so.6 > > > > Bob Doan escreveu: > > >Hey, > > > >You always send in the hard requests ;) > > > >Could you either > > > >1) give me a mysql example w/ php code and a sample xml file > > > >or 2) > > > >run it manually from a command line > > > >php whatever.php > > > >it will crash & create a core or core.xxxxx > > > >then run it through gdb like: > > > >gdb /usr/bin/php core > > > >or > > > >gdb /usr/bin/php core.xxxxxx > > > >then > > > >hit enter a bunch of times as it resolves all the damn php symbols > > > >then type: bt > > > >and send me the stack trace > > > >thanks > > > >- Bob > > > >On Wed, 2003-11-05 at 07:49, Everton Luis Berz wrote: > > > > > >>Hi, > >>My xml files are writen using ISO-8859-1 encoding. > >>Rlib does not show report correctly.. > >>Example one: > >><?xml version="1.0"?> > >><!DOCTYPE report > > >><Report fontSize="9" orientation="landscape"> > >> <ReportHeader> > >> </ReportHeader> > >> > >> <PageHeader> > >> <Output> > >> <Line fontSize="11"> > >> <text>Testing ISO8859: çãá[{éú</text> > >>... > >> > >>rlib output is: > >>xmlParseError > >>** NUTS.. WE CRASHED > >>Sair (core dumped) > >> > >>Example two: > >>I have changed line 1 to > >><?xml version="1.0" encoding="ISO-8859-1"?> > >> > >>rlib output is: > >> > >>Testing ISO8859: çãá[{éú > >>... > >> > >> > >> > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: SF.net Giveback Program. > >Does SourceForge.net help you be more productive? Does it > >help you create better code? SHARE THE LOVE, and help us help > >YOU! Click Here: http://sourceforge.net/donate/ > >_______________________________________________ > >Rlib-users mailing list > >Rli...@li... > >https://lists.sourceforge.net/lists/listinfo/rlib-users > > > > > > > |