FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » Differences in the definition of a string.
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Differences in the definition of a string. [message #13756] Mon, 27 October 2003 02:57 Go to next message
Xodnizel   United States
Messages: 73
Registered: May 2003
Karma: 0
Member
I'm wondering if anyone has run into any security problems due to the different methods of storing strings. Here is an example of my point:

$fooball="127.0.0.1\0Yay";
echo(ip2long($fooball));
echo("<br>");
echo($fooball);

Output(inet_addr, which ip2long users, only sees 127.0.0.1, so it succeeds):

2130706433
127.0.0.1 Yay
Re: Differences in the definition of a string. [message #13757 is a reply to message #13756] Mon, 27 October 2003 06:02 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Fixed in CVS.


FUDforum Core Developer
Re: Differences in the definition of a string. [message #16506 is a reply to message #13756] Tue, 03 February 2004 13:59 Go to previous messageGo to next message
alansmith is currently offline  alansmith   United Kingdom
Messages: 49
Registered: February 2004
Location: Seaton Devon
Karma: 0
Member
Hmm, it dosent work like this for me.
Re: Differences in the definition of a string. [message #16511 is a reply to message #16506] Tue, 03 February 2004 15:41 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
What do you mean?

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Brain deadness of PHP
Next Topic: php
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 13:41:50 GMT 2024

Total time taken to generate the page: 0.02726 seconds