OK, great! Clicking the main page[1], see the top of README: "build error". Wait, what? You just released it, it should definitely work! Clicking that icon[2], checking the failed build[3]: ERROR: no certificate subject alternative name matches requested host name `pear.php.net'. To connect to pear.php.net insecurely, use `--no-check-certificate'. Really? See what's in http://pear.php.net/ > The server running pear.p…
PHP 7 Released
161–170 of 317 posts
Re: PHP 7 Released
#162Why do they keep adding global functions like "intdiv"? For example in JS, it being another language with a similar compatibility burden, they are moving most of the global functions (like parseInt) to "namespaces" (like Number.parseInt) while keeping global references there. When I open the docs (for example, the array functions page[1]), I get frightened by the global functions which do not seem to share a naming c…
All the existing math functions are global. If you add a new one, it's only fitting that it is global too. Having one and only one math function namespaced would be inconsistent.
Also, with the functions in the global namespace you can implement a namespaced copy that takes precedence within the namespace and its children. It can easily confuse people, but I've seen it used to force people away from string functions to their multibyte equivalents (it threw exceptions).
Re: PHP 7 Released
#163Earlier quoted context omitted.
Is phptherightway up to date? I only ask as scanning it I see that it recommends IIS7 for production PHP on windows servers. Which I believe you could only get using an unpatched windows 2008 server?
I work for a shared hoster and can confirm that PHP works great on IIS6 (with FastCGI add-on installed) and IIS7+.
If you need to run your production system on Windows then IIS7 will give you the most stable and best performance.
So it seems to be recommending IIS7 specifically, IIS 7.5, IIS 8 and IIS 8.5 have come out since then. So it is a bit like saying you should run this software on windows vista for best performance. IIS7 is old software.
I guess I'm asking, have the IIS team given up on PHP performance or is this recommendation really out of date.
Re: PHP 7 Released
#164Re: PHP 7 Released
#165PHP 7 makes life a lot better for PHP devs in many ways but one awesome thing is it obsoletes bunch of out-of-date tutorials by finally removing the old Mysql extension \o/ http://php.net/manual/en/migration70.removed-exts-sapis.php I actually met a young aspiring web developer who still learned DB-access with mysql_* functions. I urged him to switch to a sane framework like Laravel. Oh boy he was happy in a month an…
aspiring web developer Did he already know javascript? if not, why didn't you point him to that instead?
He had already started building something based on old PHP tutorials, what could be more useful if he has some small site to build:
A. Tell there's a nicer and easier way to do it in PHP with well thought framework B. Tell server JS is so awesome (and all the cool kids are using:), you just need to start completely from the beginning
Introducing things gradually can help a lot and lessen the frustration. Nowadays he's really into Vue and React but still likes to handle backends with Laravel :)
Also learning is one of those things that helps if the learning stuff isn't too far away from the skills you already have. Introducing too much at the same time makes learning more frustrating - especially if you want to get something finished instead of trying to multiple ways of doing the same thing.
Re: PHP 7 Released
#166Probably one of the biggest releases since 5 in my opinion. Scalar and return type declarations being added in are a couple of massive additions. For a language that used to cop a lot of flak, PHP sure has grown to become a mature and quite decent language.
by copying all the python features :D
Re: PHP 7 Released
#167Earlier quoted context omitted.
I am an experienced programmer but I've only touched PHP a few times, years ago. What are the best books or tutorials to get an overview of modern PHP?
I think the question is why should you bother with PHP at all? It had its time in the history of the web but that time has passed, long, long ago.
If you know how to program but is bad at sysops PHP might be the choice for you since you can just install one of the many Lamp packages and used managed hosting.
But if you can set up a decent webserver on a VPS you're probably better with something else.
Re: PHP 7 Released
#168Earlier quoted context omitted.
I would rather see both teams working together for one single language :) I wrote a little about it here http://goo.gl/XFR2Xt
That will never happen.
Re: PHP 7 Released
#169Earlier quoted context omitted.
Wordpress alone runs 25%+ of all websites. PHP's time is clearly still now. I probably won't bother with PHP, but it can't hurt to keep my idea of what it's like up to date. It's only technology, no need to be fanatical about it.
To be fair, don't just down vote the parent comment because your don't like someone bashing php; it's a pretty reasonable question to ask. Most people don't actually know that php powers such a large portion of the internet, because globally there's waning interest in php ( http://www.tiobe.com/index.php/content/paperinfo/tpci/PHP.ht... ) and it's generally dreaded by developers ( http://stackoverflow.com/research/de…
Re: PHP 7 Released
#170That comment looks a bit scary if it's true :(