473,699 Members | 2,251 Online
Bytes | Software Development & Data Engineering Community
+ 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 7698
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
14146
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 uninitialized value in concatenation (.) at register.pl line 38, <STDIN> line 10." The PERL code is as follows:
2
13394
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. I'm inserting simple records into a table. But one insert command is placing 2 or 3 records into the table. The 'extra' records, have the same data as the previous insert incident, (except for the timestamp).
21
6005
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 use this code: CurrentDb().Execute strMySql', dbFailOnError I still get warnings that the table already exists. Is there another command that I am supposed to use?
2
4621
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 etc) from a XML file to move files across the internal network to a different domain. This is a console application that should have the option of specifying the parameters at the commandline prompt. When I specify the parameters at cmd line, it...
9
19723
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
5600
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 entered from the keyboard. I launch this utility (through a batch file) programmatically in a command-shell process through the Process object with no window (i.e. myProcess.StartInfo.CreateNoWindow = true). I have re-directed the StandardInput to a...
10
2615
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 they rarely give their votes online. Just look at digg and compare the number of votes to the number of people visiting their website. IOW what if somebody needs votes but cannot afford to bother users with registration process?
0
7354
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 longer able to use sudo. And attempting to authenticate wasn't working; my computer kept complaining that I wasn't providing a valid administrator's Username. "That's odd," I thought, since I'd always had an administrator account.
2
3968
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 the paths ends up in "\", it causes the closing double quote to be ignored and the argument gets concatenated with all the subsequent arguments until another double quote is found or until the end of the string. Example:
0
8622
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9045
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8930
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8892
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7767
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6538
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5878
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3062
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 we have to send another system
2
2359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.