| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2009-10-14 19:44 UTC] uw@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 15:00:01 2025 UTC | 
Description: ------------ This bug's PHP Version is set to 5.2.11 but that's not true. I cannot upgrade my version from 5.2.6 at the moment. Sorry about this. I was trying to prepare a statement where a field name had a "-" and it was returning (boolean)FALSE. As soon as I updated my database field "e-mail" to "email", and changed my statement to match the field again, it worked like a charm. Reproduce code: --------------- <?php $mysqli = new mysqli('localhost','root','pass'); $mysqli->select_db('test'); $query = "INSERT INTO dummy ( name, e-mail, title, text) VALUES ( ?, ?, ?, ?)"; var_dump($mysqli->prepare($query)); ?> Expected result: ---------------- object(mysqli_stmt) Actual result: -------------- false(boolean)