with php73 PIPE email = SUCCESS!, with php74 = FAIL, why?

000

Well-Known Member
Jun 3, 2008
270
12
68
Hello,

when we update PHP to 7.4
PIPE, STDIN = ERROR:
Code:
local delivery failed

Action: failed
Final-Recipient: rfc822;[email protected]
Status: 5.0.0
but with PHP 7.3 ALL run fine:
Code:
PTP 7.3

install mode: './configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/opt/cpanel/ea-php73/root/usr' '--exec-prefix=/opt/cpanel/ea-php73/root/usr' '--bindir=/opt/cpanel/ea-php73/root/usr/bin' '--sbindir=/opt/cpanel/ea-php73/root/usr/sbin' '--sysconfdir=/opt/cpanel/ea-php73/root/etc' '--datadir=/opt/cpanel/ea-php73/root/usr/share' '--includedir=/opt/cpanel/ea-php73/root/usr/include' '--libdir=/opt/cpanel/ea-php73/root/usr/lib64' '--libexecdir=/opt/cpanel/ea-php73/root/usr/libexec' '--localstatedir=/opt/cpanel/ea-php73/root/var' '--sharedstatedir=/opt/cpanel/ea-php73/root/var/lib' '--mandir=/opt/cpanel/ea-php73/root/usr/share/man' '--infodir=/opt/cpanel/ea-php73/root/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/opt/cpanel/ea-php73/root/etc' '--with-config-file-scan-dir=/opt/cpanel/ea-php73/root/etc/php.d' '--disable-debug' '--with-password-argon2=/opt/cpanel/libargon2' '--with-pic' '--without-pear' '--with-bz2' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl=/opt/cpanel/ea-openssl11' '--with-openssl-dir=/opt/cpanel/ea-openssl11' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-sockets' '--with-kerberos' '--enable-shmop' '--with-libxml-dir=/opt/cpanel/ea-libxml2' '--with-system-tzdata' '--with-mhash' '--enable-fpm' '--with-fpm-systemd' '--libdir=/opt/cpanel/ea-php73/root/usr/lib64/php' '--without-mysqli' '--disable-pdo' '--enable-pcntl' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-opcache' '--disable-xmlreader' '--disable-xmlwriter' '--without-sqlite3' '--disable-phar' '--disable-fileinfo' '--disable-json' '--without-pspell' '--disable-wddx' '--without-curl' '--disable-posix' '--disable-xml' '--disable-simplexml' '--disable-exif' '--without-gettext' '--without-iconv' '--disable-ftp' '--without-bz2' '--disable-ctype' '--disable-shmop' '--disable-sockets' '--disable-tokenizer' '--disable-sysvmsg' '--disable-sysvshm' '--disable-sysvsem' '--without-gmp' '--disable-calendar' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fno-strict-aliasing -Wno-pointer-sign' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic'
and here
Code:
PHP 7.4

