Skip to content
#

PHP

php logo

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...

symfony
B-Galati
B-Galati commented Nov 8, 2019

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.

naderman
naderman commented Nov 27, 2019

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

marekstodolny
marekstodolny commented Jan 29, 2020

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

wangch7
wangch7 commented May 22, 2019

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

moon0326
moon0326 commented Aug 29, 2018

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provide a recipe for reproducing the error.

read Chinese and English documentation

  1. What did you expect to see?

I expected to find best practice for production usage

  1. What did you see instead?

nothing

  1. What version of Swoole are you using (php --ri swoole)?

latest.

PHPMailer
PhilippGrashoff
PhilippGrashoff commented Jan 22, 2020

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

WeeSee
WeeSee commented Feb 9, 2020

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);
  
tsteur
tsteur commented Jan 21, 2020

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.

joachim-n
joachim-n commented Nov 16, 2017
<?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
SeriousKen
SeriousKen commented Jan 1, 2020

If you have an image and embed it in the markdown ![](image.jpg) 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 ![](image.jpg?cropZoom=200,200) and then follow it with `![](ima

diverpl
diverpl commented Jun 4, 2019

The text() 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

cphalcon
Nialld
Nialld commented Jan 22, 2020

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

server
SuperSandro2000
SuperSandro2000 commented Feb 12, 2020

Steps to reproduce

  1. Set a header on the server with referrer-policy: no-referrer,strict-origin-when-cross-origin
  2. Open https://nextcloud.example.com/settings/admin/overview
  3. 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

october
monica
kotnik
kotnik commented Oct 8, 2019

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

Related Topics

language
You can’t perform that action at this time.