note 96468 deleted from language.oop5.serialization by danbrown
| From: | danbrown@php.net | Date: | Mon, 01 Mar 2010 16:00:20 +0000 |
| Subject: | note 96468 deleted from language.oop5.serialization by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-166494@lists.php.net to get a copy of this message | ||
Note Submitter: Arturo
----
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!