install mode: './configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/opt/cpanel/ea-php74/root/usr' '--exec-prefix=/opt/cpanel/ea-php74/root/usr' '--bindir=/opt/cpanel/ea-php74/root/usr/bin' '--sbindir=/opt/cpanel/ea-php74/root/usr/sbin' '--sysconfdir=/opt/cpanel/ea-php74/root/etc' '--datadir=/opt/cpanel/ea-php74/root/usr/share' '--includedir=/opt/cpanel/ea-php74/root/usr/include' '--libdir=/opt/cpanel/ea-php74/root/usr/lib64' '--libexecdir=/opt/cpanel/ea-php74/root/usr/libexec' '--localstatedir=/opt/cpanel/ea-php74/root/var' '--sharedstatedir=/opt/cpanel/ea-php74/root/var/lib' '--mandir=/opt/cpanel/ea-php74/root/usr/share/man' '--infodir=/opt/cpanel/ea-php74/root/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/opt/cpanel/ea-php74/root/etc' '--with-config-file-scan-dir=/opt/cpanel/ea-php74/root/etc/php.d' '--disable-debug' '--with-password-argon2=/opt/cpanel/libargon2' '--with-pic' '--without-pear' '--with-bz2' '--with-freetype' '--with-xpm' '--without-gdbm' '--with-gettext' '--with-iconv' '--with-jpeg' '--with-openssl' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-sockets' '--with-kerberos' '--enable-shmop' '--with-libxml' '--with-system-tzdata' '--with-mhash' '--enable-fpm' '--with-fpm-systemd' '--libdir=/opt/cpanel/ea-php74/root/usr/lib64/php' '--without-mysqli' '--disable-pdo' '--enable-pcntl' '--disable-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-opcache' '--disable-xmlreader' '--disable-xmlwriter' '--without-sqlite3' '--disable-phar' '--disable-fileinfo' '--disable-json' '--without-pspell' '--without-curl' '--disable-posix' '--disable-xml' '--disable-simplexml' '--disable-exif' '--without-gettext' '--without-iconv' '--disable-ftp' '--without-bz2' '--disable-ctype' '--disable-shmop' '--disable-sockets' '--disable-tokenizer' '--disable-sysvmsg' '--disable-sysvshm' '--disable-sysvsem' '--without-gmp' '--disable-calendar' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'PKG_CONFIG_PATH=/opt/cpanel/ea-php74/root/usr/lib64/pkgconfig:/opt/cpanel/ea-php74/root/usr/share/pkgconfig:/usr/lib64/pkgconfig:/opt/cpanel/ea-openssl11/lib64/pkgconfig:/opt/cpanel/ea-libxml2/lib64/pkgconfig:/opt/cpanel/ea-libicu/lib/pkgconfig:/opt/cpanel/ea-oniguruma/lib64/pkgconfig' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fno-strict-aliasing -Wno-pointer-sign' 'KERBEROS_CFLAGS=-I/usr/include' 'KERBEROS_LIBS=-L/usr/lib64' 'OPENSSL_CFLAGS=-I/opt/cpanel/ea-openssl11/include' 'OPENSSL_LIBS=-L/opt/cpanel/ea-openssl11/lib -lssl -lcrypto -lresolv' 'CURL_CFLAGS=-I/opt/cpanel/libcurl/include' 'CURL_LIBS=-L/opt/cpanel/libcurl/lib64 -lcurl' 'JPEG_CFLAGS=-I/usr/include' 'JPEG_LIBS=-L/usr/lib64 -ljpeg' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' 'SASL_CFLAGS=-I/usr/include' 'SASL_LIBS=-L/usr/lib64' 'XSL_CFLAGS=-I/opt/cpanel/ea-libxml2/include/libxml2' 'XSL_LIBS=-L/opt/cpanel/ea-libxml2/lib64 -lxml2' 'LIBZIP_CFLAGS=-I/opt/cpanel/ea-libzip/include' 'LIBZIP_LIBS=-L/opt/cpanel/ea-libzip/lib64 -lzip'
how we can fixed the error?


Thanks
 

cPanelChris

Moderator
Staff member
Feb 16, 2020
38
4
8
Houston, TX
cPanel Access Level
Root Administrator
Hello @000 ,

Thank you for the update.

I would recommend checking that the PHP 7.3 and PHP 7.4 configurations match to ensure there aren't any issues there. Does PHP 7.3 have any extensions that are missing in PHP 7.4. Is PHP 7.4 disabling any functions that PHP 7.3 allows?

I would also recommend reviewing the PHP documentation regarding migrating from PHP 7.3 to 7.4. There may be functions that were only deprecated in PHP 7.3 that have since been removed in PHP 7.4, or other similar changes.

Lastly, it's possible that the PHP script may be suppressing the logging or displaying of errors. I'd recommend double-checking this to ensure any errors that may be occurring aren't being hidden from you.
 

000

Well-Known Member
Jun 3, 2008
270
12
68
Hello @000 ,

Thank you for the update.

I would recommend checking that the PHP 7.3 and PHP 7.4 configurations match to ensure there aren't any issues there. Does PHP 7.3 have any extensions that are missing in PHP 7.4. Is PHP 7.4 disabling any functions that PHP 7.3 allows?

I would also recommend reviewing the PHP documentation regarding migrating from PHP 7.3 to 7.4. There may be functions that were only deprecated in PHP 7.3 that have since been removed in PHP 7.4, or other similar changes.

Lastly, it's possible that the PHP script may be suppressing the logging or displaying of errors. I'd recommend double-checking this to ensure any errors that may be occurring aren't being hidden from you.
Thanks master.

Before of write here, we check extensions, options, errors, .ini.

Also we NO´t use "functions new/recients", as
Code:
password_algos()
or similar.

Also we use this in our "smtp.php":
Code:
ini_set('display_errors', 1);
error_reporting(E_ALL);
ever when we use PHP 7.4, the sender get this answer:
Code:
local delivery failed

Action: failed
Final-Recipient: rfc822;[email protected]
Status: 5.0.0
can you confirm your sercer cPanel execute/run correctlly PIPE/STDIN using PHP 7.4 ?

thanks
 

cPanelChris

Moderator
Staff member
Feb 16, 2020
38
4
8
Houston, TX
cPanel Access Level
Root Administrator
Hello @000 ,

