Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
PHP, Win32
Description
This regression occurred a few months back. When I do XSDHelper::defineFile("nonexistent.xsd"), Tuscany used to give me an SDOFileNotFoundException. Now it does not throw an exception. Instead it returns with a non-zero error count, and messages:
1 parse error(s) occurred when parsing the file 'xxx':
1. xmlSAXUserParseFile returned an error -1 ' in Command line code:1
I'd really like the exception back, because it's confusing for end-users to get what looks like a parsing failure when the file is just not there.
If necessary I will check the file stat in the php code before calling Tuscany and raise an exception directly, but I'm not sure I know exactly what the path spec is that libxml2 uses to find a relative file.