Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复bindValue绑定长整型参数失精度,导致where无法正确匹配数据问题!!!该问题影响了thinkphp目前全部版本 #505

Open
wants to merge 1 commit into
base: 3.0
Choose a base branch
from

Commits on Oct 12, 2023

  1. Update PDOConnection.php

    修复php转换浮点数导致的精度问题,如 
    ```php
    <?php
    
    $a = '99999999999999';
    echo (float)$a; // 99999999999999
    $b = '999999999999999';
    echo (float)$b; // 999999999999991.0E+15
    ```
    而self::PARAM_FLOAT = 18已经超过了php的15位的长度了,会导致无法where匹配不上长整型的数据
    slongzhang committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    cd48a94 View commit details
    Browse the repository at this point in the history