php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55057 Missing info
Submitted: 2011-06-28 22:10 UTC Modified: 2011-06-28 22:20 UTC
From: kobrasrealm at gmail dot com Assigned:
Status: Not a bug Package: Website problem
PHP Version: 5.3.4 OS:
Private report: No CVE-ID: None
 [2011-06-28 22:10 UTC] 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-06-28 22:17 UTC] kobrasrealm at gmail dot com
-Summary: Missing info +Summary: kobrasrealm@gmail.com -Status: Open +Status: Closed -PHP Version: Irrelevant +PHP Version: 5.3.4
 [2011-06-28 22:17 UTC] kobrasrealm at gmail dot com
Oh man, I had the arguments in reverse order. Not my brightest moment.
 [2011-06-28 22:20 UTC] felipe@php.net
-Summary: kobrasrealm@gmail.com +Summary: Missing info -Status: Closed +Status: Bogus
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 23:01:29 2024 UTC