note 96468 added to language.oop5.serialization

From: Date: Mon, 01 Mar 2010 03:53:18 +0000
Subject: note 96468 added to language.oop5.serialization
Groups: php.notes 
Request: Send a blank email to php-notes+get-166456@lists.php.net to get a copy of this message
wbcarts, your example code looks a lot like a manual implementation of a single-class-to-database object mapping. It isn't serialization. It's an alternative. Also, as-is, your SQL is vulnerable to SQL injection if you haven't carefully sanitized and escape-proofed all untrusted data. Watch out! ---- Server IP: 69.147.83.197 Probable Submitter: 209.33.249.135 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.serialization.php Edit -- https://master.php.net/note/edit/96468 Del: integrated -- https://master.php.net/note/delete/96468/integrated Del: useless -- https://master.php.net/note/delete/96468/useless Del: bad code -- https://master.php.net/note/delete/96468/bad+code Del: spam -- https://master.php.net/note/delete/96468/spam Del: non-english -- https://master.php.net/note/delete/96468/non-english Del: in docs -- https://master.php.net/note/delete/96468/in+docs Del: other reasons-- https://master.php.net/note/delete/96468 Reject -- https://master.php.net/note/reject/96468 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#166456) next »