[wp-trac] [WordPress Trac] #27277: Php 5.2 Warning for strstr() in wp-db.php

WordPress Trac noreply at wordpress.org
Wed Mar 5 13:01:40 UTC 2014


#27277: Php 5.2 Warning for strstr() in wp-db.php
--------------------------+-----------------------------
 Reporter:  klihelp       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Database      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 > 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

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27277>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list