| @@ 510-516 (lines=7) @@ | ||
| 507 | elseif (!extension_loaded('xmlreader')) |
|
| 508 | { |
|
| 509 | static $xml_is_sane = null; |
|
| 510 | if ($xml_is_sane === null) |
|
| 511 | { |
|
| 512 | $parser_check = xml_parser_create(); |
|
| 513 | xml_parse_into_struct($parser_check, '<foo>&</foo>', $values); |
|
| 514 | xml_parser_free($parser_check); |
|
| 515 | $xml_is_sane = isset($values[0]['value']); |
|
| 516 | } |
|
| 517 | if (!$xml_is_sane) |
|
| 518 | { |
|
| 519 | return false; |
|
| @@ 11733-11739 (lines=7) @@ | ||
| 11730 | } |
|
| 11731 | $return = true; |
|
| 11732 | static $xml_is_sane = null; |
|
| 11733 | if ($xml_is_sane === null) |
|
| 11734 | { |
|
| 11735 | $parser_check = xml_parser_create(); |
|
| 11736 | xml_parse_into_struct($parser_check, '<foo>&</foo>', $values); |
|
| 11737 | xml_parser_free($parser_check); |
|
| 11738 | $xml_is_sane = isset($values[0]['value']); |
|
| 11739 | } |
|
| 11740 | // Create the parser |
|
| 11741 | if ($xml_is_sane) |
|
| 11742 | { |
|