php-general Digest 23 Jan 2005 01:32:32 -0000 Issue 3243

Topics (messages 207039 through 207060):

Re: Preg_match----------help
        207039 by: RaTT

Re: end of array
        207040 by: Raj Shekhar
        207041 by: M. Sokolewicz
        207042 by: Raj Shekhar
        207043 by: Rasmus Lerdorf
        207046 by: M. Sokolewicz
        207054 by: Jeffery Fernandez

Re: Classes and parents.
        207044 by: Jochem Maas
        207047 by: M. Sokolewicz

Re: multiple sessions on same server/domain
        207045 by: Marek Kilimajer

looking for a combination contact application/social networking app
        207048 by: Bruce Douglas
        207050 by: trobi

Loading all clases always
        207049 by: Ben Edwards (lists)
        207051 by: Chris

Is this even possible?
        207052 by: Tony Di Croce
        207053 by: Tony Di Croce
        207055 by: Jason Wong

Why no type hints for built-in types?
        207056 by: Terje Sletteb�
        207059 by: Terje Sletteb�

Why is access and visibility mixed up in PHP?
        207057 by: Terje Sletteb�

Why no overloading in PHP5?
        207058 by: Terje Sletteb�

php5 --enable-soap compile error
        207060 by: Marten Lehmann

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Hello, 

This regular expresion should help you on your way 

$regex = "/<[A-z_\-]+>?/";

HTH 
Jarratt

On Sat, 22 Jan 2005 17:03:30 +0600, Chandana Bandara
<[EMAIL PROTECTED]> wrote:
> hi ,
> 
> using preg_match , how can i match "<", "_" , ">" " - " such special 
> characters in a sentence  ???
> 
> Eg:
> 
> Strings are like this,
> 
> 1.Ahgrwgsgd dfjb yuhh dfh <ABCD AFGHFDc GHJGKJ ------------------ here i want 
> to match  <ABCD
> 
> 2.AFRYRGH  vhGHJGB <ASD_ASD_DER> GHJGJ  kjHGKJGK ---------- here i want to 
> match  <ASD_ASD_DER>
> 
> 3.GHHTGH GHJK <BO-CA JKJ JLKL ---------------here i want to match  <BO-CA
> 
> what is the most suitable way to match those data ? plz guide me ,
> 
> Thanx in advance,
> chandana
> 
>

--- End Message ---
--- Begin Message ---
Jeffery Fernandez <[EMAIL PROTECTED]> writes:

> Hi all,
> 
> I have a foreach loop on an array and within that loop I need to find
> if the array has reached the last pointer. I have tried
> 
> if (next($row))
> {
> 
> }
> 
> but that advances the pointer. Any tips on finding out if the array
> pointer has reached the last element ?

$n_elts = count($myarray);
for ($i=0; $i< $n_elts ; $i++)
{
        if ($i = $n_elts -1)
        {
                echo "On last element";
                break;
        }
        else
        {
                echo "Somwhere in the middle";
        }
}

--- End Message ---
--- Begin Message --- Raj Shekhar wrote:
Jeffery Fernandez <[EMAIL PROTECTED]> writes:


Hi all,

I have a foreach loop on an array and within that loop I need to find
if the array has reached the last pointer. I have tried

if (next($row))
{

}

but that advances the pointer. Any tips on finding out if the array
pointer has reached the last element ?


$n_elts = count($myarray);
for ($i=0; $i< $n_elts ; $i++)
{
        if ($i = $n_elts -1)
        {
                echo "On last element";
                break;
        }
        else
        {
                echo "Somwhere in the middle";
        }
}
that's an eternal loop in case you hadn't noticed (*rolls eyes*)
--- End Message ---
--- Begin Message ---
"M. Sokolewicz" <[EMAIL PROTECTED]> writes:

> Raj Shekhar wrote:

> > $n_elts = count($myarray);
> > for ($i=0; $i< $n_elts ; $i++)
> > {
> >         if ($i = $n_elts -1)
                  ^^^
Use of == required to make it work 

> >         {
> >                 echo "On last element";
> >                 break;
> >         }
> >         else
> >         {
> >                 echo "Somwhere in the middle";
> >         }
> > }
> that's an eternal loop in case you hadn't noticed (*rolls eyes*)

