Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] PHP: Uncaught Error: Class 'SQLite3' not found
@ 2020-05-11 21:12 ILadis
  2020-05-15 19:08 ` newbluemoon
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: ILadis @ 2020-05-11 21:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1008 bytes --]

New issue by ILadis on void-packages repository

https://github.com/void-linux/void-packages/issues/21852

Description:
### System

* xuname:  `Void 4.19.118_1 armv7l Unknown uptodate rF`
* package:  `php-7.4.5_1`, `php-sqlite-7.4.5_1`

### Expected behavior
I'm trying to get the PHP SQLite3 extension working on my Raspberry PI. I installed the above packages and enabled the extension in `/etc/php/php.ini` by uncommenting `;extension=sqlite3`.

Executing `php -m` does **not** list sqlite as a PHP module.
Executing `php -i` does **not** mention any SQLite3 support.

### Actual behavior
SQLite3 should work after installing `php-sqlite-7.4.5_1` and enabling the extension in `/etc/php/php.ini`.

### Steps to reproduce the behavior
Install the above packages, enable SQLite3 extension and run `php -r 'new SQLite3("db");'`:

```
PHP Fatal error:  Uncaught Error: Class 'SQLite3' not found in Command line code:1
Stack trace:
#0 {main}
  thrown in Command line code on line 1
```


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: PHP: Uncaught Error: Class 'SQLite3' not found
  2020-05-11 21:12 [ISSUE] PHP: Uncaught Error: Class 'SQLite3' not found ILadis
@ 2020-05-15 19:08 ` newbluemoon
  2020-05-16  0:59 ` ILadis
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: newbluemoon @ 2020-05-15 19:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 547 bytes --]

New comment by newbluemoon on void-packages repository

https://github.com/void-linux/void-packages/issues/21852#issuecomment-629429660

Comment:
Just did an install on my up-to-date RPi armv7l-musl and aarch64-musl. Running the command above succeeded. No error reported, an empty 'db' was created and `php -m` does report sqlite support.

On armv7l, however, it failed as above. I don’t have other systems to test handy right now.

It seems the cross built php does work, at least for musl systems. So what’s different on glibc systems?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: PHP: Uncaught Error: Class 'SQLite3' not found
  2020-05-11 21:12 [ISSUE] PHP: Uncaught Error: Class 'SQLite3' not found ILadis
  2020-05-15 19:08 ` newbluemoon
@ 2020-05-16  0:59 ` ILadis
  2020-05-16 19:58 ` newbluemoon
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: ILadis @ 2020-05-16  0:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 463 bytes --]

New comment by ILadis on void-packages repository

https://github.com/void-linux/void-packages/issues/21852#issuecomment-629564956

Comment:
I tried some other extensions and these did not work as well. So it does not seem to be a SQLite exclusive issue.

I also tried compiling `php` myself on the RPi by cloning this repository and running `./xbps-src pkg php`. The package build without any errors and after installing it, everything worked as expected.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: PHP: Uncaught Error: Class 'SQLite3' not found
  2020-05-11 21:12 [ISSUE] PHP: Uncaught Error: Class 'SQLite3' not found ILadis
  2020-05-15 19:08 ` newbluemoon
  2020-05-16  0:59 ` ILadis
@ 2020-05-16 19:58 ` newbluemoon
  2020-05-16 21:26 ` [ISSUE] [CLOSED] " jnbr
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: newbluemoon @ 2020-05-16 19:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 216 bytes --]

New comment by newbluemoon on void-packages repository

https://github.com/void-linux/void-packages/issues/21852#issuecomment-629698485

Comment:
I think I found the solution, please test #22019 if it works for you.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ISSUE] [CLOSED] PHP: Uncaught Error: Class 'SQLite3' not found
  2020-05-11 21:12 [ISSUE] PHP: Uncaught Error: Class 'SQLite3' not found ILadis
                   ` (2 preceding siblings ...)
  2020-05-16 19:58 ` newbluemoon
@ 2020-05-16 21:26 ` jnbr
  2020-05-18  7:59 ` ILadis
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jnbr @ 2020-05-16 21:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1011 bytes --]

Closed issue by ILadis on void-packages repository

https://github.com/void-linux/void-packages/issues/21852

Description:
### System

* xuname:  `Void 4.19.118_1 armv7l Unknown uptodate rF`
* package:  `php-7.4.5_1`, `php-sqlite-7.4.5_1`

### Actual behavior
I'm trying to get the PHP SQLite3 extension to work on my Raspberry PI. I installed the above packages and enabled the extension in `/etc/php/php.ini` by uncommenting `;extension=sqlite3`.

