Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32366 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15313 invoked by uid 1010); 18 Sep 2007 11:52:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15298 invoked from network); 18 Sep 2007 11:52:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Sep 2007 11:52:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=francois.laupretre@ratp.fr; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=francois.laupretre@ratp.fr; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ratp.fr from 62.160.169.8 cause and error) X-PHP-List-Original-Sender: francois.laupretre@ratp.fr X-Host-Fingerprint: 62.160.169.8 unknown Solaris 8 (2) Received: from [62.160.169.8] ([62.160.169.8:41913] helo=odii-smtp.ratp.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/16-07657-DDBBFE64 for ; Tue, 18 Sep 2007 07:51:59 -0400 Received: from bl03ic06.info.ratp (unknown [188.20.209.10]) by odii-smtp.ratp.fr (Postfix) with ESMTP id 3A12B268D8 for ; Tue, 18 Sep 2007 13:51:51 +0200 (MEST) Received: from EXCHANGE04.info.ratp ([188.20.209.2]) by bl03ic06.info.ratp with Microsoft SMTPSVC(6.0.3790.2499); Tue, 18 Sep 2007 13:51:48 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Tue, 18 Sep 2007 13:51:48 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Function php_is_url() not defined Thread-Index: Acf56kufDU7yFnlERwmxyZ8fTRB+QQ== To: "PHP Internals List" X-OriginalArrivalTime: 18 Sep 2007 11:51:48.0907 (UTC) FILETIME=[4B9507B0:01C7F9EA] Subject: Function php_is_url() not defined From: francois.laupretre@ratp.fr (=?iso-8859-1?Q?LAUPRETRE_Fran=E7ois_=28P=29?=) Hi, I am looking for the php_is_url() function. It is documented in Sara's = book, declared in main/fopen_wrappers.h, but not defined anywhere. It was defined in main/fopen_wrappers.c v 1.34 to detect only http/ftp = URLs, as they were probably the only possible URLs, 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=3Dphp_stream_locate_url_wrapper(path, NULL, 0 TSRMLS_CC); return (wrapper ? wrapper->is_url : 0); } Regards Francois