#25644 [Opn-Fbk]: xsl:sort with data-type='text' ... php crashes

2003-09-25 Thread sniper
 ID:   25644
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sparky_industries at mad dot scientist dot com
-Status:   Open
+Status:   Feedback
 Bug Type: XSLT related
 Operating System: Windows 98
 PHP Version:  4.3.3
 New Comment:

What does phpinfo() say about Sablotron version?



Previous Comments:


[2003-09-25 03:24:33] sparky_industries at mad dot scientist dot com

i do not know, if this is helpful or not, but these are the details of
the error-popups i get (i always geht three popups, once, i try to sort
with data-type=text)


PHP verursachte einen Fehler durch eine ungültige Seite
in Modul SABLOT.DLL bei 015f:014c154f.
Register:
EAX= CS=015f EIP=014c154f EFLGS=00010202
EBX= SS=0167 ESP=0063b978 EBP=0063bab8
ECX=0013 DS=0167 ESI=00819740 FS=1b4f
EDX=0063baec ES=0167 EDI=00819740 GS=
Bytes bei CS:EIP:
ff 49 40 8b 41 40 c3 8b 41 34 8b 4c 24 04 56 8b 
Stapelwerte:
014c1d87 0063badc 014c8702 0001 0063badc  014c9e2f 0080bc60
014ca58f 008199c0 0004 00819df0  02070207 320e480e 090e210e



PHP verursachte einen Fehler durch eine ungültige Seite
in Modul SABLOT.DLL bei 015f:014c154f.
Register:
EAX= CS=015f EIP=014c154f EFLGS=00010202
EBX= SS=0167 ESP=0063b4bc EBP=0063b4ec
ECX=0013 DS=0167 ESI=00819740 FS=1b4f
EDX=0063baec ES=0167 EDI=00819740 GS=
Bytes bei CS:EIP:
ff 49 40 8b 41 40 c3 8b 41 34 8b 4c 24 04 56 8b 
Stapelwerte:
014c1d87 0063badc 014c8702 014f1d20 0063badc 0063bb68 014c868b 0002
0063badc 0063b538 014ed08b  0063bb74 7800b0a7 014f1d20 0002



PHP verursachte einen Fehler durch eine ungültige Seite
in Modul MSVCRT.DLL bei 015f:7800b936.
Register:
EAX=00650078 CS=015f EIP=7800b936 EFLGS=00010206
EBX=0020 SS=0167 ESP=0063af7c EBP=0063af98
ECX=00a0 DS=0167 ESI=0081996c FS=1b4f
EDX= ES=0167 EDI=0017 GS=
Bytes bei CS:EIP:
89 5a 04 8b 55 0c 89 4d fc 8b 5a 04 8b 52 08 89 
Stapelwerte:
00819e08 00819970 0063be58 00653018 0020 00e0 0080 0063afdc
7800b30c 0075000c 008199ec 00819e08 00819e24 0063be58 0063afdc 0075000c



[2003-09-25 03:14:55] sparky_industries at mad dot scientist dot com

no, i don't think so, i have downloaded the new version (4.3.3) of php
(windows zip package) with all the extensions, so this can not be the
problem.

furthermore, i use the same apache2, the same php package and the same
explorer on another machine running windows xp ... and it works!
everything is completely the same, except the operating system ...
(maybe windows 98 is really too old ;)



[2003-09-24 19:48:43] [EMAIL PROTECTED]

Works fine in Linux too. Are you sure you just don't have some old xslt
related dll in your win98 machine?




[2003-09-24 16:13:10] sparky_industries at mad dot scientist dot com

Operating System:

i tried the same script (same configuration of apache2 and php) on
windows XP - IT WORKES !!!

so it has to do something with the operating system!



[2003-09-24 16:11:19] sparky_industries at mad dot scientist dot com

according to php script:

i would like to add the php script, but it is totally integrated into a
big framework, so it would not make sense to extract a few code-lines.

but it works like that:


$xml = function-to-generate-xml-document();
// xml-document is both WELLFORMED and VALID, i really checked that!

$xsl = implode(, file($xslfile));

$arguments = array
(   
   /_xml = $xml,
   /_xsl = $xsl
);

