php-src
php-src copied to clipboard
The PHP Interpreter
### Description The following code: ```php
### Description The following code: ```php format([new \DateTimeImmutable])); $formatter = new \MessageFormatter('en_US', '{0}'); var_dump($formatter->format(['test'])); ``` Resulted in this output: ``` string(8) " 2021-51" string(4) "test" ``` But I expected this...
### Description I tried to start the built-in web server, but I mistyped the address and then the PHP cli printed HTML tags in the terminal. ```diff - php -S...
### Description The following code: ```php $name = $value; } } $obj = new Foo(); $obj->test = 'test'; ``` Resulted in this output: ``` Deprecated: Creation of dynamic property Foo::$test...
### Description The following code: ```php
### Description The following code: ```php getProperties(ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_PROTECTED); var_dump(count($ps)); foreach($ps as $p) { var_dump($p->name); var_dump($p->getType()); } ``` Resulted in this output: ``` int(0) ``` But I expected this output...
### Description The following code: ```php ce_flags & ZEND_ACC_INTERFACE) { return "interface"; + } else if (ce->ce_flags & ZEND_ACC_ENUM) { + return "enum"; } else { return "class"; } diff...
### Description Unit test ext/openssl/tests/openssl_x509_checkpurpose_basic.phpt fails. Diff file is: -- int(-1) int(-1) int(-1) 036- bool(true) 037- bool(true) 038- bool(true) 039- bool(true) 040- bool(true) 041- bool(true) 042- bool(true) 036+ bool(false) 037+...
### Description Currently one can only pass a float (C) from the PHP's float, which is a double. When using a lot of floats with C libraries, this means that...
### Description It is dangerous to store certificates and privateKeys (without a password) on the disk. Unfortunately, this is needed to load the * .p12 file into stream_context_create. Please, add...