Executing `php -m` does **not** list sqlite as a PHP module.
Executing `php -i` does **not** mention any SQLite3 support.

### Expected behavior
SQLite3 should work after installing `php-sqlite-7.4.5_1` and enabling the extension in `/etc/php/php.ini`.

### Steps to reproduce the behavior
Install the above packages, enable SQLite3 extension and run `php -r 'new SQLite3("db");'`:

```
PHP Fatal error:  Uncaught Error: Class 'SQLite3' not found in Command line code:1
Stack trace:
#0 {main}
  thrown in Command line code on line 1
```


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: PHP: Uncaught Error: Class 'SQLite3' not found
  2020-05-11 21:12 [ISSUE] PHP: Uncaught Error: Class 'SQLite3' not found ILadis
                   ` (3 preceding siblings ...)
  2020-05-16 21:26 ` [ISSUE] [CLOSED] " jnbr
@ 2020-05-18  7:59 ` ILadis
  2020-05-18  8:00 ` ILadis
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: ILadis @ 2020-05-18  7:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]

New comment by ILadis on void-packages repository

https://github.com/void-linux/void-packages/issues/21852#issuecomment-630013276

Comment:
I installed the updated version `php-7.4.5_2` on my RPi and can confirm it's working now. Thanks for fixing!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: PHP: Uncaught Error: Class 'SQLite3' not found
  2020-05-11 21:12 [ISSUE] PHP: Uncaught Error: Class 'SQLite3' not found ILadis
                   ` (4 preceding siblings ...)
  2020-05-18  7:59 ` ILadis
@ 2020-05-18  8:00 ` ILadis
  2022-07-11 21:39 ` prog98
  2023-03-25  8:56 ` JimChristop
  7 siblings, 0 replies; 9+ messages in thread
From: ILadis @ 2020-05-18  8:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]

New comment by ILadis on void-packages repository

https://github.com/void-linux/void-packages/issues/21852#issuecomment-630013276

Comment:
I installed the updated version `php-7.4.6_2` on my RPi and can confirm it's working now. Thanks for fixing!

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: PHP: Uncaught Error: Class 'SQLite3' not found
  2020-05-11 21:12 [ISSUE] PHP: Uncaught Error: Class 'SQLite3' not found ILadis
                   ` (5 preceding siblings ...)
  2020-05-18  8:00 ` ILadis
@ 2022-07-11 21:39 ` prog98
  2023-03-25  8:56 ` JimChristop
  7 siblings, 0 replies; 9+ messages in thread
From: prog98 @ 2022-07-11 21:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 499 bytes --]

New comment by prog98 on void-packages repository

https://github.com/void-linux/void-packages/issues/21852#issuecomment-1180896887

Comment:
if you use xampp or ... first close xampp or ...
go to this directori : xampp > php > php.ini ( find this file php.ini on php folder)
and open php.ini file with notepad
and search SQLite3
and remove ; this line ;extension=sqlite3
so finaly be extension=sqlite3
and save file 
end open xampp

sorry my cant good speak english i hope i can help you.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: PHP: Uncaught Error: Class 'SQLite3' not found
  2020-05-11 21:12 [ISSUE] PHP: Uncaught Error: Class 'SQLite3' not found ILadis
                   ` (6 preceding siblings ...)
  2022-07-11 21:39 ` prog98
@ 2023-03-25  8:56 ` JimChristop
  7 siblings, 0 replies; 9+ messages in thread
From: JimChristop @ 2023-03-25  8:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 547 bytes --]

New comment by JimChristop on void-packages repository

https://github.com/void-linux/void-packages/issues/21852#issuecomment-1483768170

Comment:
> if you use xampp or ... first close xampp or ... go to this directori : xampp > php > php.ini ( find this file php.ini on php folder) and open php.ini file with notepad and search SQLite3 and remove ; this line ;extension=sqlite3 so finaly be extension=sqlite3 and save file end open xampp
> 
> sorry my cant good speak english i hope i can help you.

It worked, a thumbs up from me, good job!

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-03-25  8:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-11 21:12 [ISSUE] PHP: Uncaught Error: Class 'SQLite3' not found ILadis
2020-05-15 19:08 ` newbluemoon
2020-05-16  0:59 ` ILadis
2020-05-16 19:58 ` newbluemoon
2020-05-16 21:26 ` [ISSUE] [CLOSED] " jnbr
2020-05-18  7:59 ` ILadis
2020-05-18  8:00 ` ILadis
2022-07-11 21:39 ` prog98
2023-03-25  8:56 ` JimChristop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).