php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55934 sqlite_popen is not working at all under Cygwin
Submitted: 2003-12-06 12:08 UTC Modified: 2004-04-28 08:12 UTC
From: Tino dot Lange at isg dot de Assigned:
Status: Wont fix Package: SQLite (PECL)
PHP Version: 4.3.3 OS: Windows 2000 / Cygwin
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Tino dot Lange at isg dot de
New email:
PHP Version: OS:

 

 [2003-12-06 12:08 UTC] Tino dot Lange at isg dot de
Description:
------------
I compiled the new php 4.3.4 under cygwin today. (4.3.4 not 4.3.3 - I couldn't select this version in the drop-down-menu of your bug-form-page).

It compiles and works out of the box.

Configure Command =>  './configure' '--with-apxs=/usr/sbin/apxs' '--without-mysql' '--with-sqlite' '--with-bz2' '--with-gdbm'

No changes to php.ini compared to php.ini-dist.

As you can see I also included the sqlite extension (--with-sqlite). It compiles and works fine - exception: the function sqlite_popen is not working. I have to use sqlite_open all the time.

The problem occurs in the php.exe as well as in the embedded apache dll.

I also upgraded the PECL SQLite extension from your 1.0 release to the most current CVS version (04.12.2003) - but this didn't change. It's simply not working at all under Cygwin. The sqlite_popen *always* fails.

If I compile the same source code under my linux box it just works fine.




Reproduce code:
---------------
<?php
$dbname = "bbb";
$db = sqlite_popen($dbname);
echo "$db\n";
sqlite_close($db);
$db = NULL;
echo "Done\n";
?>


Expected result:
----------------
Resource id #4
Done



Actual result:
--------------

Warning: sqlite_popen(): unable to open database: /tmp/bbb in /tmp/bert on line 3


Warning: sqlite_close() expects parameter 1 to be resource, boolean given in /tmp/bert on line 5
Done


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-13 09:23 UTC] wez@php.net
Does it work if you use an official binary release of PHP
and the official php_sqlite.dll from 
http://snaps.php.net/win32/PECL_STABLE/ ?
 [2004-01-31 07:11 UTC] Tino dot Lange at isg dot de
Yes, with the recent php-4.3.4 (just downloaded from php.net) for win32 and the php_sqlite.dll (from the download location that you gave in this ticket) it works fine!

But of course it might be a huge difference if one works within native win32 (above) or within the cygwin environment (ticket). My problem happened within the cygwin environment (posix / linux emulation layer for win32 - www.cygwin.com)

Thanks so far for looking at my bug report!
 [2004-04-28 08:12 UTC] d dot rethans at jdimedia dot nl
Compiling under Cygwin is not supported by the PHP development team. Just stick to the official windows distribution.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC