Fixed bug (Environment vars may be mangled on Windows).
+
Fixed bug (Environment vars may be mangled on Windows).
FFI:
-
Fixed bug (FFI::cast() from pointer to array is broken).
+
Fixed bug (FFI::cast() from pointer to array is broken).
Filter:
@@ -1026,20 +1026,20 @@
MBString:
-
Fixed bug (mb_send_mail may delimit headers with LF only).
+
Fixed bug (mb_send_mail may delimit headers with LF only).
MySQLnd:
-
Fixed bug (MariaDB version prefix 5.5.5- is not stripped).
+
Fixed bug (MariaDB version prefix 5.5.5- is not stripped).
Sockets:
Fixed ext/sockets build on Haiku.
-
Fixed bug (sockets extension compilation errors).
+
Fixed bug (sockets extension compilation errors).
Standard:
-
Fixed bug (mails are sent even if failure to log throws exception).
+
Fixed bug (mails are sent even if failure to log throws exception).
@@ -1060,8 +1060,8 @@
Hash:
-
Fixed bug (Incorrect return types for hash() and hash_hmac()).
-
Fixed bug (Inconsistent argument name in hash_hmac_file and hash_file).
+
Fixed bug (Incorrect return types for hash() and hash_hmac()).
+
Fixed bug (Inconsistent argument name in hash_hmac_file and hash_file).
MySQLnd:
@@ -1069,7 +1069,7 @@
OCI8:
-
Fixed bug (php_oci_cleanup_global_handles segfaults at second call).
+
Fixed bug (php_oci_cleanup_global_handles segfaults at second call).
OPcache:
diff --git a/archive/2004.php b/archive/2004.php
index ba7a7bb5bb..9897032b91 100644
--- a/archive/2004.php
+++ b/archive/2004.php
@@ -349,7 +349,7 @@ functions starting with the letters you typed in. You can browse the list
-
+
International PHP Conference 2004
[18-Jun-2004]
diff --git a/archive/index.php b/archive/index.php
index 95d28ea765..61a7f0b524 100644
--- a/archive/index.php
+++ b/archive/index.php
@@ -1,13 +1,14 @@
"","\n"=>"")));
+ header("Location: https://www.php.net/" . strtr($_GET["f"], array("\r"=>"","\n"=>"")));
exit;
}
diff --git a/cal.php b/cal.php
index 24794d70e8..a0b1c84fda 100644
--- a/cal.php
+++ b/cal.php
@@ -18,7 +18,7 @@
a fallback to display the actual month/year.
*/
-$begun = FALSE; $errors = array();
+$begun = false; $errors = array();
$id = isset($_GET['id']) ? (int) $_GET['id'] : 0;
$cy = isset($_GET['cy']) ? (int) $_GET['cy'] : 0;
$cm = isset($_GET['cm']) ? (int) $_GET['cm'] : 0;
@@ -37,7 +37,7 @@
if ($event = load_event($id)) {
site_header("Event: " . stripslashes(htmlentities($event['sdesc'], ENT_QUOTES | ENT_IGNORE, 'UTF-8')), $site_header_config);
display_event($event, 0);
- $begun = TRUE;
+ $begun = true;
}
// Unable to find event, put this to the error messages' list
else {
@@ -49,7 +49,7 @@
elseif ($cy && $cm && $cd) {
// Check if date is valid
- if (checkdate($cm,$cd,$cy)) {
+ if (checkdate($cm, $cd, $cy)) {
// Date integer for that day
$date = mktime(0, 0, 1, $cm, $cd, $cy);
@@ -63,12 +63,12 @@
display_event($event, 0);
echo " ";
}
- $begun = TRUE;
+ $begun = true;
}
// Unable to load events for that day
else {
- $errors[] = "There are no events for the specified date (".date("F j, Y",$date).").";
+ $errors[] = "There are no events for the specified date (".date("F j, Y", $date).").";
}
}
@@ -80,21 +80,24 @@
}
// Check if month and year is valid
-if ($cm && $cy && !checkdate($cm,1,$cy)) {
+if ($cm && $cy && !checkdate($cm, 1, $cy)) {
$errors[] = "The specified year and month (".htmlentities("$cy, $cm", ENT_QUOTES | ENT_IGNORE, 'UTF-8').") are not valid.";
unset($cm, $cy);
}
// Give defaults for the month and day values if they were invalid
-if (empty($cm)) { $cm = date("m"); }
-if (empty($cy)) { $cy = date("Y"); }
+if (empty($cm)) {
+ $cm = date("m");
+}
+if (empty($cy)) {
+ $cy = date("Y");
+}
// Start of the month date
$date = mktime(0, 0, 1, $cm, 1, $cy);
if (!$begun) {
- site_header("Events: ".date("F Y", $date), $site_header_config);
-?>
+ site_header("Events: ".date("F Y", $date), $site_header_config); ?>
If you would like to suggest an upcoming event to be listed on this
@@ -110,10 +113,10 @@
}
// Get events list for a whole month
-$events = load_events($date, TRUE);
+$events = load_events($date, true);
// If there was an error, or there are no events, this is an error
-if ($events === FALSE || count($events) == 0) {
+if ($events === false || count($events) == 0) {
$errors[] = "No events found for this month";
}
@@ -125,11 +128,11 @@
}
// Beginning and end of this month
-$bom = mktime(0, 0, 1, $cm, 1, $cy);
+$bom = mktime(0, 0, 1, $cm, 1, $cy);
$eom = mktime(0, 0, 1, $cm+1, 0, $cy);
// Link to previous month (but do not link to too early dates)
-$prev_link = (function() use ($cm, $cy) {
+$prev_link = (function () use ($cm, $cy) {
$lm = mktime(0, 0, 1, $cm, 0, $cy);
$year = date('Y', $lm);
if (!valid_year($year)) {
@@ -138,15 +141,17 @@
$month = date('m', $lm);
$monthName = date('F', $lm);
- return sprintf('%s, %s',
- urlencode($month),
- urlencode($year),
- htmlentities($monthName),
- htmlentities($year));
+ return sprintf(
+ '%s, %s',
+ urlencode($month),
+ urlencode($year),
+ htmlentities($monthName),
+ htmlentities($year)
+ );
})();
// Link to next month (but do not link to too early dates)
-$next_link = (function() use ($cm, $cy) {
+$next_link = (function () use ($cm, $cy) {
$nm = mktime(0, 0, 1, $cm+1, 1, $cy);
$year = date('Y', $nm);
if (!valid_year($year)) {
@@ -155,11 +160,13 @@
$month = date('m', $nm);
$monthName = date('F', $nm);
- return sprintf('%s, %s',
- urlencode($month),
- urlencode($year),
- htmlentities($monthName),
- htmlentities($year));
+ return sprintf(
+ '%s, %s',
+ urlencode($month),
+ urlencode($year),
+ htmlentities($monthName),
+ htmlentities($year)
+ );
})();
// Print out navigation links for previous and next month
@@ -174,26 +181,28 @@
// Print out headers for weekdays
for ($i = 0; $i < 7; $i++) {
- echo '
', date("l",mktime(0,0,1,4,$i+1,2001)), "
\n";
+ echo '
', date("l", mktime(0, 0, 1, 4, $i+1, 2001)), "
\n";
}
echo "\n
";
// Generate the requisite number of blank days to get things started
-for ($days = $i = date("w",$bom); $i > 0; $i--) {
+for ($days = $i = date("w", $bom); $i > 0; $i--) {
echo '
';
}
// Print out all the days in this month
-for ($i = 1; $i <= date("t",$bom); $i++) {
+for ($i = 1; $i <= date("t", $bom); $i++) {
// Print out day number and all events for the day
echo '
';
// Break HTML table row if at end of week
- if (++$days % 7 == 0) echo "
\n
";
+ if (++$days % 7 == 0) {
+ echo "
\n
";
+ }
}
// Generate the requisite number of blank days to wrap things up
@@ -218,11 +227,11 @@ function date_for_recur($recur, $day, $bom, $eom)
if ($recur > 0) {
$bomd = date("w", $bom) + 1;
$days = (($day - $bomd + 7) % 7) + (($recur - 1) * 7);
- return mktime(0,0,1, date("m",$bom), $days + 1, date("Y",$bom));
+ return mktime(0, 0, 1, date("m", $bom), $days + 1, date("Y", $bom));
}
// ${recur}th to last $day of the month
- $eomd = date("w",$eom) + 1;
+ $eomd = date("w", $eom) + 1;
$days = (($eomd - $day + 7) % 7) + ((abs($recur) - 1) * 7);
return mktime(0, 0, 1, date("m", $bom)+1, -$days, date("Y", $bom));
@@ -256,57 +265,63 @@ function display_events_for_day($day, $events): void
function load_event($id)
{
// Open events CSV file, return on error
- $fp = @fopen("backend/events.csv",'r');
- if (!$fp) { return FALSE; }
+ $fp = @fopen("backend/events.csv", 'r');
+ if (!$fp) {
+ return false;
+ }
// Read as we can, event by event
while (!feof($fp)) {
+ $event = read_event($fp);
- $event = read_event($fp);
-
- // Return with the event, if it's ID is the one
- // we search for (also close the file)
- if ($event !== FALSE && $event['id'] == $id) {
- fclose($fp);
- return $event;
- }
+ // Return with the event, if it's ID is the one
+ // we search for (also close the file)
+ if ($event !== false && $event['id'] == $id) {
+ fclose($fp);
+ return $event;
+ }
}
// Close file, and return sign of failure
fclose($fp);
- return FALSE;
+ return false;
}
// Load a list of events. Either for a particular day ($from) or a whole
// month (if second parameter specified with TRUE)
-function load_events($from, $whole_month = FALSE)
+function load_events($from, $whole_month = false)
{
// Take advantage of the equality behavior of this date format
$from_date = date("Y-m-d", $from);
- $bom = mktime(0, 0, 1, date("m",$from), 1, date("Y",$from));
- $eom = mktime(0, 0, 1, date("m",$from) + 1, 0, date("Y",$from));
+ $bom = mktime(0, 0, 1, date("m", $from), 1, date("Y", $from));
+ $eom = mktime(0, 0, 1, date("m", $from) + 1, 0, date("Y", $from));
$to_date = date("Y-m-d", $whole_month ? $eom : $from);
// Set arrays to their default
$events = $seen = array();
// Try to open the events file for reading, return if unable to
- $fp = @fopen("backend/events.csv",'r');
- if (!$fp) { return FALSE; }
+ $fp = @fopen("backend/events.csv", 'r');
+ if (!$fp) {
+ return false;
+ }
// For all events, read in the event and check it if fits our scope
while (!feof($fp)) {
// Read the event data into $event, or continue with next
// line, if there was an error with this line
- if (($event = read_event($fp)) === FALSE) {
+ if (($event = read_event($fp)) === false) {
continue;
}
// Keep event's seen list up to date
// (for repeating events with the same ID)
- if (!isset($seen[$event['id']])) { $seen[$event['id']] = 1; }
- else { continue; }
+ if (!isset($seen[$event['id']])) {
+ $seen[$event['id']] = 1;
+ } else {
+ continue;
+ }
// Check if event is in our scope, depending on type
switch ($event['type']) {
@@ -318,6 +333,7 @@ function load_events($from, $whole_month = FALSE)
// Fall through. Now it is just like a single-day event
// Single-day event
+ // no break
case 1:
if ($event['start'] >= $from_date && $event['start'] <= $to_date) {
$events[] = $event;
@@ -329,7 +345,7 @@ function load_events($from, $whole_month = FALSE)
if (($event['start'] >= $from_date && $event['start'] <= $to_date)
|| ($event['end'] >= $from_date && $event['end'] <= $to_date)
|| ($event['start'] <= $from_date && $event['end'] >= $to_date)) {
- $events[] = $event;
+ $events[] = $event;
}
break;
}
@@ -345,12 +361,14 @@ function load_events($from, $whole_month = FALSE)
function read_event($fp)
{
// We were unable to read a line from the file, return
- if (($linearr = fgetcsv($fp, 8192)) === FALSE) {
- return FALSE;
+ if (($linearr = fgetcsv($fp, 8192)) === false) {
+ return false;
}
// Corrupt line in CSV file
- if (count($linearr) < 13) { return FALSE; }
+ if (count($linearr) < 13) {
+ return false;
+ }
// Get components
list(
@@ -386,11 +404,11 @@ function valid_year($year)
// We only allow this and the next year for displays
if ($year != $current_year && $year != $current_year+1) {
- return FALSE;
+ return false;
}
// The year is all right
- return TRUE;
+ return true;
}
?>
diff --git a/conferences/index.php b/conferences/index.php
index de805a194b..11021ff024 100644
--- a/conferences/index.php
+++ b/conferences/index.php
@@ -1,4 +1,5 @@
";
$frontpage = array();
-foreach($NEWS_ENTRIES as $entry) {
- foreach($entry["category"] as $category) {
+foreach ($NEWS_ENTRIES as $entry) {
+ foreach ($entry["category"] as $category) {
if ($category["term"] == "cfp") {
$frontpage[] = $entry;
break;
@@ -28,7 +29,7 @@
$panels = '
';
-foreach($frontpage as $entry) {
+foreach ($frontpage as $entry) {
$link = preg_replace('~^(http://php.net/|https://www.php.net/)~', '', $entry["id"]);
$id = parse_url($entry["id"], PHP_URL_FRAGMENT);
$date = date_format(date_create($entry["updated"]), 'Y-m-d');
diff --git a/credits.php b/credits.php
index 1ba4ab0545..db3c0adfbd 100644
--- a/credits.php
+++ b/credits.php
@@ -1,4 +1,5 @@
$langname) {
- if (!file_exists($_SERVER["DOCUMENT_ROOT"] . "/manual/{$langcode}/index.php")) {
- continue;
- }
+ if (!file_exists($_SERVER["DOCUMENT_ROOT"] . "/manual/{$langcode}/index.php")) {
+ continue;
+ }
// Make preferred language bold
- if ($langcode == $LANG) { echo ""; }
+ if ($langcode == $LANG) {
+ echo "";
+ }
echo '' . $langname . '';
echo ($lastlang != $langname) ? ",\n" : "\n";
- if ($langcode == $LANG) { echo ""; }
+ if ($langcode == $LANG) {
+ echo "";
+ }
}
?>
diff --git a/download-docs.php b/download-docs.php
index e32c0e9e7b..ef0f5551ba 100644
--- a/download-docs.php
+++ b/download-docs.php
@@ -93,13 +93,12 @@
// Go through all possible manual languages
foreach ($LANGUAGES as $langcode => $language) {
- if(isset($INACTIVE_ONLINE_LANGUAGES[$langcode]) && $MYSITE !== 'http://docs.php.net/') {
- continue;
+ if (isset($INACTIVE_ONLINE_LANGUAGES[$langcode]) && $MYSITE !== 'http://docs.php.net/') {
+ continue;
}
// Go through all possible manual formats
foreach ($formats as $formatname => $extension) {
-
$filepath = $_SERVER['DOCUMENT_ROOT'] . '/distributions/manual/';
if ($formatname === 'HTML Help file (with user notes)') {
$filename = "php_enhanced_$langcode.$extension";
@@ -120,7 +119,7 @@
$changed = @filemtime($filepath);
// Size available, collect information
- if ($size !== FALSE) {
+ if ($size !== false) {
$files[$langcode][$formatname] = array(
$link_to,
(int) ($size/1024),
@@ -157,13 +156,14 @@
if (count($found_formats) == 0) {
echo "
This site has no documentation files for download.
";
} else {
-
echo '
' . "\n" .
"
\n
\n";
// Print out the name of the formats
foreach ($formats as $formatname => $extension) {
- if (!isset($found_formats[$formatname])) { continue; }
+ if (!isset($found_formats[$formatname])) {
+ continue;
+ }
echo "
$formatname
\n";
}
@@ -172,8 +172,11 @@
foreach ($files as $langcode => $lang_files) {
// See if current language is the preferred one
- if ($langcode == $LANG) { $preflang = TRUE; }
- else { $preflang = FALSE; }
+ if ($langcode == $LANG) {
+ $preflang = true;
+ } else {
+ $preflang = false;
+ }
// Highlight manual in preferred language
if ($preflang) {
@@ -187,13 +190,14 @@
foreach ($formats as $formatname => $extension) {
// Skip if no file found
- if (!isset($found_formats[$formatname])) { continue; }
+ if (!isset($found_formats[$formatname])) {
+ continue;
+ }
echo "
Thank you. Your request has been sent. You should hear something within the
next week or so. If you haven't heard anything by around
@@ -158,7 +157,7 @@
} // endif: no data or checkread not checked
else {
- if (count($_POST)) {
+ if (count($_POST)) {
print <<
@@ -167,8 +166,7 @@
EOT;
- }
-?>
+ } ?>
@@ -348,12 +346,16 @@
Full Name:
+ class="max" value="">
Email:
+ class="max" value="">
For what purpose do you require a Git account:
@@ -361,9 +363,9 @@ class="max" value="
$p) { ?>
If your intended purpose is not in the list, please state it here:
';
diff --git a/manual-lookup.php b/manual-lookup.php
index 3715fef43e..855267ba23 100644
--- a/manual-lookup.php
+++ b/manual-lookup.php
@@ -1,4 +1,5 @@
As a security precaution, we only allow a certain number of notes to be submitted per minute. At this time, this number has been exceeded. Please re-submit your note in about a minute.";
- } elseif (($pos = strpos($result, '[SPAMMER]')) !== FALSE) {
+ } elseif (($pos = strpos($result, '[SPAMMER]')) !== false) {
$ip = trim(substr($result, $pos+9));
$spam_url = $ip_spam_lookup_url . $ip;
print '
Your IP is listed in one of the spammers lists we use, which aren\'t controlled by us. More information is available at '.$spam_url.'.
';
}
// Any needed variable was missing => display instructions
else {
-?>
+ ?>
Adding a note to the manual
@@ -338,7 +339,9 @@
}
// If the user name was not specified, provide a default
-if (empty($_POST['user'])) { $_POST['user'] = "user@example.com"; }
+if (empty($_POST['user'])) {
+ $_POST['user'] = "user@example.com";
+}
// There is no section to add note to
if (!isset($_POST['sect'], $_POST['redirect'])) {
@@ -371,7 +374,9 @@
diff --git a/mirror-info.php b/mirror-info.php
index f687f5fca6..a919f7a118 100644
--- a/mirror-info.php
+++ b/mirror-info.php
@@ -1,4 +1,5 @@
THANKS;
-
}
site_footer();
diff --git a/pear/index.php b/pear/index.php
index 7b2cb896e4..8022e4c89b 100644
--- a/pear/index.php
+++ b/pear/index.php
@@ -1,4 +1,5 @@
$p) {
// Stop, if we found enough matches
- if (count($maybe) >= 30) { break; }
+ if (count($maybe) >= 30) {
+ break;
+ }
// If the two are more then 70% similar or $notfound is a substring
// of $funcname, then the match is a very similar one
- if ($p >= 70 || (strpos($functions[$file], $notfound) !== FALSE)) {
+ if ($p >= 70 || (strpos($functions[$file], $notfound) !== false)) {
$maybe[$file] = '' . $functions[$file] . '';
}
// Otherwise it is just similar
@@ -105,8 +109,11 @@ function quickref_table($functions, $sort = true): void
}
// Do not index page if presented as a search result
-if (count($maybe) > 0) { $head_options = array("noindex"); }
-else { $head_options = array(); }
+if (count($maybe) > 0) {
+ $head_options = array("noindex");
+} else {
+ $head_options = array();
+}
site_header("Manual Quick Reference", $head_options+array("current" => "help"));
diff --git a/releases/5_3_3.php b/releases/5_3_3.php
index bd9c9ea56a..516ddd3762 100644
--- a/releases/5_3_3.php
+++ b/releases/5_3_3.php
@@ -22,7 +22,7 @@
non-namespaced classes.
');
- ?>
+ ?>
There is no impact on migration from 5.2.x because namespaces were only introduced in PHP 5.3.
diff --git a/releases/8.0/common.php b/releases/8.0/common.php
index 84dcba5d0e..cebe6302f6 100644
--- a/releases/8.0/common.php
+++ b/releases/8.0/common.php
@@ -1,13 +1,18 @@
- 'English',
'de' => 'Deutsch',
diff --git a/releases/8.0/de.php b/releases/8.0/de.php
index 939ec822ab..2d460b13b5 100644
--- a/releases/8.0/de.php
+++ b/releases/8.0/de.php
@@ -7,7 +7,8 @@
'Es beinhaltet viele neue Funktionen und Optimierungen wie beispielsweise ' .
'Named Arguments, Union Types, Attribute, Constructor Property Promotion, ' .
'Match Ausdrücke, Nullsafe Operator, JIT und Verbesserungen des Typen-Systems, ' .
- 'der Fehlerbehandlung und der Konsistenz.');
+ 'der Fehlerbehandlung und der Konsistenz.'
+);
?>
@@ -44,8 +45,8 @@
@@ -91,12 +92,12 @@ public function get($id) { /* ... */ }
PHP 8
+);?>
@@ -115,7 +116,7 @@ public function get($id) { /* ... */ }
PHP 7
z = $z;
}
}'
- );?>
+);?>
@@ -138,14 +139,14 @@ public function __construct(
PHP 8
+);?>
@@ -164,7 +165,7 @@ public function __construct(
PHP 7
+);?>
@@ -185,14 +186,14 @@ public function __construct($number) {
PHP 8
+);?>
@@ -212,7 +213,7 @@ public function __construct(
PHP 7
Oh nein!'
- );?>
+);?>
diff --git a/releases/8.0/en.php b/releases/8.0/en.php
index 78228d7681..65e89dc9bd 100644
--- a/releases/8.0/en.php
+++ b/releases/8.0/en.php
@@ -7,7 +7,8 @@
'It contains many new features and optimizations including ' .
'named arguments, union types, attributes, constructor property promotion, ' .
'match expression, nullsafe operator, JIT, and ' .
- 'improvements in the type system, error handling, and consistency.');
+ 'improvements in the type system, error handling, and consistency.'
+);
?>
@@ -43,8 +44,8 @@
@@ -92,12 +93,12 @@ public function get($id) { /* ... */ }
PHP 8
+);?>
@@ -116,7 +117,7 @@ public function get($id) { /* ... */ }
PHP 7
z = $z;
}
}'
- );?>
+);?>
@@ -139,14 +140,14 @@ public function __construct(
PHP 8
+);?>
@@ -165,7 +166,7 @@ public function __construct(
PHP 7
+);?>
@@ -186,14 +187,14 @@ public function __construct($number) {
PHP 8
+);?>
@@ -213,7 +214,7 @@ public function __construct(
PHP 7
Oh no!'
- );?>
+);?>
diff --git a/releases/8.0/es.php b/releases/8.0/es.php
index 474a776fdb..135d44c3ca 100644
--- a/releases/8.0/es.php
+++ b/releases/8.0/es.php
@@ -5,7 +5,8 @@
releases\php80\common_header(
'PHP 8.0 es una actualización importante del lenguaje php que contiene nuevos recursos y optimizaciones incluyendo ' .
'argumentos nombrados, tipos de uniones, atributos, promoción de propiedades constructivas, expresiones de equivalencia, ' .
- 'operador nullsafe, JIT (traducción dinámica) y también mejoras en el sistema de tipos, manejo de errores y consistencia en general.');
+ 'operador nullsafe, JIT (traducción dinámica) y también mejoras en el sistema de tipos, manejo de errores y consistencia en general.'
+);
?>
@@ -42,8 +43,8 @@
@@ -91,12 +92,12 @@ public function get($id) { /* ... */ }
PHP 8
+);?>
@@ -115,7 +116,7 @@ public function get($id) { /* ... */ }
PHP 7
z = $z;
}
}'
- );?>
+);?>
@@ -138,14 +139,14 @@ public function __construct(
PHP 8
+);?>
@@ -165,7 +166,7 @@ public function __construct(
PHP 7
+);?>
@@ -186,14 +187,14 @@ public function __construct($number) {
PHP 8
+);?>
@@ -212,7 +213,7 @@ public function __construct(
PHP 7
Oh no!'
- );?>
+);?>
diff --git a/releases/8.0/fr.php b/releases/8.0/fr.php
index bd11981f07..108dba993a 100644
--- a/releases/8.0/fr.php
+++ b/releases/8.0/fr.php
@@ -9,7 +9,8 @@
"promotion de propriétés de constructeur, l'expression match, " .
"l'opérateur nullsafe, JIT (Compilation à la Volée), " .
"et des améliorations dans le système de typage, " .
- "la gestion d'erreur, et de cohérence.");
+ "la gestion d'erreur, et de cohérence."
+);
?>
@@ -47,8 +48,8 @@
@@ -93,12 +94,12 @@ public function get($id) { /* ... */ }
PHP 8
+);?>
@@ -117,7 +118,7 @@ public function get($id) { /* ... */ }
PHP 7
z = $z;
}
}'
- );?>
+);?>
@@ -140,14 +141,14 @@ public function __construct(
PHP 8
+);?>
@@ -166,7 +167,7 @@ public function __construct(
PHP 7
+);?>
@@ -187,14 +188,14 @@ public function __construct($number) {
PHP 8
+);?>
@@ -214,7 +215,7 @@ public function __construct(
PHP 7
ოოო არა!'
- );?>
+);?>
diff --git a/releases/8.0/nl.php b/releases/8.0/nl.php
index e9cedcaa8b..2bd5e010f1 100644
--- a/releases/8.0/nl.php
+++ b/releases/8.0/nl.php
@@ -7,7 +7,8 @@
'Het bevat veel nieuwe mogelijkheden en optimalisaties, waaronder ' .
'argument naamgeving, unie types, attributen, promotie van constructor eigenschappen, ' .
'expressie vergelijking, null-veilige operator, JIT, en ' .
- 'verbeteringen aan het type systeem, foute afhandeling, en consistentie.');
+ 'verbeteringen aan het type systeem, foute afhandeling, en consistentie.'
+);
?>
@@ -44,8 +45,8 @@
@@ -91,12 +92,12 @@ public function get($id) { /* ... */ }
PHP 8
+);?>
@@ -115,7 +116,7 @@ public function get($id) { /* ... */ }
PHP 7
z = $z;
}
}'
- );?>
+);?>
@@ -138,14 +139,14 @@ public function __construct(
PHP 8
+);?>
@@ -164,7 +165,7 @@ public function __construct(
PHP 7
+);?>
@@ -185,14 +186,14 @@ public function __construct($number) {
PHP 8
+);?>
@@ -212,7 +213,7 @@ public function __construct(
PHP 7
О нет!'
- );?>
+);?>
diff --git a/releases/8.0/tr.php b/releases/8.0/tr.php
index c8eb19be5c..70e925d076 100644
--- a/releases/8.0/tr.php
+++ b/releases/8.0/tr.php
@@ -5,7 +5,8 @@
releases\php80\common_header(
'PHP 8.0, PHP dili için önemli bir güncellemedir. Optimizasyonlar ve yeni özellikler: Adlandırılmış ' .
'Değişkenler, Union Types, Attributes, Kurucularda Özellik Tanımı, Match İfadesi, Nullsafe Operatorü, ' .
- 'JIT(Anında Derleme) yanında tip sistemi, hata işleme ve tutarlılıkta iyileştirmeler içerir.');
+ 'JIT(Anında Derleme) yanında tip sistemi, hata işleme ve tutarlılıkta iyileştirmeler içerir.'
+);
?>
@@ -41,8 +42,8 @@
Fibers es la forma primitiva para la implementación ligera de concurrencia. Son un medio para crear bloques de código que se puedan pausarse y reanudarse como generadores (Generators), pero desde cualquier lugar de la pila. Los Fibers en sí mismo, no proporcionan la concurrecia mágicamente, todavía se necesita tener un bucle de eventos. Sin embargo, permiten que las implementaciones de bloqueo y no-bloqueo compartan la misma API.
Los Fibers permiten deshacerse del código repetitivo visto anteriormente con Promise::then() o las corutinas basadas en el generador (Generator). Las bibliotecas generalmente construirán más abstracciones alrededor de Fibers, por lo que no hay necesidad de interactuar con ellas directamente.
',
-
+
'array_unpacking_title' => 'Soporte de desestructuración de Arrays',
'array_unpacking_content' => '
PHP soportaba la desestructuración de Arrays, pero solo si el Array tenía keys de tipo integer. Ahora también es posible la desestructuración de Arrays con keys de tipo string.