Skip to content

Commit ff73185

Browse files
committed
Remove some references to PHP5
... implying that we support PHP4, which is of course not true.
1 parent 53b1fd9 commit ff73185

File tree

7 files changed

+3
-23
lines changed

7 files changed

+3
-23
lines changed

system/core/Common.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
/**
3333
* Determines if the current version of PHP is greater then the supplied value
3434
*
35-
* Since there are a few places where we conditionally test for PHP > 5
36-
* we'll set a static variable.
37-
*
3835
* @access public
3936
* @param string
4037
* @return bool TRUE if the current version is $version or higher
@@ -470,9 +467,6 @@ function _exception_handler($severity, $message, $filepath, $line)
470467
{
471468
// We don't bother with "strict" notices since they tend to fill up
472469
// the log file with excess information that isn't normally very helpful.
473-
// For example, if you are running PHP 5 and you use version 4 style
474-
// class functions (without prefixes like "public", "private", etc.)
475-
// you'll get notices telling you that these have been deprecated.
476470
if ($severity == E_STRICT)
477471
{
478472
return;

system/core/Security.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ public function xss_clean($str, $is_image = FALSE)
385385

386386
/*
387387
* Remove disallowed Javascript in links or img tags
388-
* We used to do some version comparisons and use of stripos for PHP5,
388+
* We used to do some version comparisons and use of stripos(),
389389
* but it is dog slow compared to these simplified non-capturing
390390
* preg_match(), especially if the pattern exists in the string
391391
*/

system/helpers/file_helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function get_dir_file_info($source_dir, $top_level_only = TRUE, $_recursion = FA
238238
$source_dir = rtrim(realpath($source_dir), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;
239239
}
240240

241-
// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
241+
// Used to be foreach (scandir($source_dir, 1) as $file), but scandir() is simply not as fast
242242
while (FALSE !== ($file = readdir($fp)))
243243
{
244244
if (@is_dir($source_dir.$file) AND strncmp($file, '.', 1) !== 0 AND $top_level_only === FALSE)

system/helpers/text_helper.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -299,15 +299,6 @@ function highlight_code($str)
299299
// All the magic happens here, baby!
300300
$str = highlight_string($str, TRUE);
301301

302-
// Prior to PHP 5, the highligh function used icky <font> tags
303-
// so we'll replace them with <span> tags.
304-
305-
if (abs(PHP_VERSION) < 5)
306-
{
307-
$str = str_replace(array('<font ', '</font>'), array('<span ', '</span>'), $str);
308-
$str = preg_replace('#color="(.*?)"#', 'style="color: \\1"', $str);
309-
}
310-
311302
// Remove our artificially added PHP, and the syntax highlighting that came with it
312303
$str = preg_replace('/<span style="color: #([A-Z0-9]+)">&lt;\?php(&nbsp;| )/i', '<span style="color: #$1">', $str);
313304
$str = preg_replace('/(<span style="color: #[A-Z0-9]+">.*?)\?&gt;<\/span>\n<\/span>\n<\/code>/is', "$1</span>\n</span>\n</code>", $str);

system/language/english/ftp_lang.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
$lang['ftp_unable_to_login'] = "Unable to login to your FTP server. Please check your username and password.";
66
$lang['ftp_unable_to_makdir'] = "Unable to create the directory you have specified.";
77
$lang['ftp_unable_to_changedir'] = "Unable to change directories.";
8-
$lang['ftp_unable_to_chmod'] = "Unable to set file permissions. Please check your path. Note: This feature is only available in PHP 5 or higher.";
8+
$lang['ftp_unable_to_chmod'] = "Unable to set file permissions. Please check your path.";
99
$lang['ftp_unable_to_upload'] = "Unable to upload the specified file. Please check your path.";
1010
$lang['ftp_unable_to_download'] = "Unable to download the specified file. Please check your path.";
1111
$lang['ftp_no_source_file'] = "Unable to locate the source file. Please check your path.";

system/libraries/Ftp.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,6 @@ function chmod($path, $perm)
465465
return FALSE;
466466
}
467467

468-
// Permissions can only be set when running PHP 5
469468
if ( ! function_exists('ftp_chmod'))
470469
{
471470
if ($this->debug == TRUE)

user_guide/database/active_record.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ <h1><a name="select">&nbsp;</a>Selecting Data</h1>
7979

8080
<p>The following functions allow you to build SQL <strong>SELECT</strong> statements.</p>
8181

82-
<p><strong>Note: If you are using PHP 5 you can use method chaining for more compact syntax. This is described at the end of the page.</strong></p>
83-
8482

8583
<h2>$this->db->get();</h2>
8684

@@ -760,8 +758,6 @@ <h1><a name="chaining">&nbsp;</a>Method Chaining</h1>
760758
<br />
761759
$query = $this->db->get();</code>
762760

763-
<p class="important"><strong>Note:</strong> Method chaining only works with PHP 5.</p>
764-
765761
<p>&nbsp;</p>
766762

767763
<h1><a name="caching">&nbsp;</a>Active Record Caching</h1>

0 commit comments

Comments
 (0)