note 24108 deleted from function.crypt by jmcastagnetto

From: Date: Sun, 29 Dec 2002 07:54:58 +0000
Subject: note 24108 deleted from function.crypt by jmcastagnetto
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-41414@lists.php.net to get a copy of this message
Respect to the coment of marcin@jackowski.net, don't forget that using variable names inside double quotes causes them to be parsed, but inside single quotes variable names are not parsed, so what you're really passing to crypt in the first case is the contents of $1 followed by the contents of $somesalt, which probably are variables that do not exist and are parsed as empty variables. But in the second place, you pass $1$somesalt, not the contents of the variables. That's why it doesn't work. As joao.correia@valnetsado.pt said, it can be solved with a simple backslash before the $ inside double quotes.

« previous php.notes (#41414) next »