Oops :( not eternal loop though, only one loop 

--- End Message ---
--- Begin Message --- Jeffery Fernandez wrote:
Hi all,

I have a foreach loop on an array and within that loop I need to find if the array has reached the last pointer. I have tried

if (next($row))
{

}

but that advances the pointer. Any tips on finding out if the array pointer has reached the last element ?

end($arr); $last = key($arr); foreach($arr as $key=>$elem) { if($key !== $last) { ... } }

That would do exactly what you asked, however, it sounds like if you want to do something for every item in the array except the last you should just remove that last item before your loop.

$last = array_pop($arr);
foreach($arr as $elem) {
   ...
}

-Rasmus
--- End Message ---
--- Begin Message --- Raj Shekhar wrote:
"M. Sokolewicz" <[EMAIL PROTECTED]> writes:


Raj Shekhar wrote:


$n_elts = count($myarray);
for ($i=0; $i< $n_elts ; $i++)
{
       if ($i = $n_elts -1)

^^^
Use of == required to make it work


       {
               echo "On last element";
               break;
       }
       else
       {
               echo "Somwhere in the middle";
       }
}

that's an eternal loop in case you hadn't noticed (*rolls eyes*)


Oops :( not eternal loop though, only one loop
why one?
for($i=0; $i<$n;$i++) {
        $i = ($n-1);
}

to me that means the following:
1. check if $i<$n; true! ($i=0; $n>1)
2. $i=$n-1, this means that $i<$n (less by 1 in fact)
3. check if $i<$n; true! ($i=$n-1; $n>$i by definition)
4. $i is reset to $n-1
5-eternity. conditions are met, and var is reset

or am I missing something here? :)
--- End Message ---
--- Begin Message ---
Rasmus Lerdorf wrote:

Jeffery Fernandez wrote:

Hi all,

I have a foreach loop on an array and within that loop I need to find if the array has reached the last pointer. I have tried

if (next($row))
{

}

but that advances the pointer. Any tips on finding out if the array pointer has reached the last element ?


end($arr);
$last = key($arr);
foreach($arr as $key=>$elem) {
   if($key !== $last) {
      ...
   }
}

That would do exactly what you asked, however, it sounds like if you want to do something for every item in the array except the last you should just remove that last item before your loop.

$last = array_pop($arr);
foreach($arr as $elem) {
   ...
}

-Rasmus

Exactly what I wanted. Thanks everyone who contributed.

cheers,
Jeffery

--- End Message ---
--- Begin Message --- Dmitry wrote:
Thanks,
but I think that this code more easy.

class a {
 function say() { echo "A"; }
 function run() { $this->say(); }
}
class b {
 function say() { echo "B"; }
 function run() {
    $a = new a;
    $a->run();

for starters b doesn't even extend a and secondly the b::run() method is creating an object on each invocation - not exactly good use of OO.

besides which b::run() is creating an object of an arbitrary
class, assuming b was supposed to extend a in your example above
the you have hardcoded the parent into the subclass, thats plain wrong...

my example wasn't a specific solution to your problem but an example of 3 ways to acomplish the goal of calling the version of a method in the super class. if you didn't understand something just ask.

    }
}

$obj = new b;
$obj->run();


--- End Message ---
--- Begin Message ---
Jochem Maas wrote:

Dmitry wrote:

Thanks,
but I think that this code more easy.

class a {
 function say() { echo "A"; }
 function run() { $this->say(); }
}
class b {
 function say() { echo "B"; }
 function run() {
    $a = new a;
    $a->run();


for starters b doesn't even extend a
and secondly the b::run() method is creating an object
on each invocation - not exactly good use of OO.

besides which b::run() is creating an object of an arbitrary
class, assuming b was supposed to extend a in your example above
the you have hardcoded the parent into the subclass, thats plain wrong...

my example wasn't a specific solution to your problem but an example of 3 ways to acomplish the goal of calling the version of a method in the super class. if you didn't understand something just ask.

    }
}

$obj = new b;
$obj->run();


class a { function say() { echo "A"; } function run() { self::say(); } }

class b {
   function say() { echo "B"; }
   function run() {
      parent::run();
   }
}

would work fine though, I think :)
--- End Message ---
--- Begin Message --- Richard Lynch wrote:
Marek Kilimajer wrote:

COOOOOKIES, I'm talking about COOKIES.

Anytime you talk about cookies or cookie files, you mean session and
session files, respectively. These are completely different things,
please don't intermingle them.


session_set_cookie_params()
^^^^^^^

You're talking about a function whose name starts with session, which is
in the sessions section of the PHP Manual:
http://php.net/session_set_cookie_params

