Bug #78931 [NEW]: NTS and TS version of PHP produces different output
| From: | michael dot vorisek at email dot cz | Date: | Sun, 08 Dec 2019 19:57:14 +0000 |
| Subject: | Bug #78931 [NEW]: NTS and TS version of PHP produces different output | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-224138@lists.php.net to get a copy of this message | ||
From: michael dot vorisek at email dot cz
Operating system: Windows
PHP version: 7.3.12
Package: Scripting Engine problem
Bug Type: Bug
Bug description:NTS and TS version of PHP produces different output
Description:
------------
When PHP uses only 1 thread, i.e. CGI or CLI, it should produce exactly
the same output, right?
But after days of trouble shooting I finally find the issue with
PrestaShop installer. The issue is PHP on Windows.
When you download the latest version of PrestaShop
https://github.com/PrestaShop/PrestaShop/releases/download/1.7.6.2/prestashop_1.7.6.2.zip
, unzip it and
a) install it from CLI using admin/install_cli.php
b) OR install thru web using PHP CGI
the install always fail with NTS PHP (with error Template
"C:\wamp64\www\ps\mails\themes\modern\core\account.html.twig" is not
defined.), but always succeed when run with TS PHP.
I tested it on multiple Windows systems and two versions of PHP - 7.3.9
and 7.3.12/latest. The install always completes with the TS version of
PHP, but always fail with the NTS one.
I am posting it here and not in the PrestaShop repo, as this seems like
some core PHP issue.
Can you please reproduce and fix?
Test script:
---------------
see description
Expected result:
----------------
no difference between TS and NTS version, i.e. the PrestaShop installed
always succeed
Actual result:
--------------
TS build is working correctly, but the NTS build of the same PHP version
(and config, file location, ...) does something unclear differently
--
Edit bug report at https://bugs.php.net/bug.php?id=78931&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78931&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78931&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78931&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78931&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78931&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78931&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78931&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78931&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78931&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78931&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78931&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78931&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78931&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78931&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78931&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78931&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78931&r=mysqlcfg