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. 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"…
  2. …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
  3. …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
  4. The commit that fixes it: https://github.com/php/php-src/commit/ab061f95ca966731b1c84c...
  5. re2c is used by PHP: https://externals.io/message/102796 https://github.com/php/php-src/blob/master/Zend/zend_languag...
  6. …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... .
  7. 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
  8. 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
  9. …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
  10. 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
  11. 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)
  12. 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
  13. …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
  14. …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
  15. …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
  16. …comment below. The arguments against Exceptions began in the comments on the relevant pull request: https://github.com/php/php-src/pull/1397
  17. 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
  18. …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
  19. …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
  20. …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
  21. …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?
  22. …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"
  23. …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
  24. …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
  25. …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
  26. 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.
  27. …[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
  28. …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
  29. …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
  30. 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…
  31. Here's the news: https://github.com/php/php-src/blob/php-5.5.0/NEWS
    comment by dave1010uk · 2013-06-20
  32. …that use PHP, use the following: filter_var($email, FILTER_VALIDATE_EMAIL); Regex from the source: https://github.com/php/php-src/blob/master/ext/filter/logica...
  33. For others who were curious, I tracked down that PHP pull request: https://github.com/php/php-src/pull/132
    comment by yahelc · 2013-04-06 · in My Code made it to a Hollywood Movie
  34. Change log: https://github.com/php/php-src/blob/php-5.5.0beta1/NEWS
    comment by Jeremy1026 · 2013-03-22 · in PHP 5.5.0 beta1 Release
  35. Here's what's going on behind the scenes in PHP: https://gist.github.com/4372596 (Taken from https://github.com/php/php-src/blob/PHP-5.4.9/ext/standard/s... )
    comment by carbocation · 2012-12-25 · in Python alternatives for PHP functions
  36. …emails in PHP, use the following code: filter_var($email, FILTER_VALIDATE_EMAIL); The actual beast: https://github.com/php/php-src/blob/master/ext/filter/logica...
    comment by dutchbrit · 2012-11-30 · in Valid Email Addresses
  37. …in PHP that validates emails. filter_var('foo@bar.com', FILTER_VALIDATE_EMAIL); The actual beast: https://github.com/php/php-src/blob/master/ext/filter/logica...
    comment by dutchbrit · 2012-11-16 · in Regexp-based RFC822 email address validation
  38. This is the closest thing, I guess: https://github.com/php/php-src/blob/PHP-5.5/UPGRADING
    comment by indeyets · 2012-11-16 · in PHP 5.5.0 Alpha1 Released
  39. …for this story. At any rate, here is a pull request for PHP which attempts to address the issue: https://github.com/php/php-src/pull/221
    comment by zippie · 2012-10-25 · in The most dangerous code in the world
  40. My conclusion: count() is horribly slow. Always precalculate it, if possible. https://github.com/php/php-src/blob/master/ext/standard/arra... In PHP they actually check the length of an array at every invocation of count(). As far as I can…
    comment by program · 2012-10-18 · in PHP Performance Benchmarks
  41. PHP is not on Github, the project on Github is simply a mirror. http://git.php.net/ https://github.com/php/php-src EDIT: They are receptive pull requests, though.
  42. …from the modules "zend_module_entry" struct. Now if you look at, for example, the bz2 extension: https://github.com/php/php-src/blob/master/ext/bz2/bz2.c You see that NO_VERSION_YET (NULL) is set in the version field of the struct (line…
  43. …off switching or contributing to another language then they would be trying to re-invent PHP. [1]: https://github.com/php/php-src/graphs/code-frequency
    comment by birken · 2012-06-29 · in PHP Addiction
  44. Here is the fix that was applied: https://github.com/php/php-src/commit/55869a95ab75c0eb99c572... If the first char in the query string is "-" and the query string also contains "=", it skips cmdline argument option parsing. Maybe it is…
  45. There is already a github mirror: https://github.com/php/php-src
    comment by stoph · 2011-09-07 · in PHP will switch to git
  46. Well what project would he fork? The (apparently) official PHP mirror is way out of date: https://github.com/php/php-src