473,471 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PHP on command line issues: Function registration failed - duplicate name

I just upgraded to PHP 4.4.2 on my Slackware 10.2 system. And
Apache/mySQL/PHP all work great through a browser. No errors.
But when I try to run a PHP script through the command line, which I
need to do, I get blocks of errors like:

root@slackserve:/var/www/htdocs# php ./phptest.php
PHP Warning: Unknown(): Unable to load dynamic library
'/usr/lib/php/extensions/mysql.so' - libmysqlclient.so.14: cannot open
shared object file: No such file or directory in Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
textdomain in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - gettext
in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - _ in
Unknown on line 0
PHP Warning: Function registration failed - duplicate name - dgettext
in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - dcgettext
in Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
bindtextdomain in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - ngettext
in Unknown on line 0
PHP Warning: Function registration failed - duplicate name - dngettext
in Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
dcngettext in Unknown on line 0
PHP Warning: Function registration failed - duplicate name -
bind_textdomain_codeset in Unknown on line 0
PHP Warning: gettext: Unable to register functions, unable to load in
Unknown on line 0

Even so, it WILL actually spit out the proper data at the end. So, it's
technically working, but preceded by all these errors.
mysql.so is in the extensions dir just fine. And php.ini have no
references in it anywhere to any of these other items mentioned.

Any pointers on what I should look into here?
Thanks!
-Liam

Mar 14 '06 #1
2 7663
Looks like both the MySQL and gettext extensions were compiled
statically into the PHP binary. Those errors probably are triggered too
when Apache starts--you just don't see them. Edit php.ini and comment
out these two extensions. Then check phpinfo() through your browser to
see if they're still active.

Mar 15 '06 #2

Chung Leong wrote:
Looks like both the MySQL and gettext extensions were compiled
statically into the PHP binary. Those errors probably are triggered too
when Apache starts--you just don't see them. Edit php.ini and comment
out these two extensions. Then check phpinfo() through your browser to
see if they're still active.


Oh dear, that's it.
I wouldn't have expected that that was the problem and removing the
lines the fix. Counter-intuitive.
Thanks for the help!
-Liam

Mar 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: G Kannan | last post by:
Hey all! I have written a perl script to retrieve information from a HTML Form and insert the data into an Oracle database table. I am gettting the the following error message: "Use of...
2
by: george | last post by:
This is like the bug from hell. It is kind of hard to explain, so please bear with me. Background Info: SQL Server 7.0, on an NT box, Active Server pages with Javascript, using ADO objects. ...
21
by: Colleyville Alan | last post by:
I am now using the Execute command to run SQL for action queries. When I had them as saved queries, I would use DoCmd.SetWarnings False to allow the queries to overwrite existing tables. when I...
2
by: Divya | last post by:
Hello, I am developing a simple move file utility to move files from one domain to another in the same internal network. My program runs fine when it reads the parameters (user, domain, password...
9
by: shank | last post by:
What is the proper syntax to run this command line in ASP? wzzip.exe File.zip File.txt thanks
5
by: Mark M | last post by:
I am attempting to use a third party command-line utility (WinDump.exe) to capture network traffic for perfromance analysis. This utility when launched captures network traffic until Ctrl-C is...
10
by: Marek Zawadzki | last post by:
Hi all. Is it possible to implement an accurate voting mechanism (think digg.com) that does not require users to sign in before voting? I think for many people registering is pain and thus...
0
pbmods
by: pbmods | last post by:
FIXING NETINFO ERRORS ON THE COMMAND LINE LEVEL: ADVANCED PREREQS: TERMINAL / COMMAND LINE, USERS AND GROUPS Intro Today, while performing routine maintenance, I noticed that I was no...
2
by: =?Utf-8?B?UmFtb24gR2VuZQ==?= | last post by:
Hello: I am building a console application and I am having an issue with the command line arguments. A couple of my arguments are paths and they are usually enclosed in double quotes. If one of...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.