Is using PDO::PARAM_INT for float values a common practice in PHP development, and why might it have worked in previous PHP versions?

Using PDO::PARAM_INT for float values is not a common practice in PHP development because PDO::PARAM_INT is specifically for integer values. It might have worked in previous PHP versions due to PHP's loose type coercion, where a float value could be automatically cast to an integer. However, it is not recommended as it can lead to unexpected behavior or data loss.

// Incorrect usage of PDO::PARAM_INT for float values
$value = 3.14;
$stmt = $pdo->prepare("SELECT * FROM table WHERE column = :value");
$stmt->bindValue(':value', $value, PDO::PARAM_INT);
$stmt->execute();
```

To fix this issue, you should use PDO::PARAM_STR for float values to ensure proper data type handling:

```php
// Correct usage of PDO::PARAM_STR for float values
$value = 3.14;
$stmt = $pdo->prepare("SELECT * FROM table WHERE column = :value");
$stmt->bindValue(':value', $value, PDO::PARAM_STR);
$stmt->execute();