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
Return to the default flat view Create a new topic Submit Reply
Differences in the definition of a string. [message #13756] Mon, 27 October 2003 02:57 Go to previous message
Xodnizel   United States
Messages: 73
Registered: May 2003
Karma:
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Brain deadness of PHP
Next Topic: php
Goto Forum:
  

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

Current Time: Wed Dec 11 21:23:40 GMT 2024

Total time taken to generate the page: 0.05845 seconds