Odd crash.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux