Issues

ZF-8244: Tiny improvement

Issue Type: Improvement Created: 2009-11-06T04:44:17.000+0000 Last Updated: 2009-11-06T18:57:48.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Richard Quadling (rquadling) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_Service_Amazon

  • Zend_Soap_Client
  • Zend_Soap_Server

Related issues: Attachments:

Description

Truly tiny change to Zend_Soap_Server::validateUrn()

<pre class="highlight">
        $segs = parse_url($urn);
        if (isset($segs['scheme'])) {
            return true;
        }



<pre class="highlight">
    if (!!parse_url($urn, PHP_URL_SCHEME)) {
        return true;
    }

Using ...

<pre class="highlight">
php -r "var_dump(!!parse_url('<a href="http://framework.zend.com">http://framework.zend.com</a>', PHP_URL_SCHEME));"
php -r "var_dump(!!parse_url('framework.zend.com', PHP_URL_SCHEME));"
php -r "var_dump(!!parse_url('<a>http:///////framework.zend.com</a>', PHP_URL_SCHEME));"

Outputs ...

<pre class="highlight">
bool(true)
bool(false)
Warning: parse_url(<a>http:///////framework.zend.com</a>): Unable to parse URL in Command line code on line 1
bool(false)

So, like I said, truly minor.

Regards,

Richard Quadling.

Comments

Posted by Satoru Yoshida (satoruyoshida) on 2009-11-06T18:24:14.000+0000

I find similar issues in following;

validateUrn($urn) in Zend_Soap_Client

dir_opendir($path, $options) in Zend_Service_Amazon_S3_Stream

Posted by Satoru Yoshida (satoruyoshida) on 2009-11-06T18:57:47.000+0000

Solved SVN r18888 in trunk for Zend_Soap_Client and Zend_Soap_Server

Solved SVN r18889 in trunk for Zend_Service_Amazon_S3_Stream

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts