Welcome to WebmasterWorld Guest from 54.167.5.15

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Windows XP and 2003 support dropped in PHP 5.5

PHP 5.5 released on June 20, 2013

     

coopster

9:48 pm on Jul 2, 2013 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I think the biggest news is in the title and it impacts Windows users. You can see the rest of the changelog [php.net] and the migration guide [php.net] on the PHP site.

The key features of PHP 5.5.0 include:

jatar_k

2:24 am on Jul 3, 2013 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



about time really, windows installs have always been sketchy

I was most interested with the hashing and empty on function returns

coopster

4:30 pm on Jul 3, 2013 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



The hashing part is a bit confusing to me, unless I am misunderstanding it. Let's say I start using this function and store the hashed password in the database. Over the course of time, PHP decides to update the default hashing algo. I get a user from days of old trying to login and I compare the logged in password with the hashed algo using the new hash from the latest PHP release -- they are not going to match! Am I missing something?

coopster

4:35 pm on Jul 3, 2013 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Never mind, I see it now on the password_verify() function:

Note that password_hash() returns the algorithm, cost and salt as part of the returned hash. Therefore, all information that's needed to verify the hash is included in it. This allows the verify function to verify the hash without needing separate storage for the salt or algorithm information.

jatar_k

4:45 pm on Jul 3, 2013 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I find it interesting they are pulling that in at all, saving the noobs again I guess ;)

coopster

2:32 pm on Jul 4, 2013 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Note that the original MySQL extension is deprecated in this release:

[us1.php.net...]


ext/mysql deprecation

The original MySQL extension is now deprecated, and will generate E_DEPRECATED errors when connecting to a database. Instead, use the MySQLi or PDO_MySQL extensions.

coopster

2:41 pm on Jul 4, 2013 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



and the /e modifier for preg_replace() has also been deprecated (it's on that page too). I ran into this recently and had to write a callback instead. Although it can seem like an inconvenience at first, the changes were made for security reasons. But I did find that there is an upside in that the code is easier to read :)


// convert all UPPERCASE data to lowercase and then capitalize first
// words; also account for words after special characters
function fmtString($v)
{
return preg_replace_callback(
"/([[:^alnum:]]+)([[:alpha:]])/",
// PHP < 5.3.0
create_function('$m', 'return $m[1].strtoupper($m[2]);'),
// PHP >= 5.3.0
//function ($m) {
//return $m[1].strtoupper($m[2]);
//},
ucwords(strtolower(trim($v)))
);
}
print fmtString('HELLO WORLD!'); // Hello World!
print fmtString('hello-world!'); // Hello World!

davekimble

5:28 am on Aug 17, 2013 (gmt 0)



What exactly does "Windows XP and 2003 support dropped" mean for someone like me running Win XP?
Does it mean nobody will help if it doesn't work?
Or does it mean it won't work at all?- it doesn't seem to.
Can it be manually tuned to work?

coopster

10:18 pm on Aug 20, 2013 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



No, you will still be able to get help from developers. It means your upgrade path and security patches are over with at this release level. You can still run an older version of PHP on the OS.


Windows XP and 2003 support dropped

Support for Windows XP and 2003 has been dropped. Windows builds of PHP now require Windows Vista or newer.

[php.net...]
 

Featured Threads

Hot Threads This Week

Hot Threads This Month