Opened 13 years ago
Closed 13 years ago
#27277 closed defect (bug) (fixed)
Php 5.2 Warning for strstr() in wp-db.php
| Reported by: | klihelp | Owned by: | pento |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.9 |
| Component: | Database | Version: | 3.9 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
From the php forum:
substr($haystack, 0, strpos($haystack, $needle));