Coder Social home page Coder Social logo

php7-mga's People

Contributors

cognitus avatar

Stargazers

 avatar

Watchers

 avatar

php7-mga's Issues

mysql PDO driver always returns numbers as strings

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

compile error

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.