[Bug 823066] Review Request: php-symfony2-Validator - Symfony2 Validator Component

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=823066

--- Comment #5 from Shawn Iwinski <shawn.iwinski@xxxxxxxxx> ---
Issue: XSD file installed as doc, but referenced by code.

-- XSD file --
Symfony/Component/Validator/Mapping/Loader/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd

-- Code (from Symfony/Component/Validator/Mapping/Loader/XmlFileLoader.php) --
    protected function parseFile($file)
    {
        $dom = new \DOMDocument();
        libxml_use_internal_errors(true);
        if (!$dom->load($file, defined('LIBXML_COMPACT') ? LIBXML_COMPACT : 0))
{
            throw new MappingException(implode("\n", $this->getXmlErrors()));
        }
    if
(!$dom->schemaValidate(__DIR__.'/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd$
            throw new MappingException(implode("\n", $this->getXmlErrors()));
        }
        $dom->validateOnParse = true;
        $dom->normalizeDocument();
        libxml_use_internal_errors(false);

        return simplexml_import_dom($dom);
    }



See original finding of this issue at
https://bugzilla.redhat.com/show_bug.cgi?id=823046#c8

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review



[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]