PHP  
 PHP_5_6
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Valgrind Report for ext/xmlreader/tests/013.phpt ('XMLReader: Schema validation')

Script

1: <?php 
2:
/* $Id$ */
3:
4:
$xml =<<<EOF
5:
<?xml version="1.0" encoding="UTF-8" ?>
6: <items>
7:   <item>123</item>
8:   <item>456</item>
9: </items>
10:
EOF;
11:
12:
$reader = new XMLReader();
13:
$reader->XML($xml);
14:
$reader->setSchema(dirname(__FILE__) . '/013.xsd');
15: while(
$reader->read()) {
16:     if (
$reader->nodeType == XMLReader::ELEMENT && $reader->name == 'item') {
17:         
$reader->read();
18:         
var_dump($reader->value);
19:     }
20: }
21:
$reader->close();
22:
23:
?>
24:
===FAIL===
25: <?php
26:
27: $xml 
=<<<EOF
28:
<?xml version="1.0" encoding="UTF-8" ?>
29: <foo/>
30:
EOF;
31:
32:
$reader = new XMLReader();
33:
$reader->XML($xml);
34:
$reader->setSchema(dirname(__FILE__) . '/013.xsd');
35: while(
$reader->read() && $reader->nodeType != XMLReader::ELEMENT);
36:
$reader->close();
37:
38:
?>
39:
===DONE===
40:

Report

==19980== Conditional jump or move depends on uninitialised value(s)
==19980==    at 0xF75F47: zend_send_by_var_helper_SPEC_VAR (zend_vm_execute.h:13385)
==19980==    by 0xF77552: ZEND_SEND_VAR_SPEC_VAR_HANDLER (zend_vm_execute.h:13501)
==19980==    by 0xF2A1EE: execute_ex (zend_vm_execute.h:363)
==19980==    by 0xF2AD91: zend_execute (zend_vm_execute.h:388)
==19980==    by 0xEBFB2F: zend_execute_scripts (zend.c:1341)
==19980==    by 0xDDDA5B: php_execute_script (main.c:2597)
==19980==    by 0x107746E: do_cli (php_cli.c:994)
==19980==    by 0x1078C1B: main (php_cli.c:1378)
==19980== 
==19980== Conditional jump or move depends on uninitialised value(s)
==19980==    at 0xCA302D: php_var_dump (var.c:113)
==19980==    by 0xCA3990: zif_var_dump (var.c:183)
==19980==    by 0xF2C768: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:558)
==19980==    by 0xF382FE: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:2602)
==19980==    by 0xF2A1EE: execute_ex (zend_vm_execute.h:363)
==19980==    by 0xF2AD91: zend_execute (zend_vm_execute.h:388)
==19980==    by 0xEBFB2F: zend_execute_scripts (zend.c:1341)
==19980==    by 0xDDDA5B: php_execute_script (main.c:2597)
==19980==    by 0x107746E: do_cli (php_cli.c:994)
==19980==    by 0x1078C1B: main (php_cli.c:1378)
==19980== 

 

Generated at Wed, 29 Jul 2015 05:45:12 +0000 (45 hours ago)

Copyright © 2005-2015 The PHP Group
All rights reserved.