Skip to content

Instantly share code, notes, and snippets.

@jameshartig
Forked from skyler/gist:735517
Created December 9, 2010 23:55

Revisions

  1. jameshartig revised this gist Dec 9, 2010. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions gistfile1.php
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,6 @@
    $mobileID = 0;
    if ($mobileID == 'beta') {
    if ((string)$mobileID == 'beta') {
    error_log("shit bricks: " . $mobileID);
    }
    ...
    php test.php
    shit bricks: 0
    php test.php
  2. skyler created this gist Dec 9, 2010.
    7 changes: 7 additions & 0 deletions gistfile1.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    $mobileID = 0;
    if ($mobileID == 'beta') {
    error_log("shit bricks: " . $mobileID);
    }
    ...
    php test.php
    shit bricks: 0