Doc #52644 [Asn->Csd]: parse_url doesn't emit an E_WARNING

From: Date: Fri, 20 Aug 2010 05:35:06 +0000
Subject: Doc #52644 [Asn->Csd]: parse_url doesn't emit an E_WARNING
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4901@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: aharvey@php.net Reported by: thepixeldeveloper at googlemail dot com Summary: parse_url doesn't emit an E_WARNING -Status: Assigned +Status: Closed Type: Documentation Problem Package: URL related Operating System: GNU/Linux PHP Version: 5.3.3 Assigned To: aharvey Block user comment: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2010-08-20 07:34:59] 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-19 14:21:44] pajoye@php.net Should add a notice that 5.3.3+ does not have warnings anymore. ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#4901) next »