[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:05:48 UTC 2014


#27277: Php 5.2 Warning for strstr() in wp-db.php
--------------------------+-----------------------
 Reporter:  klihelp       |       Owner:  pento
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  3.9
Component:  Database      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------

Comment (by klihelp):

 From the php forum:
 - For the needle_before (first occurrance) parameter when using PHP 5.x or
 less:
 substr($haystack, 0, strpos($haystack, $needle));

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


More information about the wp-trac mailing list