![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Pear Pear programming, this is a very complex subject as with using pear with php can be a difficult task for some, so lets talk pear. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| davidc Fri May 11 01:55:53 2007 UTC Modified files: /pear/Net_URL URL.php Log: - Bug 11008 Patch by http://pear.php.net/user/spaze http://cvs.php.net/viewvc.cgi/pear/N...&diff_format=u Index: pear/Net_URL/URL.php diff -u pear/Net_URL/URL.php:1.46 pear/Net_URL/URL.php:1.47 --- pear/Net_URL/URL.php:1.46 Tue May 8 05:01:49 2007 +++ pear/Net_URL/URL.php Fri May 11 01:55:53 2007 @@ -32,7 +32,7 @@ // | Author: Richard Heyes <richard at php net> | // +-----------------------------------------------------------------------+ // -// $Id: URL.php,v 1.46 2007/05/08 05:01:49 davidc Exp $ +// $Id: URL.php,v 1.47 2007/05/11 01:55:53 davidc Exp $ // // Net_URL Class @@ -129,12 +129,10 @@ $this->initialize(); } - function initialize($url = null, $useBrackets = true) + function initialize() { $HTTP_SERVER_VARS = !empty($_SERVER) ? $_SERVER : $GLOBALS['HTTP_SERVER_VARS']; - $this->useBrackets = $useBrackets; - $this->url = $url; $this->user = ''; $this->pass = ''; $this->host = ''; @@ -144,7 +142,7 @@ $this->anchor = ''; // Only use defaults if not an absolute URL given - if (!preg_match('/^[a-z0-9]+:\/\//i', $url)) { + if (!preg_match('/^[a-z0-9]+:\/\//i', $this->url)) { $this->protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http'); /** @@ -169,8 +167,8 @@ } // Parse the url and store the various parts - if (!empty($url)) { - $urlinfo = parse_url($url); + if (!empty($this->url)) { + $urlinfo = parse_url($this->url); // Default querystring $this->querystring = array(); | |||
| Featured Websites | ||||
|
![]() |
| Tags: cvs, net_url, pear, urlphp |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cvs: pear-core / package-PEAR.xml package2.xml /PEAR Installer.php /PEAR/PackageFile v1.php /PEAR/PackageFile/v2 Validator.php | Greg Beaver | Pear | 0 | 05-20-2007 7:42 PM |
| cvs: pear-core / package-PEAR.xml package2.xml /PEAR Downloader.php /PEAR/Downloader Package.php | Greg Beaver | Pear | 0 | 05-20-2007 7:42 PM |
| Net_URL: default argument values override object properties in initialize() | spaze | Pear | 4 | 05-20-2007 7:41 PM |
| [ANNOUNCEMENT] Net_URL-1.0.15 (stable) Released. | PEAR Announce | Pear | 0 | 05-20-2007 6:34 PM |
| [ANNOUNCEMENT] Net_URL-1.0.16 (stable) Released. | PEAR Announce | Pear | 0 | 05-20-2007 6:34 PM |
| Featured Websites | ||||
|