Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- DomDocument::schemaValidate() - empty string for schema file name --CREDITS-- Dan..

Decoded Output download

--TEST--
DomDocument::schemaValidate() - empty string for schema file name
--CREDITS--
Daniel Convissor <[email protected]>
# TestFest 2009 NYPHP
--EXTENSIONS--
dom
--FILE--
<?php

$doc = new DOMDocument;

$doc->load(__DIR__."/book.xml");

try {
    $doc->schemaValidate('');
} catch (ValueError $e) {
    echo $e->getMessage() . "
";
}

?>
--EXPECT--
DOMDocument::schemaValidate(): Argument #1 ($filename) must not be empty

Did this file decode correctly?

Original Code

--TEST--
DomDocument::schemaValidate() - empty string for schema file name
--CREDITS--
Daniel Convissor <[email protected]>
# TestFest 2009 NYPHP
--EXTENSIONS--
dom
--FILE--
<?php

$doc = new DOMDocument;

$doc->load(__DIR__."/book.xml");

try {
    $doc->schemaValidate('');
} catch (ValueError $e) {
    echo $e->getMessage() . "\n";
}

?>
--EXPECT--
DOMDocument::schemaValidate(): Argument #1 ($filename) must not be empty

Function Calls

None

Variables

None

Stats

MD5 67b712613a59216e7c4b15319af04486
Eval Count 0
Decode Time 90 ms