The Cookie in question is used to uniquely identify a surfer with PHP's
session files for that surfer.

What exactly to you think this function *DOES* if you aren't using
sessions and session files?

NOTHING!

It sets the file to be used when PHP sends the PHPSESSID Cookie which is
used for PHP's Session files.  Period.

Sorry, you completely wrong. Please, read about cookies, especialy the Path parameter.


Thus my point remains: On a shared server, I don't need to resort to calling this function to hijack your Cookie/session. PHP can read the raw session files. I can write a PHP script to read the raw session files, regardless of what directory the Cookie is set to use to store/retrieve the Cookie whose purpose is to identify those files.

Not if php is running under suexec+cgi or safe mode.
--- End Message ---
--- Begin Message ---
hi...

i'm in need of a glorified contact type application. i want/need to be able to 
allow
users to enter their information into the system, specify what category(s) they 
belong to, be able to see others, rank others, etc...

i also would like to be able to have some form of relational/6-degrees/ryze type
of system so the users can see/find others with similar interests.. 

and of course, i'd like this to be open source!!!

anbody have any ideas, or seen anything closely resembling anything like this.. 
i'd even be willing to look at multiple apps, with the intent of putting them 
together
as a comprehensive app!!

thanks

bruce
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Bruce Douglas napsal(a):

hi...

i'm in need of a glorified contact type application. i want/need to be able to allow
users to enter their information into the system, specify what category(s) they belong to, be able to see others, rank others, etc...

i also would like to be able to have some form of relational/6-degrees/ryze type
of system so the users can see/find others with similar interests..

and of course, i'd like this to be open source!!!

anbody have any ideas, or seen anything closely resembling anything like this.. i'd even be willing to look at multiple apps, with the intent of putting them together
as a comprehensive app!!

thanks

bruce
[EMAIL PROTECTED]



go head, and program it.
trobi

--- End Message ---
--- Begin Message ---
I have all my classes in a single directory.  I was thinking of
automatically loading them all at the beginning of every page.  The
logic being that the class definitions will get cached (I guess PHP uses
filesize/date/time) so the overhead would not be that great.  Also at
any given time they will all probably be needed by one of the visitors.

Ben 
-- 
Ben Edwards - Poole, UK, England
If you have a problem sending me email use this link
http://www.gurtlush.org.uk/profiles.php?uid=4
(email address this email is sent from may be defunct)

-- 
Ben Edwards - Poole, UK, England
If you have a problem sending me email use this link
http://www.gurtlush.org.uk/profiles.php?uid=4
(email address this email is sent from may be defunct)

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message ---
You may want to look at the PHP 5 __autoload function:

http://www.php.net/oop5.autoload

I know it's not the answer to your question, but it could be just as good, or better, than what you were looking for.

Chris

Ben Edwards (lists) wrote:

I have all my classes in a single directory.  I was thinking of
automatically loading them all at the beginning of every page.  The
logic being that the class definitions will get cached (I guess PHP uses
filesize/date/time) so the overhead would not be that great.  Also at
any given time they will all probably be needed by one of the visitors.

Ben


--- End Message ---
--- Begin Message ---
Is it even possible to connect to a postgres server (thats running on
linux) from a windows CLI php script?

I'm seeing a pg_connect() error... FATAL: no pg_hba.conf  entry for
host 192.168.1.100

Any ideas?

-- 

    td

--- End Message ---
--- Begin Message ---
Is it even possible to connect to a postgres server (thats running on
linux) from a windows CLI php script?

I'm seeing a pg_connect() error... FATAL: no pg_hba.conf  entry for
host 192.168.1.100

Any ideas?

-- 

    td

--- End Message ---
--- Begin Message ---
On Sunday 23 January 2005 07:20, Tony Di Croce wrote:
> Is it even possible to connect to a postgres server (thats running on
> linux) from a windows CLI php script?

Yes.

> I'm seeing a pg_connect() error... FATAL: no pg_hba.conf  entry for
> host 192.168.1.100

Exactly. So put the appropriate entry in pg_hba.conf.

> Any ideas?

Hop over to the postgresql site and consult the manual.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
New Year Resolution: Ignore top posted posts

--- End Message ---
--- Begin Message ---
(I've posted this to the PHP newsgroups, as well, but as many here might not
read them, I post here, as well. I hope that's not considered "overboard",
and if so, please let me know)

Hi.

I'm new here, and sorry if this has been discussed before; I didn't find it
searching the PHP groups. (I've also read recommendations to cross-post to
the other PHP groups, but if that is discouraged, please let me know. At the
same time, please then let me know which of the many PHP groups to post to.
:) )

