Re: Type hinting
| From: | Stas Malyshev | Date: | Thu, 03 Jun 2010 21:37:09 +0000 |
| Subject: | Re: Type hinting | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48632@lists.php.net to get a copy of this message | ||
Hi!
And remember that I was only discussing it in response to the claim that "almost all incoming data for PHP are strings." My point was that user input will be correctly typed if you validate it with PHP's bundled extension, as it is commonly recommended, and it's alsoValidation and typing are entirely different things. Many validation methods do not require or provide strict typing.
becoming increasingly easy to get correctly typed data from your database thanks to mysqlnd. Of course it doesn't mean that you won'tDid you just equate databases to mysqlnd? And the notion of "correctly typed data" only makes sense in a strictly typed language. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227