From: Richard Quadling on 25 Aug 2010 12:34 Hi. I'm getting an odd crash using php 5.3.4-dev (own build). The following code is a reduced example from code that works quite happily on PHP 5.3.3 (official build). <?php // The string literal on the following line is a single byte character of 0x00 in single quotes. echo ord(' '); ?> On my build, if I use ... php -f badnull.php I get what looks like a dump of some memory ... ÃââµÃâÃÃâÃâèÃûµÃöÃüÃþæâµÃâµÃ«µâáþæ®þëõâõâáÃü«µÃâ¤Ãüõ¢ªµâ¼þûµâ£Â®ÃüºµÃ¼µò«µñáÃüâÃüõÃâµÃ«µò¼µêáþæâ£ÃüõÃúþëõìõòâ¤ÃüâµÃ»ÃÃáÃü©ÃÃâµâ£Â®Ã¾Ã®Ã¡Âµâ£Â®ÂµâºÃüÃþòâþæ»þìÃÃâ¤Â«ÂµÃ¶Ã¨ÂµÃúÃü»þë»ÃÃñ'ÃñºÃâ¤â Remove the comment and the output is ... ÃââµÃâÃÃâµöèµÃúÃü»þë»ÃÃñ'ÃñºÃâ¤â If I run it ... php -n -f badnull.php I get a crash in PHP5.dll If anyone can quickly run the same script. PD9waHANCmVjaG8gb3JkKCcAJyk7DQo= As I don't know how else to get the 0x00 in to the email, the above is a base64 of the code without the comment. The real code is holding character bitmaps in strings in an array and is used to create big headings ... ############################################################ # ©©© # # ©© # # ©©©©© ©© ©©©© ©©©© ©© ©©© # # ©© ©© ©© ©© ©© ©© ©© ©© # # ©©©© ©© ©©©©©© ©©©©©© ©© ©© # # ©© ©© ©© ©© ©©©©© # # ©©©©© ©©©© ©©©© ©©©© ©© # # ©©©©©©©©©©©©©©©© ©©©© # ############################################################ ######################### __sleep ########################## ############################################################ public function __sleep() { return array('a_ColumnMap', 's_File'); } (which looks a mess with a proportional font). Thanks to anyone who tries this. Hopefully it is just me, but you never know ... Regards, Richard.
|
Pages: 1 Prev: two questions on serverside validation Next: Unstoppable Script Execution |