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,873 public repositories matching this topic...
-
Updated
Feb 22, 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
Description
Sending empty files in a multipart POST form is a proper use case due to web browsers supporting it.
I worked on a API layer using guzzle that had to work with an existing legacy codebase and trigger some actions (a proxy of some sort). There was a case where files had to be sent with empty content and would not work if you would omit them.
Example
_Currently no implem
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
Please answer these questions before submitting your issue. Thanks!
- What did you do? If possible, provide a recipe for reproducing the error.
read Chinese and English documentation
- What did you expect to see?
I expected to find best practice for production usage
- What did you see instead?
nothing
- What version of Swoole are you using (
php --ri swoole)?
latest.
Hi there,
after spending quite some time figuring why Email sending with a certain smtp server does not work, I found its an SSL issue.
Most widely on the web the found solution is to unset some ssl checks:
$mail->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
However
In console/Controller.php we can read:
/**
* Prints a string to STDOUT.
*
* You may optionally format the string with ANSI codes by
* passing additional parameters using the constants defined in [[\yii\helpers\Console]].
*
* Example:
*
* ```
* $this->stdout('This will be red and underlined.', Console::FG_RED, Console::UNDERLINE);
I think there should be an option, and maybe it should be the default, to only show the visitor profile when a user has consented to be tracked. Considering the visitor profile can be quite "creepy" and give detailed insights, and it's more than just plain tracking. I think for user privacy perspective this change should be considered.
The name itself says it, it's more profiling than tracking.
<?php\n
\n
/**\n
* @file\n
* TODO: Enter file description here.\n
*/\n
\n
/**\n
* Implements hook_hook_info().\n
*/\n
function testmodule8b_hook_info() {\n
Gets me this:
array:1 [
0 => PhpParser\Node\Stmt\Function_ {#219
// SNIP
#attributes: array:3 [
"startLine" => 11
"comments" => array:2 [
0 => PhpParser\Comment\Doc {#212
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
If you have an image and embed it in the markdown  then the URL to the image is the directory path /user/pages/01.page/image.jpg but if you have a simple link to the image file [link to image](image.jpg) then the URL is relative to the page /page/image.jpg
Even more weird is if you use an action on an image  and then follow it with ` function has a valign() option for a text vertical alignment with 'bottom' as a default value. However this doesn't use the font baseline, unlike the imagettftext() function. As a result, the text is positioned differently depending on the character height. Try:
- aaa
- AAA
- ΓΓΓ
- yyy
There should be an option to enable the default imagettftext() vertical alignment mec
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
Steps to reproduce
- Set a header on the server with
referrer-policy: no-referrer,strict-origin-when-cross-origin - Open https://nextcloud.example.com/settings/admin/overview
- Be greeted by a warning about the referrer policy
Expected behaviour
Nextcloud should notice that both the normal and fallback header are secure according to the recommendation.
Actual behaviour
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
Created by Rasmus Lerdorf
Released June 8, 1995
- Organization
- php
- Website
- secure.php.net
- Wikipedia
- Wikipedia


Description
At the moment it's quite hard to debug HTTP errors because the only information we get is:
HTTP/1.1 400 Bad Request returned for "https://example.com/".It would be nice to have an opt-in option that would automatically open response payload and headers in order to log them in Sentry for example. It may require to handle a max lenght on the response payload.