In PHP5, you can provide "type hints" for functions, like this:

class Person {...}

function f(Person $p)
{
  ...
}

Since this is optional static typing for objects, why not make the same
capability available for all types, built-in types included?

I come from a background with generally static and strong typing (C++,
Java), and having worked with PHP a couple of years, I've quite a few times
got bitten by stupid bugs that could have been caught by static typing, such
as passing an empty string - which gets converted to 0 in an arithmetic
context, when the function was supposed to receive a number, or some such,
and no error is reported. These bugs can be hard to find.

This has been suggested in a few Q & A's at Zend, such as this one:
http://www.zend.com/expert_qa/qas.php?id=104&single=1

--- Start quote ---

Will be a support for type hints of simple types, like
class Foo{
    public function bar(int $var) {    }
}

    No, type hints of simple types will not be supported. The reason is
PHP's dynamic nature. A number posted to a script will arrive as a string
even though it's a number. In this case, PHP assumes that "10" and 10 are
the same thing. Having such type hints would not fit into this
auto-conversion of PHP.

--- End quote ---

I don't find this answer satisfactory. Yes, PHP has loose/weak typing, but
at any one time, a value or a variable has a distinct type. In the example
in the quote above, you'd have to ensure that the value you pass is of the
right type.

This would also open the door to overloading, although it seems from the
replies from Andi and Zeev in the Zend forums that neither optional static
typing, nor overloading is considered at this time, and likely not in the
future, either. :/ What I have seen of arguments against it, I haven't found
sufficiently convincing, so therefore I'd like to hear about the pros and
cons of optional static typing, and possibly overloading (however, that
should really be a separate thread). What the PHP manual calls "overloading"
has really nothing to do with the concept of overloading in other OO
languages, such as C++/Java.

There's a rather lively discussion about adding optional static typing in
Python (http://www.artima.com/weblogs/viewpost.jsp?thread=85551), and unless
it has already been, maybe it's time for us to consider it for PHP, as well.
The current static type checking in PHP5 is something rather half-baked,
only covering user-defined types.

Regards,

Terje

--- End Message ---
--- Begin Message ---
Ahem, in my posts, substitute "static typing" with "explicit/manifest
typing" (specifying the type of variables/parameters). After all, these are
checked at run-time, so a call that's not made won't be checked.

Regards,

Terje

--- End Message ---
--- Begin Message ---
(I've posted this to the PHP newsgroups, as well, but as many here might not
read them, I post here, as well. I hope that's not considered "overboard",
and if so, please let me know)

Well, as is customary when you're new to a group, you tend to post quite a
bit, :) so here's one more. Some things I've been wondering about with PHP
(5).

Today, I worked on an implementation of a finite state machine. Unlike the
pear::fsm, this one supports hierarchical states, and I intend to make it
available, as well. It exists in both PHP 4 and 5 versions, but only the
PHP5 version is relevant for this example. The base class defines some
(virtual) functions that may be overridden in a derived class, but they are
only called from the base class. My original code was as follows (I only
quote the bare minimum needed for illustration):

class fsm
{
  ...
  public function process($signal)
  {
    // null_action() is called from here (unless another action function is
specified for a transition)
  }

  private function null_action($from_state,$to_state)
  {
  }
}

class my_fsm extends fsm
{
  private function null_action($from_state,$to_state)
  {
    echo "Transition from $from_state to $to_state";
  }
}

In C++ this would work just fine: As null_action() is called from fsm, and
it's private in fsm, this works fine. It gets overridden in my_fsm, but
being private in fsm, it can only be called there (not in my_fsm), which is
as intended. This is because access and visibility are orthogonal concepts
in C++: The access specifiers only specify who are allowed to access (as in
calling, taking the address of, etc.) a function, but it doesn't affect
overriding.

The reason for this is as follows (from "The Design and Evolution of C++"):
By not letting the access specifiers affect visibility (including
overriding), changing the access specifiers of functions won't affect the
program semantics.

However, this is not so for PHP...

The above won't work, or at least not work as intended: The function
null_action() will only be visible in the class it's defined, and therefore
the derived class version won't override the base class version. In order to
get it to work, the access specifiers have to be changed to protected. This
means that derived classes may also _call_ the function, something that is
not desired. This means I can't enforce this design constraint of having
this function private.

Why is it done like this?

Regards,

Terje

