php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62900 Wrong namespace on xsd import error message
Submitted: 2012-08-22 22:59 UTC Modified: -
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: victor dot prieto at avature dot net Assigned:
Status: Closed Package: SOAP related
PHP Version: 5.3.16 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: victor dot prieto at avature dot net
New email:
PHP Version: OS:

 

 [2012-08-22 22:59 UTC] victor dot prieto at avature dot net
Description:
------------
Hi,

please take a look at:

svn.php.net/viewvc/php/php-src/trunk/ext/soap/php_schema.c?revision=321634&view=markup

line 121:

soap_error2(E_ERROR, "Parsing Schema: can't import schema from '%s', unexpected 'targetNamespace'='%s'", location, ns->children->content);

'targetNamespace' placeholder value corresponds to new_tns->children->content and not to ns->children->content

Thanks,

Vic

Expected result:
----------------
The error should render the targetNamespace found on the referenced XSD file and not the value of the namespace attribute of the import tag on the referencing XSD file

Actual result:
--------------
The error shows the 'namespace' import tag attribute as the 'targetNamespace' value

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2024-09-11 07:22 UTC] git@php.net
Automatic comment on behalf of nielsdos
Revision: https://github.com/php/php-src/commit/7a67fb0315c553394b898d979f09499d4312d09f
Log: Fix bug #62900: Wrong namespace on xsd import error message
 [2024-09-11 07:22 UTC] git@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC