cognitus / php7-mga Goto Github PK
View Code? Open in Web Editor NEWsource code for build .rpm php7 in mageia 6
source code for build .rpm php7 in mageia 6
Hi.
Currently I'm testing the latest version 7.1.11 of PHP7 from this source. Everything works fine except for one thing. Some of my sites use PDO driver to access mysql database. They set PDO::ATTR_STRINGIFY_FETCHES to false and expect returned numbers as numbers not strings. Setting this attribute to false has no influence to the results and numbers are returned always as strings.
I made an example code which demonstrates this issue. If it's possible could you please test it on some mysql database? I'm not sure where is the problem. Thanks!
<?php
$pdo = new PDO('mysql:host=localhost;dbname=test_db', 'user', 'password', [
PDO::ATTR_STRINGIFY_FETCHES => false,
PDO::ATTR_EMULATE_PREPARES => false,
]);
$data = $pdo->query("SELECT number FROM table")->fetchAll();
var_dump($data);
?>
phpinfo of my server... https://drive.google.com/file/d/1Zk5cVcBmNYVpLDRoriVMPX6vtosB1mia/view?usp=sharing
Hi!
Trying to compile, I got following error...
Build complete.
Don't forget to run 'make test'.
+ cp -af php_config.h.cgi main/php_config.h
+ make -f Makefile.cgi sapi/cgi/php-cgi
make: 'sapi/cgi/php-cgi' is up to date.
+ cp -af php_config.h.apxs main/php_config.h
+ cp -af php_config.h.fpm main/php_config.h
+ make -f Makefile.fpm sapi/fpm/php-fpm
/bin/sh /root/rpmbuild/BUILD/php-7.1.10/libtool --silent --preserve-dup-deps --mode=compile cc -I/root/rpmbuild/BUILD/php-7.1.10/sapi/fpm -Isapi/fpm/ -I/root/rpmbuild/BUILD/php-7.1.10/sapi/fpm/ -DPHP_ATOM_INC -I/root/rpmbuild/BUILD/php-7.1.10/include -I/root/rpmbuild/BUILD/php-7.1.10/main -I/root/rpmbuild/BUILD/php-7.1.10 -I/root/rpmbuild/BUILD/php-7.1.10/ext/date/lib -I/usr/include/libxml2 -I/usr/include/enchant -I/usr/X11 -I/usr/include/freetype2 -I/usr/include/imap -I/usr/lib64/firebird/include -I/root/rpmbuild/BUILD/php-7.1.10/include/mbfl -I/usr/include/mysql -I/usr/include/mysql/.. -I/usr/include/pspell -I/usr/include/xmlrpc-epi -I/root/rpmbuild/BUILD/php-7.1.10/TSRM -I/root/rpmbuild/BUILD/php-7.1.10/Zend -I/usr/include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fPIC -L/usr/lib64 -fno-strict-aliasing -DZEND_SIGNALS -c /root/rpmbuild/BUILD/php-7.1.10/sapi/fpm/fpm/fpm.c -o sapi/fpm/fpm/fpm.lo
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
Makefile.fpm:637: recipe for target 'sapi/fpm/fpm/fpm.lo' failed
make: *** [sapi/fpm/fpm/fpm.lo] Error 1
chyba: Špatný návratový kód z /var/tmp/rpm-tmp.6UwOY2 (%build)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.