Bug #81025 [NEW]: php 8.0.5
| From: | Parkhideh at att dot net | Date: | Sun, 09 May 2021 22:11:59 +0000 |
| Subject: | Bug #81025 [NEW]: php 8.0.5 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-233758@lists.php.net to get a copy of this message | ||
From: Parkhideh at att dot net
Operating system: Windows 10
PHP version: 7.4.19
Package: Built-in web server
Bug Type: Bug
Bug description:php 8.0.5
Description:
------------
---
From manual page: https://php.net/function.session-start
---
I read many comments about why a session_start() does not connect.
Luckily one of my 8 lines test program did work. The difference was the
non-working php file was saved as "UTF-8 with BOM" that made every thing
else work but session_start().
Note that on the local PortableApps xampp with php 8.0.3 under Windows
10 session_start() connects correctly. On host www.1and1.com with php
7.4 and 8.05 this problem shows.
Frankly I did not know that UTF-8 had a BOM option till now!! Unicode
https://www.unicode.org/faq/utf_bom.html
claims it doesn't, Windows 10
does it anyway.
Test script:
---------------
Setup php file:
<?php
session_start();
$_SESSION['keyword'] = 1916;
$_SESSION['driverVer'] = "1.1.1";
$CrLf = "\r\n";
echo "<br>PHP version is " . phpversion() . $CrLf;
exit;
?>
Run file showing the error:
<?php
session_start();
$q = $_SESSION['keyword'];
$v = $_SESSION['driverVer'];
$CrLf = "\r\n";
echo "<br>-- $q -- $v -- , PHP version is " . phpversion() . $CrLf;
exit;
?>
Expected result:
----------------
If the second file is saved as "UTF-8 with BOM"; then on some systems it
will generate an error message. Note that the same file saved as UTF-8
is a few bytes smaller, but both will pass the compare text test.
--
Edit bug report at https://bugs.php.net/bug.php?id=81025&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81025&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81025&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81025&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81025&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81025&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81025&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81025&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81025&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81025&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81025&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81025&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81025&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81025&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81025&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81025&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81025&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81025&r=mysqlcfg