php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58641 Crash on connection (Symbol not found: _fourd_init)
Submitted: 2009-04-22 10:19 UTC Modified: 2009-04-23 08:23 UTC
From: php at 4d dot fr Assigned:
Status: Closed Package: PDO_4D (PECL)
PHP Version: 5.2.6 OS: Mac OS X Server 10.5.6
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at 4d dot fr
New email:
PHP Version: OS:

 

 [2009-04-22 10:19 UTC] php at 4d dot fr
Description:
------------
PHP crash while trying to connect 4D with PDO_4D

The configure Line is :

'/SourceCache/apache_mod_php/apache_mod_php-44.1/php/configure' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--with-apxs2=/usr/sbin/apxs' '--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli' '--with-zlib-dir=/usr' '--enable-trans-sid' '--with-xml' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' '--enable-dbx' '--enable-sockets' '--with-iodbc=/usr' '--with-curl=/usr' '--with-config-file-path=/etc' '--sysconfdir=/private/etc' '--with-mysql-sock=/var/mysql' '--with-mysqli=/usr/bin/mysql_config' '--with-mysql=/usr' '--with-openssl' '--with-xmlrpc' '--with-xsl=/usr' '--without-pear'


With these shared extensions :

extension=pdo_4d.so
extension=bcmath.so
extension=bz2.so
extension=gd.so
extension=pdo_4d.so
extension=soap.so
extension=wddx.so
extension=zip.so

PDO_4D description in phpinfo is :

Version 0.1alpha (2009-02-19)
Revision $Id: pdo_4d.c 50 2009-03-18 15:25:39Z splanquart $

mbstring description is :


Reproduce code:
---------------
<html><head><title>test 4D</title></head>
<body>
<h1>test 4D</h1>
<pre>
<?php
try {
	$dbh = new PDO('4D:host=127.0.0.1;port=19812;charset=utf-8', 'SQL_User', 'SQL_Pwd');
	if ($dbh) {
		$sth = $dbh->prepare("SELECT * FROM _USER_SCHEMAS");
		$sth->execute();
		echo 'Fetch all of the remaining rows in the result set' . PHP_EOL;
		$result = $sth->fetchAll();
		print_r($result);
	}
} catch (PDOException $e) {
    echo 'Error PDO : ' . $e->getMessage(); 
} catch (Exception $e) {
    echo 'Error PHP : ' . $e->getMessage();
}
?>
</pre></body></html>

Expected result:
----------------
The data resulting from the SQL request

Actual result:
--------------
No response from Apache to the HTTP request

Apache Log :

[Wed Apr 22 11:17:28 2009] [notice] child pid 97066 exit signal Trace/BPT trap (5)
dyld: lazy symbol binding failed: Symbol not found: _fourd_init
  Referenced from: /usr/libexec/apache2/pdo_4d.so
  Expected in: dynamic lookup

dyld: Symbol not found: _fourd_init
  Referenced from: /usr/libexec/apache2/pdo_4d.so
  Expected in: dynamic lookup


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-22 11:49 UTC] php at 4d dot fr
The configure used for the pdo_4d shared module is

MACOSX_DEPLOYMENT_TARGET=10.5 \
CFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os  -pipe -no-cpp-precomp" \
CCFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os  -pipe" \
CXXFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os  -pipe" \
LDFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -bind_at_load" \
./configure \
--target=x86_64 \
--enable-mbstring \
--enable-pdo \
--with-pdo-4d=/usr/local/lib4d_sql
 [2009-04-23 08:23 UTC] php at 4d dot fr
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Feb 16 01:01:26 2019 UTC