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
20082026
-
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"…
comment by kichik · 2020-03-02 · in I found and fixed a bug in PHP's standard library -
…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
comment by glofish · 2020-03-01 · in I found and fixed a bug in PHP's standard library -
…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 -
The commit that fixes it: https://github.com/php/php-src/commit/ab061f95ca966731b1c84c...
comment by orf · 2019-10-27 · in PHP-FPM remote code execution bug exploited in the wild -
re2c is used by PHP: https://externals.io/message/102796 https://github.com/php/php-src/blob/master/Zend/zend_languag...
comment by openbasic · 2019-03-01 · in Re2c: A free and open-source lexer generator for C and C++ -
…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... .
comment by jcelerier · 2018-11-19 · in Bisected: The Unfortunate Reason Linux 4.20 Is Running Slower -
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 -
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 -
…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 -
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 -
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) -
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 -
…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 -
…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 -
…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 -
…comment below. The arguments against Exceptions began in the comments on the relevant pull request: https://github.com/php/php-src/pull/1397
comment by sarciszewski · 2015-07-24 · in A call to PHP's mt_rand generates only odd numbers -
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 -
…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 -
…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 -
…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 -
…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? -
…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"
comment by ck2 · 2014-07-15 · in PHP 5.7 now nearly twice as fast as PHP 5.6 -
…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 -
…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 -
…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
comment by kodablah · 2014-02-19 · in PH7 – An Embedded Implementation of PHP (C Library) -
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.
comment by nubs · 2014-02-17 · in List of possible changes, updates, additions for PHP 6 -
…[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 -
…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 -
…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
comment by lonnyk · 2013-06-20 · in PHP 5.5 released and other things PHP related -
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…
comment by iso8859-1 · 2013-06-20 · in PHP 5.5 released and other things PHP related -
Here's the news: https://github.com/php/php-src/blob/php-5.5.0/NEWS
comment by dave1010uk · 2013-06-20 -
…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...
comment by dutchbrit · 2013-05-24 · in Stop Validating Email Addresses With Your Complex Regex -
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 -
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 -
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 -
…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 -
…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 -
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 -
…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 -
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 -
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.
comment by ihsw · 2012-07-27 · in How to add a new syntactic feature to PHP -
…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…
comment by vstm · 2012-07-06 · in Not a bug: phpversion('extension_name') returns false -
…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 -
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…
comment by 0x0 · 2012-05-03 · in New PHP Vulnerability:?-s may expose source code for mod_cgi -
There is already a github mirror: https://github.com/php/php-src
comment by stoph · 2011-09-07 · in PHP will switch to git -
Well what project would he fork? The (apparently) official PHP mirror is way out of date: https://github.com/php/php-src
comment by mattyb · 2011-06-10 · in PHP Hacking aka trying to push PHP internals forwards