$xh = xslt_create();
@xslt_set_base($xh, file:// . $valid_base);
// the base is set to the directory of the xsl_file

$xml = @xslt_process($xh, arg:/_xml, arg:/_xsl,  NULL, $arguments);



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/25644

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


#25644 [Opn-Fbk]: xsl:sort with data-type='text' ... php crashes

2003-09-24 Thread sniper
 ID:   25644
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sparky_industries at mad dot scientist dot com
-Status:   Open
+Status:   Feedback
 Bug Type: XSLT related
 Operating System: Windows 98
 PHP Version:  4.3.3
 New Comment:

Add the php script here too.



Previous Comments:


[2003-09-24 09:13:44] sparky_industries at mad dot scientist dot com

Description:

if i want to xsl:sort the elements of xsl:for-each and set data-type to
'text' (or drop data-type, which is the same), php crashes (windows
error-popup)!

Reproduce code:
---
XML:
?xml version=1.0 encoding=UTF-8?
root
   names
  namehansi/name
  namebergi/name
  namekrabi/name
  nametali/name
   /names
/root

XSL:
?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

xsl:template match=/root
xsl:apply-templates select=names /
/xsl:template

xsl:template match=names
xsl:for-each select=name
xsl:sort select=. order=descending data-type=text /
xsl:value-of select=. /
br /
/xsl:for-each
/xsl:template

/xsl:stylesheet

Expected result:

talibr /
krabibr /
hansibr /
bergibr /




Actual result:
--
PHP crashes ...

if i exclude the xsl:sort instruction, it works !

it also works, when data-type=number (this makes no sense here), but
if i drop it, or set data-type=text php crashes





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


#25644 [Opn-Fbk]: xsl:sort with data-type='text' ... php crashes

2003-09-24 Thread sniper
 ID:   25644
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sparky_industries at mad dot scientist dot com
-Status:   Open
+Status:   Feedback
 Bug Type: XSLT related
 Operating System: Windows 98
 PHP Version:  4.3.3
 New Comment:

Works fine in Linux too. Are you sure you just don't have some old xslt
related dll in your win98 machine?



Previous Comments:


[2003-09-24 16:13:10] sparky_industries at mad dot scientist dot com

Operating System:

i tried the same script (same configuration of apache2 and php) on
windows XP - IT WORKES !!!

so it has to do something with the operating system!



[2003-09-24 16:11:19] sparky_industries at mad dot scientist dot com

according to php script:

i would like to add the php script, but it is totally integrated into a
big framework, so it would not make sense to extract a few code-lines.

but it works like that:


$xml = function-to-generate-xml-document();
// xml-document is both WELLFORMED and VALID, i really checked that!

$xsl = implode(, file($xslfile));

$arguments = array
(   
   /_xml = $xml,
   /_xsl = $xsl
);

$xh = xslt_create();
@xslt_set_base($xh, file:// . $valid_base);
// the base is set to the directory of the xsl_file

$xml = @xslt_process($xh, arg:/_xml, arg:/_xsl,  NULL, $arguments);



[2003-09-24 09:41:38] [EMAIL PROTECTED]

Add the php script here too.




[2003-09-24 09:13:44] sparky_industries at mad dot scientist dot com

Description:

if i want to xsl:sort the elements of xsl:for-each and set data-type to
'text' (or drop data-type, which is the same), php crashes (windows
error-popup)!

Reproduce code:
---
XML:
?xml version=1.0 encoding=UTF-8?
root
   names
  namehansi/name
  namebergi/name
  namekrabi/name
  nametali/name
   /names
/root

XSL:
?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

xsl:template match=/root
xsl:apply-templates select=names /
/xsl:template

xsl:template match=names
xsl:for-each select=name
xsl:sort select=. order=descending data-type=text /
xsl:value-of select=. /
br /
/xsl:for-each
/xsl:template

/xsl:stylesheet

Expected result:

talibr /
krabibr /
hansibr /
bergibr /




Actual result:
--
PHP crashes ...

if i exclude the xsl:sort instruction, it works !

it also works, when data-type=number (this makes no sense here), but
if i drop it, or set data-type=text php crashes





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