homepage Welcome to WebmasterWorld Guest from 54.204.67.26
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Windows XP and 2003 support dropped in PHP 5.5
PHP 5.5 released on June 20, 2013
coopster




msg:4589712
 9:48 pm on Jul 2, 2013 (gmt 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:


 

jatar_k




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

about time really, windows installs have always been sketchy

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

coopster




msg:4589937
 4:30 pm on Jul 3, 2013 (gmt 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?

coopster




msg:4589940
 4:35 pm on Jul 3, 2013 (gmt 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.

jatar_k




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

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

coopster




msg:4590291
 2:32 pm on Jul 4, 2013 (gmt 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.

coopster




msg:4590292
 2:41 pm on Jul 4, 2013 (gmt 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!

davekimble




msg:4602690
 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




msg:4603686
 10:18 pm on Aug 20, 2013 (gmt 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...]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved