Doc #60002 [Opn->Csd]: kobrasrealm@gmail.com

From: Date: Wed, 29 Jun 2011 02:17:34 +0000
Subject: Doc #60002 [Opn->Csd]: kobrasrealm@gmail.com
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6752@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60002&edit=1 ID: 60002 User updated by: kobrasrealm at gmail dot com Reported by: kobrasrealm at gmail dot com -Summary: Missing info +Summary: kobrasrealm@gmail.com -Status: Open +Status: Closed Type: Documentation Problem Package: Website problem -PHP Version: Irrelevant +PHP Version: 5.3.4 Block user comment: N Private report: N New Comment: Oh man, I had the arguments in reverse order. Not my brightest moment. Previous Comments: ------------------------------------------------------------------------ [2011-06-28 22:10:09] kobrasrealm at gmail dot com Description: ------------ For whatever reason, this returns bool(false). It shouldn't. Test script: --------------- <?php $x = strpos("#VOTEBOX#", "<div class=\"content\"> <h1>#TITLE#</h1> <div class=\"contentinfo\"> <table class=\"nosize\" style=\"margin-right: 0px; width: 100%;\"> <tr><td> #AUTH_AVATAR# Posted by #AUTH_PROFLINK# on: #DATE#<br> Posted in: <span class=\"contentcat\">#CATEGORY#</span><br> Tags: #TAGS# </td><td style=\"text-align: right; margin-right: 0px; width: 500px;\" align=\"right\"> #VOTEBOX# </td></tr> </table> </div> </div>"); var_dump($x); ?> Expected result: ---------------- int(376) Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60002&edit=1

« previous php.doc.bugs (#6752) next »