View Issue Details

IDProjectCategoryView StatusLast Update
0000684XdebugUncategorizedpublic2014-02-27 19:12
Reporterrovangju Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionnot fixable 
PlatformAllOSAllOS VersionAll
Product Version2.1.0 
Summary0000684: var_dump - IE does not support '
Description

Code utilizes ' instead of ' - which IE does not even acknowledge exists.

Steps To Reproduce

<?
var_dump('Testing isn\'t fun');
// Output is proper in FF/Chrome, as expected: Testing isn't fun
// Output in IE: Testing isn't fun
?>

Additional Information

See diff for details - essentially replace ' in php_str_to_str() call in xdebug_var.c with ' - Confirmed working after patch.

TagsNo tags attached.
Attached Files
dmp.diff (420 bytes)   
--- xdebug_var.orig.c	2011-04-25 16:03:12.000000000 -0500
+++ xdebug_var.c	2011-04-25 15:53:24.000000000 -0500
@@ -1393,7 +1393,7 @@
 		tmp2 = php_str_to_str(tmp, len, "\"", 1, "&quot;", 6, &len);
 		efree(tmp);
 
-		tmp = php_str_to_str(tmp2, len, "'", 1, "&apos;", 6, &len);
+		tmp = php_str_to_str(tmp2, len, "'", 1, "&#39;", 5, &len);
 		efree(tmp2);
 
 		tmp2 = php_str_to_str(tmp, len, "\n", 1, "&#10;", 5, &len);
dmp.diff (420 bytes)   
Operating System
PHP Version5.3.6

Activities

rovangju

2011-04-25 21:15

reporter   ~0001726

Last edited: 2011-04-25 21:16

ok wow... let's try that again:

IE doesn't support &apos; -

Patching file to use &(#)39; instead of &apos; resolves.

derick

2014-02-27 19:12

administrator   ~0002688

I am not going to add workarounds for weird bugs in IE. ' should work perfectly everywhere.

Issue History

Date Modified Username Field Change
2011-04-25 21:13 rovangju New Issue
2011-04-25 21:13 rovangju File Added: dmp.diff
2011-04-25 21:15 rovangju Note Added: 0001726
2011-04-25 21:16 rovangju Note Edited: 0001726
2011-04-25 21:16 rovangju Note Edited: 0001726
2011-04-25 21:16 rovangju Note Edited: 0001726
2011-04-25 21:16 rovangju Note Edited: 0001726
2014-02-27 19:12 derick Note Added: 0002688
2014-02-27 19:12 derick Status new => resolved
2014-02-27 19:12 derick Resolution open => not fixable
2014-02-27 19:12 derick Assigned To => derick
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized