Opened 11 years ago
Closed 11 years ago
#27277 closed defect (bug) (fixed)
Php 5.2 Warning for strstr() in wp-db.php
Reported by: | klihelp | Owned by: | pento |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | 3.9 |
Component: | Database | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Warning: Wrong parameter count for strstr() in /var/www/wp-includes/wp-db.php on line 1319
Input was $host = "mysql01.myhostcp.com:3306";
Line 1319
$host = strstr( $host, ':', true );
In strstr() the third parameter was added in PHP 5.3.0:
http://uk1.php.net/strstr
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
From the php forum:
substr($haystack, 0, strpos($haystack, $needle));