PHP6 haven't been released yet. But because of the majority of websites that uses PHP, once PHP6 is released, programmers would support that version.
PHP6 can break code that works on PHP4 and PHP5. The purpose of this question is to have a nice list of what PHP programmers should be aware of before PHP6 is released. This can help PHP p...
I have taken a liking to jQuery/Javascript's way of extending functionality via closures. Is it possible to do something similar in PHP 5.3?
class Foo
{
public $bar;
}
$foo = new Foo;
$foo->bar = function($baz) { echo strtoupper($baz); };
$foo->bar('lorem ipsum dolor sit amet');
// LOREM IPSUM DOLOR SIT AMET
[edit] mixed up 'it' ...
What is upcoming in the new release of PHP, and why should I care?
What problems will these improvements help to solve?
Cheers,
Edit: After posting the question I have found these links that also provide some insight.
php NEWS -
http://cvs.php.net/viewvc.cgi/php-src/NEWS?view=markup
IBM - The future of PHP -
http://www.ibm.com/develo...
Can someone explain to me what exactly is so bad about using the backslash as the namespace operator for PHP6? It's impossible to read any discussion about PHP6 these days without someone making some scoffing remark about it. One StackOverflower even said that he gave up PHP because of it.
Yes I know that backslash has special meaning a...
For those of you who don't know what's gonna happen in PHP6, here's a nice short read: http://jero.net/articles/php6
Now, if you have functions that depend on ereg and you don't have control over the php.ini file on the server that's hosting your scripts, how do you deal with that?
For instance, this function here:
function currentDat...
How do I install latest versions of PHP as Apache 2 module?
PHPIniDir directive throws error.
And what's more important, there's no php5apache2.dll file or similar in latest distributions of PHP!
Example distr php 5.3
Dmitri.
...
This are some list of changes.
http://blog.tuvinh.com/one-minute-with-php6/
http://davidwalsh.name/php6
http://www.php.net/~derick/meeting-notes.html
Why are these changes will be labeled as v6 instead of 5.5 maybe? Php 5 gave us a new OOP approach that really changed something. The biggest change is the full Unicode support, but this i...
I want you to give reasons why someone should not use the highest possible error reporting level in PHP?
Ways to set highest level:
PHP 5:
error_reporting(E_ALL | E_STRICT);
PHP 6:
error_reporting(E_ALL);
PHP all versions (as recommended for config files):
error_reporting(2147483647);
My experiences:
there is no reason for l...
I've seen a solution for not having to rework usage of the ereg function for PHP 6:
http://stackoverflow.com/questions/737198/good-alternative-to-eregi-in-php
It uses if(!function_exists....
Is there a function that can be used in this way for ereg_replace?
ereg_replace("<!--.*-->","",$str);
ereg_replace("[^a-z,A-Z]", "", $str);
Th...
So ereg won't be present in PHP6. And I don't really care, because I'm using PCRE functions. But for multibyte strings, I'm using mb_ereg_* functions. The question is: they'll be present in PHP6 in the mbstring extension, or I will have to switch to some kind of multibyte PCRE functions?
...
I looked at one of the post on SO about what will break when PHP6 is released. I have a few questions below about some of the stuff...
1)
{} for string offsets no longer available.
what does this mean?
2)
[] un-deprecated for accessing characters in a string.
what does this mean?
3)
var will be an alias of public, and raises E_ST...
A week ago there was an interesting post on the PHP-Internals list:
http://marc.info/?l=php-internals&m=125842046913842&w=2
I've been thinking for a while what we
should do about PHP6 and its future,
because right now it seems like there
isn't much future in it.
I started getting worried about the future of PHP6 quite...
PHP 6 has APC included in the core distribution, but its off by default. I have compiled from source and tried '--enable-apc' but no luck. I also tried to download and compile the APC module but it fails. How do I turn APC on in PHP 6?
...
Hello All,
Which are the deprecated things for PHP5 in PHP6?
...
Hello There,
In the minutes php6 developer meeting, i came across a point where it said that call-time-pass-by-reference is no longer there in PHP6. For example, following both are incorrect for PHP6:
<?php
$foo =& new StdClass();
?>
<?php
function &foo()
{
return new StdClass();
}
$f = foo();
?>
If we can't use something like ...
Just like the title says, what book(s) would you recommend for learning PHP6?
I know my way around PHP5 pretty well, so I don't need a "beginner" book; just one that explains what's new and maybe some general PHP "best practices."
PHP6 & MySQL 5 for Dynamic Web Sites looks ok.
So does Professional PHP6 (although the one review worries...
Hi,
I know PHP 6 will have unicode support for all build-in functions like strlen(). If this is the case, then counting the number of bytes in a variable can't be done with strlen() anymore. So, this will break probably some software? I'm curious, is the proper fix to do the following?
$bytes = strlen((binary) $var);
...
I recently saw this as the very first line of some PHP scripts in some framework, it said that it is added in because PHP 6 will support it. I am curious if anyone knows anything about this? If it does support it when PHP 6 comes out will it be optional? Any benefits of using it vs not using it?
declare(ENCODING = 'utf-8');
...
PHP5 has made a real progress, but there's still some lacks, and before all a big mess, in PHP5.
What is the feature you want the most in PHP6?
Some ideas :
method overloading in classes
variables types in method declarations (not only classes, but basic types as well)
multiple heritage
unicode
cleaning the PHP function mess
Friend c...
For instance magic_quotes_gpc has been deprecated as of PHP 5.3 but will not be removed until PHP6. In PHP6 is short_open_tag set to be removed or deprecated or neither?
Whether it's appropriate to use short_open_tag has already been debated ad nauseam - I'm really interested in the the official stance of the PHP core developers. The PH...