note 62781 added to function.simplexml-load-file

From: Date: Thu, 09 Mar 2006 13:21:23 +0000
Subject: note 62781 added to function.simplexml-load-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-105137@lists.php.net to get a copy of this message
Be careful if you are using simplexml data directly to feed your MySQL database using MYSQLi and bind parameters. The data coming from simplexml are Objects and the bind parameters functions of MySQLi do NOT like that! (it causes some memory leak and can crash Apache/PHP) In order to do this properly you MUST cast your values to the right type (string, integer...) before passing them to the binding methods of MySQLi. I did not find that in the documentation and it caused me a lot of headache. ---- Server IP: 82.146.33.222 Probable Submitter: 80.88.34.52 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.simplexml-load-file.php Edit -- http://master.php.net/note/edit/62781 Del: integrated -- http://master.php.net/note/delete/62781/integrated Del: useless -- http://master.php.net/note/delete/62781/useless Del: bad code -- http://master.php.net/note/delete/62781/bad+code Del: spam -- http://master.php.net/note/delete/62781/spam Del: non-english -- http://master.php.net/note/delete/62781/non-english Del: in docs -- http://master.php.net/note/delete/62781/in+docs Del: other reasons-- http://master.php.net/note/delete/62781 Reject -- http://master.php.net/note/reject/62781 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#105137) next »