php-src
php-src copied to clipboard
The PHP Interpreter
### Description Hi! I'm also not sure it's a bug, but documentation says: `FFI::cast() creates a new FFI\CData object, that references the same C data structure, but is associated with...
### Description The following code or in general any public api like spotify, twitter that sends a response with redirect url: ```
### Description The following code: ```php
### Description The following code: ```php getProperties()[0]->getDocComment()); var_dump($reflectionClass->getProperties()[1]->getDocComment()); var_dump($reflectionClass->getReflectionConstants()[0]->getDocComment()); var_dump($reflectionClass->getReflectionConstants()[1]->getDocComment()); var_dump($reflectionClass->getReflectionConstants()[2]->getDocComment()); ``` Resulted in this output: ``` bool(false) bool(false) string(30) "/** Description about Case. */" bool(false) string(18) "/** @var string...
Vulnerability due to insecure default values for session.cookie_secure and session.cookie_httponly
### Description Dear colleagues, it seems that the default values for the SECURE and HTTPONLY flags of cookies, **especially** for the PHP session cookie, (PHPSESSID) are not set to true....
### Description Building with `--enable-litespeed` on risv64 fails with ``` /usr/lib/gcc/riscv64-alpine-linux-musl/10.3.1/../../../../riscv64-alpine-linux-musl/bin/ld: sapi/litespeed/.libs/lsapilib.o: in function `lsapi_close_connection': /home/buildozer/aports/community/php7/src/php-7.4.20/sapi/litespeed/lsapilib.c:438: undefined reference to `__sync_lock_test_and_set_1' /usr/lib/gcc/riscv64-alpine-linux-musl/10.3.1/../../../../riscv64-alpine-linux-musl/bin/ld: sapi/litespeed/.libs/lsapilib.o: in function `LSAPI_Prefork_Accept_r': /home/buildozer/aports/community/php7/src/php-7.4.20/sapi/litespeed/lsapilib.c:3572: undefined reference to `__sync_lock_test_and_set_1'...
### Description I don't know how to recreate the problem. it occurs on our production server, sporadically. 6x in past 4 days. never happened on old server (Windows 2012 R2)...
### Description The following code: ```php 'Orange', 1 => 'Apple', 2 => 'Banana', 3 => 'Monkey']; $result = preg_match_all('aeiou{0,', 'ou', $matches); var_dump($result); var_dump($matches); $result = preg_match('aeiou{0,', 'ou', $matches); var_dump($result); var_dump($matches);...
### Description `print_r` (and any function calling `__debugInfo()`) should not produce a fatal error, it should generate an `\Error` exception instead demo https://3v4l.org/YTfSl
### Description The following code: ```php