Hacker GitHub

← All repos

php/php-src

View on GitHub ↗ ★ 41,753 C

The PHP Interpreter

124 mentions on Hacker News by 101 people: 28 stories, 96 comments · first 2009-07-24 · latest 2026-10-29

Mentions per year 124 mentions · busiest year 2026 (21)
20082026
  1. ▲ 2
    OPCache: Direct execution opcode file without PHP source code file
    story by ZnZirconium · 2020-12-07 · 0 comments
  2. C++ with lots of extern "C" , I imagine. Two examples: https://github.com/Perl/perl5/search?q=extern https://github.com/php/php-src/search?q=extern
    comment by tyingq · 2020-11-17 · in Best aspects of C
  3. …quite out of date as PHP has switched to a tracing JIT which appears to be heavily based on LuaJIT. https://github.com/php/php-src/pull/5874 https://github.com/php/php-src/commit/4bf2d09edeb14467ba7955...
    comment by jashmatthews · 2020-08-30 · in Deep Dive into PHP 8's JIT
  4. …for an upgrade to not break something. There are dozens of breaking changes in this release alone: https://github.com/php/php-src/blob/96c7d42a3ca9d822a08b3dd4... Some of the changes are sadistic. "The precedence of the concatenation…
    comment by john-shaffer · 2020-08-14 · in What's new in PHP 8?
  5. PHP 8 has plenty of breaking changes ( https://github.com/php/php-src/blob/08e6c209550a268500bbdef4... ), mostly in the department of throwing errors more aggressively, and fixing some long-standing "features" (like 0 == "foobar" being…
    comment by nikic · 2020-07-27 · in Named arguments are coming in PHP 8
  6. …A patch to disable the use of huge pages in memory allocator fixed a 10% performance regression: https://github.com/php/php-src/commit/928c42211f737640e4dc3c... The patch to enable the Zend Optimizer on ARM64 accounts for about 5% of…
  7. Yes, they are using DynASM. https://github.com/php/php-src/blob/master/ext/opcache/jit/R...
  8. ▲ 2
    PHP – Replace all whitelist/blacklist with allowlist/blocklist
    story by gitgud · 2020-06-15 · 3 comments
  9. There's pressure to change blacklist and whitelist to blocklist and allow list too... https://github.com/php/php-src/pull/5685
  10. There was an RFC for that, but it was voted out: https://github.com/php/php-src/pull/2049
    comment by SergeAx · 2020-06-10 · in 25 Years of PHP
  11. …with new technologies. [1] https://symfony.com/blog/symfony-was-the-backend-framework-w... [2] https://github.com/php/php-src/pulse [3] https://trends.builtwith.com/framework/Laravel
    comment by s1k3s · 2020-05-05 · in A look at modern PHP
  12. …look like this [0] (imagine it all implemented in assembly, without C's types, if you prefer). [0]: https://github.com/php/php-src/blob/3709e74b5e495e210ada8039...
  13. …1 in case the header is present so strstr isn't being called an extra time in the current code. [1] https://github.com/php/php-src/commit/3d9c02364db62a6d8e2794...
  14. I was thinking the same so I checked and they removed the duplication: https://github.com/php/php-src/commit/3d9c02364db62a6d8e2794... They also fixed the whitespace handling that let something like "RandomHeader: hello host:8080"…
  15. …that they did not understand nor had a rationale for, so those behaviors were removed as well: https://github.com/php/php-src/pull/5201
  16. ▲ 2
    PHP 7.4.0 Released
    story by velmu · 2019-11-27 · 0 comments
  17. …C API. Check out [2] for a deeper understanding of how arrays are handled internally in PHP. [1]: https://github.com/php/php-src/blob/php-7.3.11/Zend/zend_typ... [2]: https://nikic.github.io/2014/12/22/PHPs-new-hashtable-implem...
    comment by capn_cabbage · 2019-11-10 · in Union Types have been accepted for PHP 8
  18. The commit that fixes it: https://github.com/php/php-src/commit/ab061f95ca966731b1c84c...
  19. re2c is used by PHP: https://externals.io/message/102796 https://github.com/php/php-src/blob/master/Zend/zend_languag...
  20. ▲ 5
    Features to be deprecated in PHP 8
    story by velmu · 2019-01-30 · 0 comments
  21. …behaviours - PHP with its plugin architecture, and CGI where all web requests go through FPs : https://github.com/php/php-src/blob/master/main/fastcgi.c#L8... .
  22. ▲ 2
    PHP – Deprecate implicit nullable parameters
    story by BafS · 2018-09-19 · 1 comment
  23. https://github.com/php/php-src/blob/php-7.3.0alpha1/NEWS
    comment by kh3dr0n · 2018-06-08 · in PHP 7.3.0 alpha 1 Released
  24. Check out https://github.com/php/php-src/blob/php-7.3.0alpha1/NEWS
    comment by muglug · 2018-06-08 · in PHP 7.3.0 alpha 1 Released
  25. …language with a decent YACC. There's already a yacc file for PHP's parser, part of the PHP runtime: https://github.com/php/php-src/blob/master/Zend/zend_languag...
    comment by johannes1234321 · 2018-03-02 · in Php-parser written in golang v0.3 is released
  26. PHP pcre is implemented in c https://github.com/php/php-src/blob/master/ext/pcre/php_pcre...
    comment by barkingcat · 2017-02-08 · in Regex: badly needs fuzzing
  27. Well, I finally wrote a patch for that: https://github.com/php/php-src/pull/2160
    comment by TazeTSchnitzel · 2016-10-13 · in Why Unicode Won’t Work on the Internet (2001)
  28. Article: http://www.viva64.com/en/b/0392/ PHP Source: https://github.com/php/php-src
    comment by PVS-Studio · 2016-04-28 · in PVS-Studio Team: Analysis of PHP7
  29. …up in development was this php7-fpm bug[1]. [0]: https://github.com/dshafik/php7-mysql-shim [1]: https://github.com/php/php-src/pull/1720
    comment by Judson · 2016-03-14 · in How Badoo Saved $1M Switching to PHP7
  30. ▲ 3
    Commit to revert to mistaken implementation of mt_rand()
    story by mt_caret · 2016-02-19 · 0 comments
  31. …CN=mail.cweiske.de for pear.php.net. I don't even know what to say.. Well, happy hacking! [1]: https://github.com/php/php-src [2]: https://travis-ci.org/php/php-src [3]: https://travis-ci.org/php/php-src/jobs/94372493
    comment by motiejus · 2015-12-02 · in PHP 7 Released
  32. …return null and you can't use it (which I'm okay with) https://wiki.php.net/rfc/nullable_types https://github.com/php/php-src/pull/1045 With this, it will permit to have even better static analysis "a la" HHVM/hack (i.e detecting that you…
    comment by allan_s · 2015-12-02 · in PHP 7 Released
  33. ▲ 449
    PHP 7 Released
    story by legierski · 2015-12-02 · 307 comments
  34. ▲ 14
    Php-7 released
    story by mustafauysal · 2015-12-01 · 0 comments
  35. ▲ 1
    PHP 7.0.0 RC1 tagged
    story by dumindunuwan · 2015-08-19 · 0 comments
  36. …comment below. The arguments against Exceptions began in the comments on the relevant pull request: https://github.com/php/php-src/pull/1397
  37. For nullable types, there's a plan/rfc to have them too https://github.com/php/php-src/pull/1045 https://wiki.php.net/rfc/nullable_types not for 7.0 but hopefully for 7.1
    comment by allan_s · 2015-04-27 · in Comparing the PHP 7 and Hack Type Systems
  38. …for an opcode. [1] - http://www2.sys-con.com/itsg/virtualcd/dotnet/archives/0103/... [2] - https://github.com/php/php-src/blob/master/Zend/zend_vm_gen....
    comment by gopalv · 2015-02-28 · in Zend PHP JIT open sourced
  39. …takes years), there should be no development targeting version that was EOLed 4 years ago. [1] https://github.com/php/php-src/blob/PHP-5.5/UPGRADING [2] https://github.com/php/php-src/blob/PHP-5.6/UPGRADING
    comment by smsm42 · 2014-12-30 · in PHP Install Statistics
  40. …should use urandom. If no where else, when the program is first executed. And if you're on Windows: https://github.com/php/php-src/blob/e6ea376a91514c59d21f4b53...
    comment by sarciszewski · 2014-12-09 · in Random in the wild
  41. …has committed multiple patches/improvements[1] to php-src as recent as PHP 5.6 Great explanation! https://github.com/php/php-src/commits?author=igorw
    comment by martin_ · 2014-09-23 · in PHP: why GOTO instead of recursion?
  42. …naming because the version file inside phpng says 5.7.0 - but that might just be a placeholder: https://github.com/php/php-src/blob/phpng/main/php_version.h #define PHP_VERSION "5.7.0-dev"
  43. …the space of URLs it can parse, but it's not difficult to cover all valid cases if you need to [2] https://github.com/php/php-src/commit/36b88d77f2a9d0ac74692a...
    comment by TazeTSchnitzel · 2014-06-22 · in In search of the perfect URL validation regex
  44. …your own litmus test. The PHPT runner that ships with PHP is actually thousands of lines long: https://github.com/php/php-src/blob/7b7d2952a606fba6a5e21998... Keep in mind that PHPT files have to be parsed in userland. The runner has to…
    comment by cool_story_bro · 2014-03-19 · in PHPUnit 4.0 Released
  45. …tests in the original implementation [1][2]. I do not see anything on http://ph7.symisc.net/ . 1 - https://github.com/php/php-src/tree/master/tests 2 - https://github.com/php/php-src/tree/master/Zend/tests
  46. There are people trying to take care of some of that already. https://github.com/php/php-src/pull/301 was at some point hoping to get into 5.6 but I don't know what happened to it since then.
  47. …[1] https://bugs.php.net/bug.php?id=54547 [2] https://bugs.php.net/bug.php?id=62097 [3] https://github.com/php/php-src/blob/PHP-5.3/Zend/zend_operat... [4] https://github.com/php/php-src/blob/5.4/Zend/zend_operators.... [5]…
    comment by DCoder · 2013-12-25 · in High Quality PHP
  48. …standard implementation. Compare https://github.com/GoogleCloudPlatform/appengine-php/tree/ma... to https://github.com/php/php-src
    comment by kodablah · 2013-12-17 · in The future of PHP, at a distance
  49. …apply to C code. Also, php-src has had coding standards that really haven't changed for years: https://github.com/php/php-src/blob/master/CODING_STANDARDS
  50. Changelog here: https://github.com/php/php-src/blob/php-5.5.0/NEWS Highlights: * Opcode cache ( https://wiki.php.net/rfc/optimizerplus ) * Generators and coroutines ( https://wiki.php.net/rfc/generators ) * "finally" keyword * Constant…