Welcome to WebmasterWorld Guest from 107.20.54.98

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

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

Administrator

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

joined:July 31, 2003
posts:12533
votes: 0


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:

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

Administrator

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

joined:July 24, 2001
posts: 15755
votes: 0


about time really, windows installs have always been sketchy

I was most interested with the hashing and empty on function returns
4:30 pm on July 3, 2013 (gmt 0)

Administrator

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

joined:July 31, 2003
posts:12533
votes: 0


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?
4:35 pm on July 3, 2013 (gmt 0)

Administrator

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

joined:July 31, 2003
posts:12533
votes: 0


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.
4:45 pm on July 3, 2013 (gmt 0)

Administrator

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

joined:July 24, 2001
posts: 15755
votes: 0


I find it interesting they are pulling that in at all, saving the noobs again I guess ;)
2:32 pm on July 4, 2013 (gmt 0)

Administrator

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

joined:July 31, 2003
posts:12533
votes: 0


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.
2:41 pm on July 4, 2013 (gmt 0)

Administrator

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

joined:July 31, 2003
posts:12533
votes: 0


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!
5:28 am on Aug 17, 2013 (gmt 0)

New User

joined:Aug 17, 2013
posts: 1
votes: 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?
10:18 pm on Aug 20, 2013 (gmt 0)

Administrator

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

joined:July 31, 2003
posts:12533
votes: 0


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...]