This is a followup to #2496943: Add condition to ignore PHP 7 on rest requirements check.

Problem/Motivation

As per David_Rothstein's comment in #2456025-28: PHP warnings in PHP 5.6 because of always_populate_raw_post_data ini setting (the D7 version of this issue):
+ 'description' => t('The always_populate_raw_post_data PHP setting should be set to -1 in PHP versions 5.6 and up. Please check the <a href="https://php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data">PHP manual</a> for information on how to correct this.'),

We usually like to leave the /en/ out of php.net URLs in the user interface. That way we don't assume a language and the user gets sent to the correct language via whatever mechanism php.net uses to detect that.

Proposed resolution

Remove '/en' part from URL. in the file (core/modules/rest/rest.install).

Optionally, run a search for php.net/manual/en through core files to see if you spot more occurrences.

Remaining tasks

Do it.

User interface changes

API changes

Data model changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

roderik created an issue. See original summary.

sdstyles’s picture

Status: Active » Needs review
FileSize
21.17 KB

Removed all occurrences of php.net/manual/en

GoZ’s picture

Status: Needs review » Needs work
  1. +++ b/core/lib/Drupal/Component/Datetime/DateTimePlus.php
    @@ -177,7 +177,7 @@ public static function createFromTimestamp($timestamp, $timezone = NULL, $settin
    -   *   @see http://us3.php.net/manual/en/datetime.createfromformat.php
    +   *   @see http://us3.php.net/manual/datetime.createfromformat.php
    

    us3 subdomain should be deleted to.

  2. +++ b/core/lib/Drupal/Component/Datetime/DateTimePlus.php
    @@ -389,7 +389,7 @@ protected function prepareFormat($format) {
    +   * @see http://us3.php.net/manual/time.getlasterrors.php
    

    Remove us3 subdomain

  3. +++ b/core/modules/views/src/Plugin/views/field/Date.php
    @@ -111,7 +111,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
    +      '#description' => $this->t('If "Custom", see <a href="http://us.php.net/manual/function.date.php" target="_blank">the PHP docs</a> for date formats. Otherwise, enter the number of different time units to display, which defaults to 2.'),
    

    Remove us subdomain.

sdstyles’s picture

Status: Needs work » Needs review
FileSize
21.16 KB
2.08 KB

Removed us subdomain.
Thanks

GoZ’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @sdstyles, looks fine.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/modules/views/src/Plugin/views/field/Date.php
@@ -111,7 +111,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
-      '#description' => $this->t('If "Custom", see <a href="http://us.php.net/manual/en/function.date.php" target="_blank">the PHP docs</a> for date formats. Otherwise, enter the number of different time units to display, which defaults to 2.'),
+      '#description' => $this->t('If "Custom", see <a href="http://php.net/manual/function.date.php" target="_blank">the PHP docs</a> for date formats. Otherwise, enter the number of different time units to display, which defaults to 2.'),

This is a translatable string and therefore not incorrect. All the other changes in this patch are rc eligible - this one is not - we're in string freeze and this is not a bug.

snehi’s picture

Status: Needs work » Needs review
FileSize
20 KB

As mentioned by @Alex removing change in #6.

snehi’s picture

snehi’s picture

Assigned: Unassigned » snehi
jhodgdon’s picture

Yes this is a duplicate of #2571845: Links to wikipedia/php.net should be part of the actual t() string so they can be localized, which has a better issue summary. I don't think this patch probably fixes everything listed there, but can you upload this patch to the other issue so we can continue there with the fixes?

jhodgdon’s picture

Status: Needs review » Closed (duplicate)