[php-src] master: Fix bug #65106: PHP fails to compile ext/fileinfo

From: Date: Fri, 22 Mar 2024 14:00:24 +0000
Subject: [php-src] master: Fix bug #65106: PHP fails to compile ext/fileinfo
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-127831@lists.php.net to get a copy of this message
Author: Guillaume Outters (outtersg) Committer: Niels Dossche (nielsdos) Date: 2024-03-22T15:00:15+01:00 Commit: https://github.com/php/php-src/commit/bcd3eec44aa4e4eeb7deb4ee6b6cfb596dcc7baa Raw diff: https://github.com/php/php-src/commit/bcd3eec44aa4e4eeb7deb4ee6b6cfb596dcc7baa.diff Fix bug #65106: PHP fails to compile ext/fileinfo Make data_file.c's generator output its array initialization "by list of strings", instead of "by list of chars": that makes the compiler happier. Use strtr() with a precomputed map, instead of a loop over ord(), to generate in 1/100th the time. Avoids ambiguous 0x tokens (as specified in C standards), by using octal. Closes GH-10422. Changed paths: M ext/fileinfo/create_data_file.php M ext/fileinfo/data_file.c Diff:

« previous php.cvs (#127831) next »