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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Differences in the definition of a string. [message #13756] Sun, 26 October 2003 21:57 Go to next message
Xodnizel   United States
Messages: 73
Registered: May 2003
Karma: 0
Member
add to buddy list
ignore all messages by this user
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 01: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
add to buddy list
ignore all messages by this user
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 08: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
add to buddy list
ignore all messages by this user
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 10:41 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
What do you mean?

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

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

Current Time: Sun Dec 10 23:13:50 EST 2017

Total time taken to generate the page: 0.00672 seconds