Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1391,6 +1391,47 @@ This provides a **persistent session storage** mechanism using **SQLite** as the
* **Lightweight:** Suitable for shared hosting or small applications.
* **Reliability:** Prevents session loss when PHP restarts, unlike file-based sessions.

# MagicObject Version 3.20.0

## Change: Removal of Math-Related Classes

In this release, several math-related classes have been **removed** from MagicObject to keep the core library lightweight and focused.

### Removed Modules

1. Complex Numbers
2. Matrix Operations
3. Geometry Utilities

### Migration

These classes are **not discontinued**, but have been moved into a **new dedicated repository**:

👉 [Planetbiru/Math](https://github.com/Planetbiru/Math)

Developers who rely on these math utilities should install the new package separately:

```bash
composer require planetbiru/math
```

## New Feature: PDO Connection Verification Method

A new method isPdoConnected() has been introduced to allow developers to verify not only the TCP-level connection, but also the ability of PHP to execute SQL statements on the database.

Here’s the corrected version with improved grammar and clarity:


## Bug Fix: Handle Exception in method getDatabaseCredentialsFromPdo($pdo, $driver, $dbType)

If an error occurs when executing:

```php
$dsn = $pdo->getAttribute(PDO::ATTR_CONNECTION_STATUS);
```

`getDatabaseCredentialsFromPdo($pdo, $driver, $dbType)` will return an empty instance of `SecretObject`.

## Enhancement: Improved `getDatabaseCredentialsFromPdo` Handling

The method **`getDatabaseCredentialsFromPdo`** has been updated to better handle
Expand Down
Loading