Posted by David G. Paul
The people that run the PHP project have done what they said they would - they've discontinued their support for PHP 4. Just last week they released version 4.4.9 meaning that it will apparently be the last time an update is released for PHP 4. All work by the team now will be focused on PHP 5, and stabilising and adding features to PHP 6.
Fortunately the majority of web hosts have now moved over to PHP 5, but there are still some that haven't. I don't see support for PHP 4 ending as being a bad thing, I don't think it's really going to affect anyone really - even if they are still developing for 4.
continue reading this post...
Posted by David G. Paul
phpBB is arguably the most popular software for implementing forums around. Several months ago they released the third version that updated many of the features and made it far more pleasurable to work with. Now they've released their second patch for it, fixing the following issues:
- Ability to set permissions on non-mysql dbms (Bug #24955)
- Fixed blank style on setups having no username defined within config.php (Bug #25065)
- Made the compress_tar class tolerate archives that do not properly have their archived contents listed (Bug #14429)
- Moved topics should not count towards the number of topics in a forum (Bug #14648)
- Properly check for invalid characters in MySQL DB prefixes during install (Bug #18775)
- Bring the PostgreSQL backup system back to working order (Bug #22385)
- Update correct theme for cached styles in style.php (Bug #25805)
- Correctly determine safe mode for temp file creation in functions_upload.php (Bug #23525)
- Correctly sort by rank in memberlist (Bug #24435)
- Purge cache after database restore (Bug #24245)
- Correctly display subforum read/unread icons from RTL in FF3, Konqueror and Safari3+. (thanks arod-1 for the fix, related to Bug #14830)
- Added missing form token in acp
- Do not remove whitespace in front of url containing the boards url and no relative path appended (Bug #27355)
- reset forum notifications in viewtopic (Bug #28025)
- corrected link for searching post author's other posts (Bug #26455)
- HTTP Authentication supports UTF-8 usernames now (Bug #21135)
- Topic searches by author no longer return invalid results (Bug #11777)
- Delete drafts and bookmarks when deleting an user. (Bug #27585)
- Set last_post_subject for new topics. (Bug #23945)
- Allow moving posts to invisible forums. (Bug #27325)
- Don't allow promoting unapproved group members (#16124)
- Correctly fetch server name if using non-standard port (Bug #27395)
- Regular expression for email matching in posts will no longer die on long words.
- Do not display ban message if direct call to cron.
- Correctly display double-colon on special conditions within highlighted php source (Bug #26795)
- Increase storage capacity of titles/subjects due to specialchared content (Bug #25235)
- Catch invalid username wildcard ban (we do not support these) (Bug #29305)
- Fix (email)-domain checks for those having DNS prefixes set (Bug #29635)
- Adjust truncate_string() to be able to adjust the maximum storage length.
- Sort the tables at the database table backup screen
- For determining the maximum number of private messages in one box, use the biggest value from all groups the user is a member of (Bug #24665)
- Show email ban reason on registration. Additionally allow custom errors properly returned if using validate_data(). (Bug #26885)
- Don't allow redirects to different domains.
- Added optional referer validation of POST requests as additional CSRF protection.
- Added optional stricter upload validation to avoid mime sniffing in addition to the safeguards provided by file.php.
- Streamlined banning via the MCP by adding a ban link to the user profile. Also pre-fills ban fields as far as possible.
- Added ACP logout to reset an admin session.
- Only allow urls gone through redirect() being used within login_box().
So it's a pretty big update really, and although some of the changes are trivial to most users there are a few big ones there such as the additional CSRF protection that makes it a worthwhile update.
Link: phpBB 3.0.2
continue reading this post...
Posted by David G. Paul
In PHP it's probably quite common to want to import data into your database using a CSV file, or an XML file - even though phpMyAdmin is capable of doing it. As I recently found out though, this can sometimes be an issue in itself. In this particular example there was a CSV file from an unknown system that was being read in by PHP and processed but it appeared like it was only reading in the first line due to way the data was being processed. As it turned out the entire file was being read in as a single line, and since the script was using fgetcsv to read in a line of comma separated variables it turned out to be pretty obvious what was happening after using print_r on the output.
I knew that fgetcsv didn't have a parameter for specifying a line ending character so I decided to investigate what could be done to solve the problem. Eventually I found:
<?php
ini_set('auto_detect_line_endings', true);
?>
After putting that line in before reading in the file all the problems were solved and the file was read in correctly. A strange issue, but a simple solution.
continue reading this post...
Posted by David G. Paul
To fix over 120 bugs in this patch makes PHP 5.2.6 one of the biggest point releases to date.
- Fixed possible stack buffer overflow in the FastCGI SAPI identified by Andrei Nigmatulin.
- Fixed integer overflow in printf() identified by Maksymilian Aciemowicz.
- Fixed security issue detailed in CVE-2008-0599 identified by Ryan Permeh.
- Fixed a safe_mode bypass in cURL identified by Maksymilian Arciemowicz.
- Properly address incomplete multibyte chars inside escapeshellcmd() identified by Stefan Esser.
- Upgraded bundled PCRE to version 7.6
On top of that are many other bug fixes such as the implicit conversion of variables to a string leaks memory.
Link: Complete Source Code
Link: Windows Binary
continue reading this post...
- Caching your PHP sites
As your site traffic grows it takes longer and longer to generate a dynamic page from... (Read more)
- Nokia get personal with AMP
There has always been a struggle with development for mobile devices - there has never been enough interest or collaboration... (Read more)
- phpBB3 Gold released!
It's been a long time in development, but now it's finally here - phpBB3. I tried some of their... (Read more)
- Caching PHP pages
- As your site traffic grows it takes longer and longer to generate a dynamic page from sending multiple queries to... (Read more)
- Making Stylesheets load faster
This new article is on using mod_gzip or the GZIP compression support in PHP to send your CSS stylesheets as... (Read more)
- GZipping Stylesheets
- For optimal performance you should remove extra white-space from your JavaScript and from your Stylesheets, and also send it as... (Read more)