Bug->Doc #52644 [Bgs->Opn]: parse_url doesn't emit an E_WARNING
| From: | pajoye@php.net | Date: | Thu, 19 Aug 2010 12:21:44 +0000 |
| Subject: | Bug->Doc #52644 [Bgs->Opn]: parse_url doesn't emit an E_WARNING | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-4895@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52644&edit=1
ID: 52644
Updated by: pajoye@php.net
Reported by: thepixeldeveloper at googlemail dot com
Summary: parse_url doesn't emit an E_WARNING
-Status: Bogus
+Status: Open
-Type: Bug
+Type: Documentation Problem
Package: URL related
Operating System: GNU/Linux
PHP Version: 5.3.3
Block user comment: N
New Comment:
Should add a notice that 5.3.3+ does not have warnings anymore.
Previous Comments:
------------------------------------------------------------------------
[2010-08-19 14:17:22] thepixeldeveloper at googlemail dot com
I wasn't disputing that. This appears to be a documentation bug.
http://uk3.php.net/manual/en/function.parse-url.php
------------------------------------------------------------------------
[2010-08-19 14:10:26] pajoye@php.net
Warning has removed, it was totally useless. As the return value already
indicates that the function fails.
------------------------------------------------------------------------
[2010-08-19 14:07:03] thepixeldeveloper at googlemail dot com
Description:
------------
Linux durango 2.6.35-020635rc1-generic #020635rc1 SMP Tue Jun 1 17:27:30
UTC 2010 x86_64 GNU/Linux
Configure Command => './configure' '--prefix=/opt/php-5.3.3'
'--with-openssl' '--with-mcrypt' '--with-mysqli'
'--with-mysql=mysqlnd'
'--with-mysql-sock' '--with-gd' '--with-jpeg-dir=/usr'
'--with-png-dir=/usr' '--with-zlib-dir=/usr'
'--with-freetype-dir=/usr'
'--with-tidy' '--with-curl' '--enable-fpm'
'--with-config-file-path=/etc/php'
'--with-config-file-scan-dir=/etc/php/conf.d' '--enable-gd-native-ttf'
'--enable-gd-jis-conv' '--enable-mbstring' '--disable-xmlreader'
'--disable-xmlwriter' '--disable-phar' '--without-sqlite'
'--without-sqlite3' '--disable-pdo'
Modules
xdebug Version => 2.1.0rc1
http Version => 1.7.0
imagick Version => 3.0.0
diff -u /home/mathew/Downloads/php-5.3.3/php.ini-development php.ini
http://pastie.org/private/y96jx00zslon2t95joa4ug
Test script:
---------------
<?php
error_reporting(E_ALL | E_STRICT);
$parse = parse_url('http:///example.com',
PHP_URL_PATH);
var_dump($parse);
Expected result:
----------------
Warning: parse_url(http:///example.com): Unable to parse URL in
/var/www/default/parse_url.php on line 5
bool(false)
Actual result:
--------------
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52644&edit=1