PHP
PHP is a popular general-purpose scripting language that's particularly suited for server-side web development. PHP runtime is generally executed by webpage content, and can be added to HTML and HTML5 webpages. PHP was originally developed in 1994 by Rasmus Lerdorf.
Here are 59,211 public repositories matching this topic...
-
Updated
Feb 3, 2020
Users often execute composer install with a different version of PHP than the version they execute the resulting code with. This can of course lead to problems and it would help if the generated autoloader verified a compatible PHP version is actually used. This is based on the idea implemented in flex: symfony/flex#576
Using either https://github.com/composer/semver/iss
Docs using Sphinx should be build in a Python container and then copied over to a fresh nginx container to serve the docs, no PHP needed here.
Problem Description: No instruction of how to contribute in readme.rst. First time users will probably want to see information of how to contribute (which includes how to set up environment, communicate, and submit changes, etc.).
Solution Description: Add a contributing section in readme.rst with general contributing information, and include a link to file "contributing.md" (https://github.com
HHVM is missing some SODIUM_CRYPTO_GENERICHASH_* constants.
see : https://www.php.net/manual/en/sodium.constants.php
the missing constants :
const int SODIUM_CRYPTO_GENERICHASH_BYTES = 32;const int SODIUM_CRYPTO_GENERICHASH_BYTES_MAX = 64;const int SODIUM_CRYPTO_GENERICHASH_BYTES_MIN = 16;
polyfill : https://github.com/nuxed/crypto/blob/master/src/Nuxed/Crypto/_Private
| Q | A |
|---|---|
| PHPUnit version | master, 8.3 branch |
| PHP version | 7.3.8 from MAMP |
| Installation Method | Git |
Running all tests using this command (as explained in tests/README.md works fine (i.e., no failures or errors):
./phpunit --testdox --colors=always --verboseHowever, if I run the basic tests only
We often get questions asked on Stack Overflow about sending mail and returning the response as JSON to a javascript function, including meaningful errors. For the experienced, it's easy to see how to separate these things into its separate parts, but it's hard for beginners, so we could do with an example they can use as a reference.
I'd recommend starting with one of the existing examples (su
I am a bit confused by the usage of shell_exec in Matomo and can't find any docs for it.
- https://matomo.org/docs/requirements/ doesn't mention that it is required
- In the few places I checked there is often a
if (!function_exists('shell_exec')) {indicating that is only recommended, but not required - There are no docs explaining what Matomo needs shell_exec for (or even what it is and
There should be documentation for the $Block & $Line variabels and $Block['element'] and what the diffrent input are used for, e.g Type or Name
When creating a page 'changelog' as follows:
pages
├── 01.home
│ └── default.md
└── 02.changelog
└── default.md
with the following route alias in the header to add the '.md' extension:
routes:
aliases:
- '/changelog.md'
And when accessing the page using the url localhost/changelog.md, a 'Forbidden' error will be thrown.
When the file 'CHANGELOG.md' in
-
Updated
Feb 3, 2020 - JavaScript
-
Updated
Feb 3, 2020 - PHP
When executing getMimeType of an m3u8 file 'text/plain' is returned.
The correct mimetype should be 'application/x-mpegURL' can it be corrected?
Maybe adding text/plain to the "not so sure" in_array check.
// League\Flysystem\Adapter\Local.php:322 getMimetype
if (in_array($mimetype, ['application/octet-stream', 'inode/x-empty', 'application/x-empty'])) {Under the 'Theme' settings tab you can upload images. It would be great if vector images can be added so it can scale without causing artifacts.
-
Updated
Feb 3, 2020 - PHP
Currently the first parameter $base is a string that could be: top-left (default), bottom-right or transparent as the doc: trim().
There some way to trim by color? In my case, I need trim transparent and/or white color, only. Eg.: trim([ 'transparent', 'white', '#FF0000']) to trim transparent, white and red. The problem is that first parameter
Describe the bug
Model with a field called "container" will throw an exception on serialize
To Reproduce
CREATE TABLE test (
id int(10) unsigned NOT NULL AUTO_INCREMENT,
container varchar(64) DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB
and use phalcon dev tools to create a model of this table
create an instance of the model and serialize
im seeing erro
Hi,
I'm currently having problems to store the optimized byte sequence to my postgres database. I keep getting the error SQLSTATE[22021]: Character not in repertoire: 7 ERROR: invalid byte sequence for encoding "UTF8": 0xe7 0x87 0xf3
I've followed the guide and used the OrderedTimeCodec in my uuid factory.
My database tabl
Actual behaviour
Getting reppeatedly below errors in log :
{
"reqId": "qStsHNXpUsBjPWyODopP",
"level": 3,
"time": "2020-01-22T00:07:28+01:00",
"remoteAddr": "",
"user": "--",
"app": "PHP",
"method": "",
"url": "--",
"message": "Trying to access array offset on value of type bool at /var/www/nextcloud/apps/files_versions/lib/Storage.php#654",
"userAgent":
OctoberCMS Build: v1.0.462
validation.php lacks translation for the "extensions" rule which is used by FileUpload widget:
https://github.com/octobercms/october/blob/master/modules/backend/formwidgets/FileUpload.php#L435
I'm not good in English, so it's better to have it fixed by someone else. Thanks
Describe the bug
I visit /journal and little contact images are missing. Contacts have working avatars, changing them does not make them appear in Journal. Images from /journal/entries where the frontend is fetching entries from are just fine, I can open object.attendees[].avatar.url in browser just fine.
Screenshots
**Wh
When learning how to use mocker I came across this paragraph on this page:
When creating a test double object, we can pass in an identifier as a name for our test double. If we pass it no identifier, the test double name will be unknown. Furthermore, the identifier must not be a class name. It i


Description
When we want to configure an option in OptionsResolver, we have a code like this one:
We have to duplicate option name and call 4 or 5 methods for each option to configure.
With only one option, it's reada