I'm not exactly sure what you are asking. Are you asking if PHP 7.4 is able to read piped data from stdin? If so, then yes. The example below shows this.
Code:
# cat test.php
<?
$var=file("php://stdin");
var_dump($var);

# echo -n "piped data test"|/opt/cpanel/ea-php74/root/usr/bin/php test.php
array(1) {
  [0]=>
  string(15) "piped data test"
}
 

cPanelChris

Moderator
Staff member
Feb 16, 2020
38
4
8
Houston, TX
cPanel Access Level
Root Administrator
Hello @000 ,

You ran the test above and it returned NULL? If so, I would advise opening a ticket so we can look into this deeper. This can be done from the link in my signature, or from the following location in WHM.

Home » Support » Create Support Ticket
 

000

Well-Known Member
Jun 3, 2008
270
12
68
Hello @000 ,

You ran the test above and it returned NULL? If so, I would advise opening a ticket so we can look into this deeper. This can be done from the link in my signature, or from the following location in WHM.

Home » Support » Create Support Ticket
Thanks Chris.

if we open TICKET can YOU look?
(no other thecnic, YOU)


else: how we can open T and asign T to CHRIS from cPanel ?

Regads
 

000

Well-Known Member
Jun 3, 2008
270
12
68
we do THE SAME TEST in OTHER server and result is the SAME:

with PHP 7.3 good, with PHP 7.4 BREAK

Logically is necessary SEND email, and no OPEN file.php from browser.

Who can give solutio to this BUG in PHP 7.4 ?


Some idea about how to fix this error in PHP 7.4 ?
 

000

Well-Known Member
Jun 3, 2008
270
12
68
>>> I would advise opening a ticket so we can look into this deeper.

Thanks,
by four days we are waiting, (T# 93903103).

Last answer, (three days back):
""" would be best to escalate the ticket to Level 4/QA for further review. """


What means Level 4/QA ?
How many time for a solution?
4 weeks, 4 months ... ?
 

wintech2003

Well-Known Member
PartnerNOC
Sep 15, 2010
98
26
68
Greece
cPanel Access Level
DataCenter Provider
Are you using MultiPHP Manager to change PHP versions, or CloudLinux's PHP Selector?
Are you sure that in PHP 7.4 your script is using the php-cli binary and not the php-cgi one?
 

000

Well-Known Member
Jun 3, 2008
270
12
68
Thanks Wintech2003
Are you using MultiPHP Manager to change PHP versions, or CloudLinux's PHP Selector?
MultiPHP Manager


Are you sure that in PHP 7.4 your script is using the php-cli binary and not the php-cgi one?
our SCRPT return CLI for
PHP:
echo PHP_SAPI;
And last answer from staff cpanel is:

""" would be best to escalate the ticket to Level 4/QA for further review. """

5 days back ...
 

wintech2003

Well-Known Member
PartnerNOC
Sep 15, 2010
98
26
68
Greece
cPanel Access Level
DataCenter Provider
On the pipe do you use |/usr/bin/php -q [path to your script] or |/usr/local/bin/php -q [path to your script] or do you specify the exact binary ie |/opt/cpanel/ea-php74/root/usr/bin/php [path to your script] ?

Also, does your script have a shebang? If so, what is it? A symlink like /usr/local/bin/php or an exact path like /opt/cpanel/ea-php74/root/usr/bin/php ?
 

000

Well-Known Member
Jun 3, 2008
270
12
68
On the pipe do you use |/usr/bin/php -q [path to your script] or |/usr/local/bin/php -q [path to your script] or do you specify the exact binary ie |/opt/cpanel/ea-php74/root/usr/bin/php [path to your script] ?

Also, does your script have a shebang? If so, what is it? A symlink like /usr/local/bin/php or an exact path like /opt/cpanel/ea-php74/root/usr/bin/php ?
Again: THANKS MASTER.

Please remember:

script run "PERFECT" in ALL versions PHP, ONLY with PHP 7.4 result = FAIL.

With this, YES: shebang, CHMOD, location, etc... ALL is fine.

Only fail with PHP 7.4 and now is DAY #5 waiting answer from

""" would be best to escalate the ticket to Level 4/QA for further review. """


Again:
what means 4/QA ?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
2,298
306
213
cPanel Access Level
Root Administrator
Hey there @000

Level 4 means that the ticket is with our development team. It likely will not receive replies as quickly as you are used to with our standard support team, but it's still being worked on and you'll get details as soon as we have them. I do see one of our technicians replied to that ticket about one hour ago and asked for some additional details.
 
Thread starter Similar threads Forum Replies Date
G Installation & Updates 1
Similar threads
Apache Piped logging v74