#43580 [Opn->Csd]: C function php_is_url() declared but does not exist in core
| From: | iliaa@php.net | Date: | Thu, 13 Dec 2007 00:33:32 +0000 |
| Subject: | #43580 [Opn->Csd]: C function php_is_url() declared but does not exist in core | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-120619@lists.php.net to get a copy of this message | ||
ID: 43580
Updated by: iliaa@php.net
Reported By: francois at tekwire dot net
-Status: Open
+Status: Closed
Bug Type: Streams related
Operating System: All
PHP Version: 5.2.5
New Comment:
This bug has been fixed in CVS.
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:
------------------------------------------------------------------------
[2007-12-12 11:36:32] francois at tekwire dot net
Description:
------------
Hi,
I was looking for the php_is_url() function. It is documented in Sara's
book, declared in main/fopen_wrappers.h, but not defined anywhere.
Looking in CVS, I found that it was defined in fopen_wrappers.c v 1.34
to detect only http/ftp URLs, as they were probably the only possible
URLs at this time, and was removed in v 1.107.
If we decide that this function is not available anymore, the
declaration must be removed from fopen_wrappers.h. If we want to define
it, here is a way to do it :
PHPAPI int php_is_url(const char *path)
{
php_stream_wrapper *wrapper;
wrapper=php_stream_locate_url_wrapper(path, NULL, 0 TSRMLS_CC);
return (wrapper ? wrapper->is_url : 0); }
Reproduce code:
---------------
none
Expected result:
----------------
none
Actual result:
--------------
none
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43580&edit=1