php-src
php-src copied to clipboard
The PHP Interpreter
### Description Grab one of the 8.1.2 tarballs from [php/web-php-distributions](https://github.com/php/web-php-distributions) and unpack it. `cd` into its directory. Then, run (I ran it with PHP 8.1.1, using the Phar included in...
### Description The following code: ```php prepare("select 1"); $mysqli->close(); $stmt->bind_result($a); ``` Resulted in this output: ``` AddressSanitizer:DEADLYSIGNAL ================================================================= ==9010==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000408 (pc 0x7f04d791c74c bp 0x7ffc2f1a3710 sp...
### Description The following code: ```php
### Description Using the following code to create a basic phar file: ```php $stub =
### Description Building PHP with sockets extension Related PHP change: https://github.com/php/php-src/commit/51647eb23e61d214cdeb4167fcee1e2c38924bfe Resulted in this output: ``` $ docker run --rm php:8.0.15-fpm-bullseye docker-php-ext-install sockets Configuring for: PHP Api Version: 20200930 Zend...
### Description The following code: ```php getIterator(), 0); foreach ($iterator as $item) { echo $item->format('c'), "\n"; $iterator->hasNext(); // advances iterator $iterator->hasNext(); // advances iterator } ``` It returns: ``` 2021-01-01T07:56:05+01:00...
### Description The following code: ```php t ``` But I expected this output instead: ``` DSI Chargé de Formation Jean Dupont ``` Nota: On PHP 7.2.34, result is different, but...
### Description All PHP tests on local using Unit testing etc. function correctly. However, once put into production our server started throwing thousands of the following segfault errors, and only...
### Description The following docker build: ```Dockerfile FROM php:8.1.2-cli RUN docker-php-ext-install sockets ``` Resulted in this build failure: ``` /usr/src/php/ext/sockets/sendrecvmsg.c: In function 'init_ancillary_registry': /usr/src/php/ext/sockets/sendrecvmsg.c:128:19: error: invalid application of 'sizeof' to...
### Description Why not make PHP installation easier and more friendly to novices