[PHP] spl_object_hash not hashing unqiue objects BUG

2009-02-12 Thread Nick Cooper
I am having a problem with spl_object_hash() creating non unique hashes. I understand with MD5 it is possible to have the same hash for different strings but this doesn't seem like that problem. I have created a simple test below, should I report this as a bug or am I doing something wrong. PHP

Re: [PHP] Re: spl_object_hash not hashing unqiue objects BUG

2009-02-12 Thread Nick Cooper
Maas joc...@iamjochem.com: Colin Guthrie schreef: 'Twas brillig, and Jochem Maas at 12/02/09 12:47 did gyre and gimble: Colin Guthrie schreef: 'Twas brillig, and Nick Cooper at 12/02/09 11:38 did gyre and gimble: Outputs: a1: 09d264fcececf51c822c9382b40e3edf a2

Re: [PHP] A couple of questions

2009-03-16 Thread Nick Cooper
2009/3/16 Stuart stut...@gmail.com 2009/3/16 Payne pa...@magidesign.com I had a page working on my opensuse 11.0 32bit, had to upgrade to 11.1 64bit. I have two strange issues. The first my code is being display when I call the page, I looked at the logs and I don't see any errors

Re: [PHP] Tripple The Fun

2009-03-24 Thread Nick Cooper
?php echo 'won\'t it just end up as lots of echos and prints?'; ? 2009/3/24 abdulazeez alugo defati...@hotmail.com Hello guys, The list seems boring to me today so I've come up with an idea (you can call it a challenge). What if we all wrote to this thread in PHP codes. on't get the gist

Re: [PHP] Tripple The Fun

2009-03-24 Thread Nick Cooper
?php $var1 = 'defghi/ghijkl/qurstu/efghij/opqurs/stuvwx/defghi/tuvwxy/abcd/opqurs/abcde/stuvwx';$e = explode('/',$var1);for($i=0;$icount($e);$i++) {if ($i%2) {echo $e[$i]{0};} else {echo $e[$i]{(strlen($e[$i])-1)};}if (in_array($i,array(0,5,7))) {echo ' ';}} ? 2009/3/24 Marc li...@bithub.net

Re: [PHP] PHP bandwidth control

2009-04-07 Thread Nick Cooper
Sorry to side track the issue, but when did this happen to you on GoDaddy? I have never experienced this problem. I have been using them for two years and I often leave domains in the checkout and come back sometimes days later and they're still $7.95. 2009/4/7 Michael Kubler mdk...@gmail.com

Re: [PHP] $_GET verses $_POST

2009-04-14 Thread Nick Cooper
$_REQUEST is not any less secure then $_POST/$_GET/$_COOKIE, they all contain raw user data. The way $_REQUEST is being used in this example is not less secure then using $_GET. It does open up an exploit but this is not because $_REQUEST is less secure. The same exploit exists with $_GET, I

Re: [PHP] Re: PHP 5.3.0 Released!

2009-07-02 Thread Nick Cooper
Does anyone have any further information on the PECL Binaries for 5.3, will they be released? 2009/6/30 pan p...@syix.com Lukas Kahwe Smith wrote: Hello! The PHP Development Team would like to announce the immediate release of PHP 5.3.0. This release is a major improvement in the 5.X

[PHP] PHP String convention

2009-10-28 Thread Nick Cooper
Hi, I was just wondering what the difference/advantage of these two methods of writing a string are: 1) $string = foo{$bar}; 2) $string = 'foo'.$bar; I always use method 2 but have been noticing method 1 more and more in source code. Is this just user preference? I would use a generic search

Re: [PHP] PHP String convention

2009-10-28 Thread Nick Cooper
2009/10/28 Jim Lucas: Nick Cooper wrote: Hi, I was just wondering what the difference/advantage of these two methods of writing a string are: 1) $string = foo{$bar}; 2) $string = 'foo'.$bar; I always use method 2 but have been noticing method 1 more and more in source code