php-src
php-src copied to clipboard
The PHP Interpreter
### Description Following code: https://3v4l.org/MKPpJ ```php
### Description The following code: ```php
### Description The following code with a 3 line csv file: ```php setFlags(\SplFileObject::READ_CSV); $file->seek(PHP_INT_MAX); $count = $file->key(); print "COUNT OF LINES (seek) : {$count}\n"; $file->rewind(); while ($file->valid()) { $file->fgets(); }...
### Description When a non-backed enum is part of the data given to `json_encode()`, an integer error code (`11`) will be generated that is not currently available via `JSON_ERROR_*` constants....
### Description The following code: ```php RewriteEngine On RewriteCond %{REQUEST_FILEaNAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ index.php [QSA,L] Script POST "index.php" Script PUT "index.php" php_value enable_post_data_reading Off ``` Resulted in...
### Description I use PHP 7.4.28, but I do not expect that the described problem has changed in newer versions. I run PHP-FPM in chrooted environment. That environment had no...
### Description This code is simply a combination of [Mozilla Server-Sent Events Example](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events) and [PHP proc_open() Example](https://www.php.net/manual/en/function.proc-open.php), which make the browser receive the output of a command in real-time. The...
Allow to show_source and highlight_file method to highlight a specific line with a different pattern
### Description Allow to show_source and highlight_file method to highlight a specific line with a different pattern. then when an error occurs I have my custom methods to capture them...
### Description The following code: ```php $sql = 'SELECT CLIENT.NAME,SUM(X.TOTAL) FROM SALES X WHERE X.CODCLI = SALES.CODCLI) AS TOTAL FROM CLIENT WHERE CLIENT.CODCLI