php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #52644 parse_url doesn't emit an E_WARNING
Submitted: 2010-08-19 14:07 UTC Modified: 2010-12-20 12:58 UTC
From: thepixeldeveloper at googlemail dot com Assigned: aharvey (profile)
Status: Closed Package: URL related
PHP Version: 5.3.3 OS: GNU/Linux
Private report: No CVE-ID: None
 [2010-08-19 14:07 UTC] 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-19 14:10 UTC] pajoye@php.net
-Status: Open +Status: Bogus
 [2010-08-19 14:10 UTC] pajoye@php.net
Warning has removed, it was totally useless. As the return value already indicates that the function fails.
 [2010-08-19 14:17 UTC] 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:21 UTC] pajoye@php.net
-Status: Bogus +Status: Open -Type: Bug +Type: Documentation Problem
 [2010-08-19 14:21 UTC] pajoye@php.net
Should add a notice that 5.3.3+ does not have warnings anymore.
 [2010-08-20 07:25 UTC] aharvey@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: aharvey
 [2010-08-20 07:34 UTC] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=302525
Log: Fix doc bug #52644 (parse_url doesn't emit an E_WARNING). Also added a full
stop to the other parse_url() change log entry, since I'm pedantic that way.
 [2010-08-20 07:35 UTC] aharvey@php.net
-Status: Assigned +Status: Closed
 [2010-08-20 07:35 UTC] aharvey@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 [2010-12-20 12:58 UTC] jani@php.net
-Package: Tidy +Package: URL related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 14:01:30 2024 UTC