--- End Message ---
--- Begin Message ---
(I've posted this to the PHP newsgroups, as well, but as many here might not
read them, I post here, as well. I hope that's not considered "overboard",
and if so, please let me know)

To round off my trilogy of "why"'s about PHP... :) If this subject have been
discussed before, I'd appreciate a pointer to it. I again haven't found it
in a search of the PHP groups.

The PHP manual mentions "overloading"
(http://www.php.net/manual/en/language.oop5.overloading.php), but it isn't
really overloading at all... Not in the sense it's used in other languages
supporting overloading (such as C++ and Java). As one of the
user-contributed notes on that page says, it would be more appropriate to
call it "dynamic methods and properties". What "overloading" in PHP is
about, is to be able to do $object-><name>(...), and it will call the
built-in function __call() with <name> and an array of the parameters.

Since "overloading" is used in this rather confusing sense (compared to
other languages) in PHP, it may be useful with a brief recap of how it works
in C++ and Java. In these languages, overloading means that you may have
several (member or non-member) functions with the same name, as long as
their signature is different (number and type of arguments). Translated to
PHP, this could look like this:

function f($a) {...}                // #1
function f($a, $b) {...}         // #2
function f($a, b$, $c) {...}   // #3
function f(Person $a) {...}  // # 4

f(1);           // Calls #1
f(1,"test"); // Calls #2
f(1,2,3);    // Calls #3
$obj=new Person();
f($obj);     // Calls #4

The last call would technically also match #1, but the one with type hint
(Person) might be considered "more specialised".

This issue has, like type hints for built-in types, been asked in a Zend Q &
A, such as this one: http://www.zend.com/expert_qa/qas.php?id=10&single=1

--- Start quote ---

public Object child() {
    return this.child;
}
public Object child(Object p_child) {
    this.child = p_child;
    return this.child();
}

So this is what you call function overloading? Questions: - Why is it called
function overloading? - Why won't it be supported in PHP? (important)

    It is called function overloading because you have two instances of the
same function name but they differ only by the function arguments. You
expect the right one to be called according to the arguments. It won't be
supported by PHP because it doesn't fit in with its dynamically typed value
paradigm and execution methodology. However, you may reach similar affects
by using optional function arguments for example:

public Object child(Object p_child=NULL) {
    if (p_child != NULL) {
        this.child = p_child;
    }
    return this.child;
}

--- End quote ---

Again, I don't find the answer satisfactory, but perhaps someone here can
convince me?

Even if PHP has loose/weak typing, then as for type hints for built-in
types, a value or variable has a specific type at any one time. At the very
least, one might provide overloading for functions taking arguments of
user-defined types (objects), in the same way as one provide optional static
typing in the form of type hints. I.e.:

function print(Person $p) {...}
function print(Something $s) {...}

Comments?

Regards,

Terje

--- End Message ---
--- Begin Message ---
Hello,

if I'm compiling php5.0.3 with --enable-soap on a redhat enterprise linux 3 system I get an error almost at the end:

gcc -Isapi/cgi/ -I/usr/src/redhat/BUILD/php-5.0.3/sapi/cgi/ -DPHP_ATOM_INC -I/usr/src/redhat/BUILD/php-5.0.3/include -I/usr/src/redhat/BUILD/php-5.0.3/main -I/usr/src/redhat/BUILD/php-5.0.3 -I/usr/src/redhat/BUILD/php-5.0.3/Zend -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/imap -I/usr/kerberos/include -I/usr/src/redhat/BUILD/php-5.0.3/ext/mbstring/oniguruma -I/usr/src/redhat/BUILD/php-5.0.3/ext/mbstring/libmbfl -I/usr/src/redhat/BUILD/php-5.0.3/ext/mbstring/libmbfl/mbfl -I/vrmd/webserver/mhash/include -I/usr/include/mysql -I/usr/include/pspell -I/usr/src/redhat/BUILD/php-5.0.3/TSRM -I/usr/kerberos/include -c /usr/src/redhat/BUILD/php-5.0.3/sapi/cgi/cgi_main.c -o sapi/cgi/cgi_main.o && echo > sapi/cgi/cgi_main.lo
gcc -Isapi/cgi/ -I/usr/src/redhat/BUILD/php-5.0.3/sapi/cgi/ -DPHP_ATOM_INC -I/usr/src/redhat/BUILD/php-5.0.3/include -I/usr/src/redhat/BUILD/php-5.0.3/main -I/usr/src/redhat/BUILD/php-5.0.3 -I/usr/src/redhat/BUILD/php-5.0.3/Zend -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/imap -I/usr/kerberos/include -I/usr/src/redhat/BUILD/php-5.0.3/ext/mbstring/oniguruma -I/usr/src/redhat/BUILD/php-5.0.3/ext/mbstring/libmbfl -I/usr/src/redhat/BUILD/php-5.0.3/ext/mbstring/libmbfl/mbfl -I/vrmd/webserver/mhash/include -I/usr/include/mysql -I/usr/include/pspell -I/usr/src/redhat/BUILD/php-5.0.3/TSRM -I/usr/kerberos/include -c /usr/src/redhat/BUILD/php-5.0.3/sapi/cgi/getopt.c -o sapi/cgi/getopt.o && echo > sapi/cgi/getopt.lo
gcc -Imain/ -I/usr/src/redhat/BUILD/php-5.0.3/main/ -DPHP_ATOM_INC -I/usr/src/redhat/BUILD/php-5.0.3/include -I/usr/src/redhat/BUILD/php-5.0.3/main -I/usr/src/redhat/BUILD/php-5.0.3 -I/usr/src/redhat/BUILD/php-5.0.3/Zend -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/imap -I/usr/kerberos/include -I/usr/src/redhat/BUILD/php-5.0.3/ext/mbstring/oniguruma -I/usr/src/redhat/BUILD/php-5.0.3/ext/mbstring/libmbfl -I/usr/src/redhat/BUILD/php-5.0.3/ext/mbstring/libmbfl/mbfl -I/vrmd/webserver/mhash/include -I/usr/include/mysql -I/usr/include/pspell -I/usr/src/redhat/BUILD/php-5.0.3/TSRM -I/usr/kerberos/include -c main/internal_functions.c -o main/internal_functions.o && echo > main/internal_functions.lo
/bin/sh /usr/src/redhat/BUILD/php-5.0.3/libtool --silent --preserve-dup-deps --mode=link gcc -export-dynamic -I/usr/kerberos/include -L/usr/kerberos/lib -L/vrmd/webserver/mhash/lib -L/usr/lib/mysql -R /usr/kerberos/lib -R /vrmd/webserver/mhash/lib -R /usr/lib/mysql ext/libxml/libxml.lo ext/openssl/openssl.lo ext/openssl/xp_ssl.lo ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/bcmath/bcmath.lo ext/bcmath/libbcmath/src/add.lo ext/bcmath/libbcmath/src/div.lo ext/bcmath/libbcmath/src/init.lo ext/bcmath/libbcmath/src/neg.lo ext/bcmath/libbcmath/src/outofmem.lo ext/bcmath/libbcmath/src/raisemod.lo ext/bcmath/libbcmath/src/rt.lo ext/bcmath/libbcmath/src/sub.lo ext/bcmath/libbcmath/src/compare.lo ext/bcmath/libbcmath/src/divmod.lo ext/bcmath/libbcmath/src/int2num.lo ext/bcmath/libbcmath/src/num2long.lo ext/bcmath/libbcmath/src/output.lo ext/bcmath/libbcmath/src/recmul.lo ext/bcmath/libbcmath/src/sqrt.lo ext/bcmath/libbcmath/src/zero.lo ext/bcmath/libbcmath/src/debug.lo ext/bcmath/libbcmath/src/doaddsub.lo ext/bcmath/libbcmath/src/nearzero.lo ext/bcmath/libbcmath/src/num2str.lo ext/bcmath/libbcmath/src/raise.lo ext/bcmath/libbcmath/src/rmzero.lo ext/bcmath/libbcmath/src/str2num.lo ext/bz2/bz2.lo ext/calendar/calendar.lo ext/calendar/dow.lo ext/calendar/french.lo ext/calendar/gregor.lo ext/calendar/jewish.lo ext/calendar/julian.lo ext/calendar/easter.lo ext/calendar/cal_unix.lo ext/ctype/ctype.lo ext/curl/interface.lo ext/curl/multi.lo ext/curl/streams.lo ext/dba/dba.lo ext/dba/dba_cdb.lo ext/dba/dba_db2.lo ext/dba/dba_dbm.lo ext/dba/dba_gdbm.lo ext/dba/dba_ndbm.lo ext/dba/dba_db3.lo ext/dba/dba_db4.lo ext/dba/dba_flatfile.lo ext/dba/dba_inifile.lo ext/dba/dba_qdbm.lo ext/dba/libcdb/cdb.lo ext/dba/libcdb/cdb_make.lo ext/dba/libcdb/uint32.lo ext/dba/libflatfile/flatfile.lo ext/dba/libinifile/inifile.lo ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo ext/dom/domexception.lo ext/dom/namelist.lo ext/dom/processinginstruction.lo ext/dom/cdatasection.lo ext/dom/documentfragment.lo ext/dom/domimplementation.lo ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo ext/dom/characterdata.lo ext/dom/documenttype.lo ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo ext/dom/domimplementationsource.lo ext/dom/entityreference.lo ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/exif/exif.lo ext/ftp/php_ftp.lo ext/ftp/ftp.lo ext/gd/gd.lo ext/gd/gdttf.lo ext/gd/libgd/gd.lo ext/gd/libgd/gd_gd.lo ext/gd/libgd/gd_gd2.lo ext/gd/libgd/gd_io.lo ext/gd/libgd/gd_io_dp.lo ext/gd/libgd/gd_io_file.lo ext/gd/libgd/gd_ss.lo ext/gd/libgd/gd_io_ss.lo ext/gd/libgd/gd_png.lo ext/gd/libgd/gd_jpeg.lo ext/gd/libgd/gdxpm.lo ext/gd/libgd/gdfontt.lo ext/gd/libgd/gdfonts.lo ext/gd/libgd/gdfontmb.lo ext/gd/libgd/gdfontl.lo ext/gd/libgd/gdfontg.lo ext/gd/libgd/gdtables.lo ext/gd/libgd/gdft.lo ext/gd/libgd/gdcache.lo ext/gd/libgd/gdkanji.lo ext/gd/libgd/wbmp.lo ext/gd/libgd/gd_wbmp.lo ext/gd/libgd/gdhelpers.lo ext/gd/libgd/gd_topal.lo ext/gd/libgd/gd_gif_in.lo ext/gd/libgd/xbm.lo ext/gd/libgd/gd_gif_out.lo ext/gettext/gettext.lo ext/iconv/iconv.lo ext/imap/php_imap.lo ext/ldap/ldap.lo ext/mbstring/mbstring.lo ext/mbstring/php_unicode.lo ext/mbstring/mb_gpc.lo ext/mbstring/php_mbregex.lo ext/mbstring/oniguruma/regcomp.lo ext/mbstring/oniguruma/regerror.lo ext/mbstring/oniguruma/regexec.lo ext/mbstring/oniguruma/reggnu.lo ext/mbstring/oniguruma/regparse.lo ext/mbstring/oniguruma/regenc.lo ext/mbstring/oniguruma/enc/ascii.lo ext/mbstring/oniguruma/enc/utf8.lo ext/mbstring/oniguruma/enc/euc_jp.lo ext/mbstring/oniguruma/enc/euc_tw.lo ext/mbstring/oniguruma/enc/euc_kr.lo ext/mbstring/oniguruma/enc/sjis.lo ext/mbstring/oniguruma/enc/iso8859_1.lo ext/mbstring/oniguruma/enc/iso8859_2.lo ext/mbstring/oniguruma/enc/iso8859_3.lo ext/mbstring/oniguruma/enc/iso8859_4.lo ext/mbstring/oniguruma/enc/iso8859_5.lo ext/mbstring/oniguruma/enc/iso8859_6.lo ext/mbstring/oniguruma/enc/iso8859_7.lo ext/mbstring/oniguruma/enc/iso8859_8.lo ext/mbstring/oniguruma/enc/iso8859_9.lo ext/mbstring/oniguruma/enc/iso8859_10.lo ext/mbstring/oniguruma/enc/iso8859_11.lo ext/mbstring/oniguruma/enc/iso8859_13.lo ext/mbstring/oniguruma/enc/iso8859_14.lo ext/mbstring/oniguruma/enc/iso8859_15.lo ext/mbstring/oniguruma/enc/iso8859_16.lo ext/mbstring/oniguruma/enc/koi8.lo ext/mbstring/oniguruma/enc/koi8_r.lo ext/mbstring/oniguruma/enc/big5.lo ext/mbstring/libmbfl/filters/html_entities.lo ext/mbstring/libmbfl/filters/mbfilter_7bit.lo ext/mbstring/libmbfl/filters/mbfilter_ascii.lo ext/mbstring/libmbfl/filters/mbfilter_base64.lo ext/mbstring/libmbfl/filters/mbfilter_big5.lo ext/mbstring/libmbfl/filters/mbfilter_byte2.lo ext/mbstring/libmbfl/filters/mbfilter_byte4.lo ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo ext/mbstring/libmbfl/filters/mbfilter_cp866.lo ext/mbstring/libmbfl/filters/mbfilter_cp932.lo ext/mbstring/libmbfl/filters/mbfilter_cp936.lo ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo ext/mbstring/libmbfl/filters/mbfilter_hz.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo ext/mbstring/libmbfl/filters/mbfilter_jis.lo ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo ext/mbstring/libmbfl/filters/mbfilter_qprint.lo ext/mbstring/libmbfl/filters/mbfilter_sjis.lo ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo ext/mbstring/libmbfl/filters/mbfilter_uhc.lo ext/mbstring/libmbfl/filters/mbfilter_utf16.lo ext/mbstring/libmbfl/filters/mbfilter_utf32.lo ext/mbstring/libmbfl/filters/mbfilter_utf7.lo ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo ext/mbstring/libmbfl/filters/mbfilter_utf8.lo ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo ext/mbstring/libmbfl/mbfl/mbfilter.lo ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo ext/mbstring/libmbfl/mbfl/mbfl_convert.lo ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo ext/mbstring/libmbfl/mbfl/mbfl_ident.lo ext/mbstring/libmbfl/mbfl/mbfl_language.lo ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo ext/mbstring/libmbfl/mbfl/mbfl_string.lo ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo ext/mbstring/libmbfl/nls/nls_de.lo ext/mbstring/libmbfl/nls/nls_en.lo ext/mbstring/libmbfl/nls/nls_ja.lo ext/mbstring/libmbfl/nls/nls_kr.lo ext/mbstring/libmbfl/nls/nls_neutral.lo ext/mbstring/libmbfl/nls/nls_ru.lo ext/mbstring/libmbfl/nls/nls_uni.lo ext/mbstring/libmbfl/nls/nls_zh.lo ext/mhash/mhash.lo ext/mysql/php_mysql.lo ext/pcre/pcrelib/maketables.lo ext/pcre/pcrelib/get.lo ext/pcre/pcrelib/study.lo ext/pcre/pcrelib/pcre.lo ext/pcre/php_pcre.lo ext/posix/posix.lo ext/pspell/pspell.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/simplexml/simplexml.lo ext/soap/soap.lo ext/soap/php_encoding.lo ext/soap/php_http.lo ext/soap/php_packet_soap.lo ext/soap/php_schema.lo ext/soap/php_sdl.lo ext/soap/php_xml.lo ext/sockets/sockets.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo ext/spl/spl_directory.lo ext/spl/spl_sxe.lo regex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/regfree.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/parsedate.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo ext/standard/uuencode.lo ext/standard/filters.lo ext/standard/proc_open.lo ext/standard/sunfuncs.lo ext/standard/streamsfuncs.lo ext/standard/http.lo ext/tokenizer/tokenizer.lo ext/wddx/wddx.lo ext/xml/xml.lo ext/xml/compat.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapper.lo main/streams/userspace.lo main/streams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_mm.lo Zend/zend_default_classes.lo Zend/zend_reflection_api.lo Zend/zend_execute.lo sapi/cgi/cgi_main.lo sapi/cgi/getopt.lo main/internal_functions.lo -lcrypt -lc-client -lssl -lcrypto -lcrypt -lpspell -lmysqlclient -lmhash -lldap -llber -lcrypt -lpam -lfreetype -lpng -lz -ljpeg -ldb-4.1 -ldb-4.1 -lgdbm -lcurl -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcurl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lcrypt -o sapi/cgi/php
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libc-client.a(osdep.o)(.text+0xab77): In function `ssl_onceonlyinit':
: the use of `tmpnam' is dangerous, better use `mkstemp'
ext/soap/php_encoding.o(.text+0x611): In function `to_zval_string':
: undefined reference to `xmlBufferCreateStatic'
ext/soap/php_encoding.o(.text+0x8bd): In function `to_zval_stringr':
: undefined reference to `xmlBufferCreateStatic'
ext/soap/php_encoding.o(.text+0xb69): In function `to_zval_stringc':
: undefined reference to `xmlBufferCreateStatic'
ext/soap/php_encoding.o(.text+0xfc8): In function `to_xml_string':
: undefined reference to `xmlBufferCreateStatic'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1

I don't have an idea what's causing this error.

Regards
Marten

--- End Message ---

Reply via email to