[PHP-DEV] XMLSec support in PHP

2003-03-06 Thread Mark J. Hershenson
I use libxml2 in PHP as almost a daily task, and I love it, but as my
company is going further and further into XML as a data transport/storage
format, I've become piqued at the idea of actually using xmlsec to securely
store and/or transfer our files and RPC data.

I know that there is an xmlsec project (http://www.aleksey.com/xmlsec/)
which is building off of or related to both libxml2 and OpenSSL, so I was
curious if anyone had started work to expose xmlsec functionality to PHP. I
know the xmlsec project listed above is fairly early on in its development,
but if someone knew of a proof of concept implementation of xmlsec in PHP,
I'd love to play with it.

If there isn't, has anyone started such a project, or are planning to?

Just curious. Thanks!

Mark J. Hershenson
[EMAIL PROTECTED]
http://green-ant.com/


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] ZE2 dev snaps

2003-01-06 Thread Mark J. Hershenson
Hi all,

I know there are Win32+ZE2 Package snapshots on snaps.php.net, but I don't
believe I've read why there isn't a ZE2 source code snapshot for everyone
else. Checking out the source with CVS may not be the world's most difficult
practice, but automating that process likely isn't either. ;)

Is there a timeline for this, or is this being intentionally kept off the
radar?

--  mjh


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Serializer / deserializer error information?

2002-08-18 Thread Mark J. Hershenson

I am currently debugging an issue which I am finding hard to find which
centers on trying to serialize and deserialize very complex objects which,
when serialized, are around 580k in size. It's all part of a custom session
handler.

However, when I go to deserialize the value, I get back boolean false ( ===
false). Seems to me that some sort of error message might be in store, no?
Is there some reason why deserialize() does not at least throw an error like
the main parser. Something like:

Deserialize error: Unexpected character encountered at offset 4687

Would it be possible to incorporate this type of error reporting into PHP?

I'd be happy to provide print_r() dumps of the data involved if it would
help to diagnose the issue at hand...

As it is, it seems as though I'll just have to create a runtime file to keep
track of the important values and then recreate the objects on each page,
but it would be so much easier to serialize the dumb things. :)

   Mark J. Hershenson
   [EMAIL PROTECTED]
   http://www.green-ant.com/



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Set_time_limit trouble

2002-06-12 Thread Mark Villemade


Anyone got any comment on that ?

Thanks in advance.

Later
Chand


On Wed, 12 Jun 2002 01:36:08 +0200
Mark Villemade [EMAIL PROTECTED] wrote:

 hi all,
 
 i don't know if i have already asked you about this, but i guess not. 
 
 here's my trouble. On one of our application on Lycos Portals, we have a script that 
makes an fsockopen on an external server that checks out credit cards and stuff. That 
server only checks one card at a time, so if i have 5 clients clicking on 'check' at 
the 'same' time, they will be queued and treated in order.
 
 The trouble is, even though i have set_time_limit(0) at the beginning of my script 
(and i'm not in safe_mode), if the server takes more than 30 seconds to send an 
answer back on the socket, the script dies from hitting max_execution_time.
 
 I have found out that printing anything before the fsockopen() stops that behavior 
but i can't use that trick cause i need to use a header() function depending on the 
result of the server. Of course i could use output buffering to be able to write an 
echo and still use header() but that's a hack and not a solution to what could be a 
bigger problem here.
 
 This is on php 4.0.6 (not patched like the one i patch for the members' use. This is 
for Portals).
 
 Anyone got a rough idea of what could happen and how i could solve this problem ? 
It's getting more and more annoying for us since we get more and more clients and the 
credit card checkin' server queues more and more ..
 
 Is it a 4.0.6 known bug solved in later versions ?
 
 Thanks for any insight.
 
 Later
 
 Chand
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Set_time_limit trouble

2002-06-11 Thread Mark Villemade

hi all,

i don't know if i have already asked you about this, but i guess not. 

here's my trouble. On one of our application on Lycos Portals, we have a script that 
makes an fsockopen on an external server that checks out credit cards and stuff. That 
server only checks one card at a time, so if i have 5 clients clicking on 'check' at 
the 'same' time, they will be queued and treated in order.

The trouble is, even though i have set_time_limit(0) at the beginning of my script 
(and i'm not in safe_mode), if the server takes more than 30 seconds to send an answer 
back on the socket, the script dies from hitting max_execution_time.

I have found out that printing anything before the fsockopen() stops that behavior but 
i can't use that trick cause i need to use a header() function depending on the result 
of the server. Of course i could use output buffering to be able to write an echo and 
still use header() but that's a hack and not a solution to what could be a bigger 
problem here.

This is on php 4.0.6 (not patched like the one i patch for the members' use. This is 
for Portals).

Anyone got a rough idea of what could happen and how i could solve this problem ? It's 
getting more and more annoying for us since we get more and more clients and the 
credit card checkin' server queues more and more ..

Is it a 4.0.6 known bug solved in later versions ?

Thanks for any insight.

Later

Chand

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] RE: [PHP] Re: [PHP-DEV] Re: strtok bug

2002-01-13 Thread Mark Charette

 -Original Message-
 From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
 Before somebody decides to repress my opinion again,

Hah! That's got to be one of the funniest things I've ever read!

Downloads do not imply usage, only curiosity. I've downloaded a large number
of PHP class libraries from different places. The only one I've ever used is
a CC validation one ...

mark C.



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bugreport?

2002-01-10 Thread Mark

Seems like either a bug, or a sysadmin (me) who is an idiot because it's
1.14am.


Making all in curl
make[2]: Entering directory `/opt/php-4.1.1/ext/curl'
make[3]: Entering directory `/opt/php-4.1.1/ext/curl'
/bin/sh /opt/php-4.1.1/libtool --silent --mode=compile
gcc  -I. -I/opt/php-4.1.1/ext/curl -I/opt/php-4.1.1/main -I/opt/php-4.1.1 -I
/usr/include/apache -I/opt/php-4.1.1/Zend -I/usr/local/openssl/include -I/us
r/include/freetype -I/usr/include/imap -I/usr/include/mcal -I/usr/include/my
sql -I/usr/include/ucd-snmp -I/opt/php-4.1.1/ext/xml/expat  -DEAPI_MM -D_LAR
GEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHARD_SERVER_LIMIT=2048 -DDYNAMIC_MODU
LE_LIMIT=128 -DLINUX=22 -DMOD_SSL=208104 -DEAPI -DUSE_EXPAT -I/opt/php-4.1.1
/TSRM -g -O2 -prefer-pic  -c curl.c
curl.c: In function `zm_startup_curl':
curl.c:176: `CURLOPT_COOKIEJAR' undeclared (first use in this function)
curl.c:176: (Each undeclared identifier is reported only once
curl.c:176: for each function it appears in.)
curl.c:177: `CURLOPT_SSL_CIPHER_LIST' undeclared (first use in this
function)
curl.c: In function `zif_curl_setopt':
curl.c:694: `CURLOPT_COOKIEJAR' undeclared (first use in this function)
curl.c:695: `CURLOPT_SSL_CIPHER_LIST' undeclared (first use in this
function)
curl.c:797: `CURLFORM_COPYNAME' undeclared (first use in this function)
curl.c:798: `CURLFORM_FILE' undeclared (first use in this function)
curl.c:798: `CURLFORM_END' undeclared (first use in this function)
curl.c:802: `CURLFORM_PTRCONTENTS' undeclared (first use in this function)
make[3]: *** [curl.lo] Error 1
make[3]: Leaving directory `/opt/php-4.1.1/ext/curl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/php-4.1.1/ext/curl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/php-4.1.1/ext'
make: *** [all-recursive] Error 1
astarte:/opt/php-4.1.1 #




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14850: Problems with XML and DTD entities

2002-01-04 Thread mark

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.5-PRERELEASE
PHP version:  4.1.1
PHP Bug Type: DOM XML related
Bug description:  Problems with XML and DTD entities

There are two instances where I am having problems with entities. test.php
and test.xml below exhibit a problem with xml entities.

The output is:
Blah Blah Acirc;reg; Blah Blah

The expected output was:
Blah Blah reg; Blah Blah

The second problem exhibited by test2.php and test2.xml has to do with DTD
entities.

The output is:
Blah Blah 

The expected output was:
Blah Blah reg; Blah Blah

The setup is PHP 4.1.1 with a patch to php_domxml.c from 1.67.2.9 to 1.90
that fixes a problem with PHP crashing with DTD entities.

test.php:
--
?
$xml = test.xml;
$doc = xmldocfile($xml);
$context = $doc-xpath_new_context();
$query = //test;
$nodes = $context-xpath_eval($query);
$node = $nodes-nodeset[0]-children();
$content .= $node[0]-content;
echo htmlentities($content);
?

test.xml:
--
?xml version=1.0?
testBlah Blah #174; Blah Blah/test

test2.php:
--
?
$xml = test2.xml;
$doc = xmldocfile($xml);
$context = $doc-xpath_new_context();
$query = //test;
$nodes = $context-xpath_eval($query);
$node = $nodes-nodeset[0]-children();
$content .= $node[0]-content;
echo htmlentities($content);
?

test2.xml:
--
?xml version=1.0?
!DOCTYPE test [
!ENTITY reg #174;
]
testBlah Blah reg; Blah Blah/test
-- 
Edit bug report at: http://bugs.php.net/?id=14850edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14762: DTD entities freeze xmldocfile()

2001-12-30 Thread mark

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.5-PRERELEASE
PHP version:  4.1.1
PHP Bug Type: DOM XML related
Bug description:  DTD entities freeze xmldocfile()

The XML document site.xml causes test.php to freeze:

site.xml:
---
?xml version=1.0?
!DOCTYPE site [
!ENTITY reg #174;
]
site
titleDon't Be Dirtyreg;/title
/site
---

test.php:
---
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleUntitled/title
/head
body
?php
error_reporting(E_ALL);
$doc = xmldocfile(site.xml);
print \$doc: ;
print_r($doc);
print br;
$context = $doc-xpath_new_context();
print \$context: ;
print_r($context);
?
/body
/html
---

This version of site.xml yeilded expected output:

site.xml:
---
?xml version=1.0?
!DOCTYPE site [
]
site
titleDon't Be Dirty/title
/site
---

output:
---
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleUntitled/title
/head
body
$doc: DomDocument Object
(
[name] = 
[url] = site.xml
[version] = 1.0
[standalone] = -1
[type] = 9
[compression] = -1
[charset] = 1
[0] = 1
[1] = 136235776
[doc] = Resource id #673363016
)
br$context: XPathContext Object
(
[0] = 2
[1] = 136235904
)
/body
/html
---
-- 
Edit bug report at: http://bugs.php.net/?id=14762edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14289: IDE-based Documentation Fails to appear

2001-11-29 Thread mark . richards

From: [EMAIL PROTECTED]
Operating system: Win2000
PHP version:  4.0.6
PHP Bug Type: Documentation problem
Bug description:  IDE-based Documentation Fails to appear

Greetings.  I hope this is just an isolated issue and not a bug.

I have installed PHP Coder using the 4.0.6 installer.

I followed the instructions for putting the HTM files for documentation in
the C:\Program Files\PHP Coder\doc\ directory.  When PHP Coder starts and I
select the documentation in the left pane of the IDE it appears that
something's happening (the hourglass appears momentarily) but the
documentation does not appear anywhere.

I must be doing something wrong here.

Sorry, but i've searched all the support resources and came up empty.

Many thanks.

Mark Richards

-- 
Edit bug report at: http://bugs.php.net/?id=14289edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14153: Servlet sapi native code problems

2001-11-20 Thread mark

From: [EMAIL PROTECTED]
Operating system: linux (mdk-8.0)
PHP version:  4.0CVS-2001-11-20
PHP Bug Type: Unknown/Other Function
Bug description:  Servlet sapi native code problems

php configured --with-servlet and --with-java does not function acceptably.
 Running on tomcat4 with Sun's jdk1.3 the php server is stable for maybe
2-3 request before crashing.  The last line of the tomcat log looks
something like this.
# # An unexpected exception has been detected in native code outside the
VM.# Program counter=0x8494c40
#
# Problematic Thread: prio=1 tid=0x80b93b0 nid=0x4b7a runnable
#

This was built today from cvs.  What little of the phpinfo() output that I
can see before it crashes says php-4.2.0-dev.  The hits do not have to be
in rapid succession.
-- 
Edit bug report at: http://bugs.php.net/?id=14153edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #13887: session data lost on virtual server

2001-10-31 Thread mark . gebhart

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.6
PHP Bug Type: Session related
Bug description:  session data lost on virtual server



The problem is that PHP is not saving the session file properly befor the
server process is terminated.  The problem ony occurs when a server process
terminates (like if
the server's keepalive setting expires, or if the HTTP 1.0 protocol is
being used [1.0 doesn't support keepalive]).  Because of the way we run our
virtual
servers, keepalive has no effect (the server processes terminate after each
request) so the session bug shows up _every_ time.
-- 
Edit bug report at: http://bugs.php.net/?id=13887edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #13358 Updated: Berkeley DB3 and the DBA functions

2001-09-20 Thread mark

ID: 13358
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: DBM/DBA related
Operating System: RedHat 7.1
PHP Version: 4.0.6
New Comment:

Just a couple of more points of information:

1) I have now tried compiling libphp4.so every which way. I have downloaded and 
installed from source db3.1.17, db3.2.9 and db3.3.11 - and have tried configuring 
--with-db3= (path to db3) with each of these different versions. No luck.

2) Again, I have no problem using the db3 driver and the dba functions with the stand 
alone binary of php that I configured --with-db3 Permissions are not a problem.

3) That link I gave to the phpinfo snapshot is gone. I am a dangerous sysadmin when 
logged in as root! But the dynamicly generated phpinfo() page is 
http://neaturl.com/phpinfo.php

I've gone crazy over this. The only solutions I can see is to run the scripts that use 
dba functions on my db3 file as CGI.

Previous Comments:


[2001-09-18 02:33:18] [EMAIL PROTECTED]

Um. yeah, I am using BerkeleyDB3.1.17 which came rpm installed as part of the standard 
install.



[2001-09-18 02:28:28] [EMAIL PROTECTED]

I have noticed that a similar bug has been reported (Bug id #11732) - however I can 
report more details and I have another script with interesting results.

First: the code that was provided in #11732

[code]
?php
if(!$fp = dba_open(test.db, c, db3)) {
print(error);
exit;
}
dba_insert(testkey, testval, $fp);
echo( dba_fetch(testkey, $fp));
dba_close($fp);
?

[/code]
[output]
Warning: driver initialization failed in 
/usr/local/apache/htdocs/www-root/neaturl.com/temp/test.php on line 3
error
[/output]
But get this - test.db is created!

The above code was called through from my browser (thus through the Apache web server)

Here is a link to a snapshot of my php config at the time I ran that code:

http://neaturl.com/temp/phpinfo-0109181613.html


Now - here is the twist! If I call the same script (adding the path to the php binary) 
from bash, it runs fine!

[code]
#!/usr/local/bin/php
?php

if(!$fp = dba_open(test.db, c, db3)) { 
print(error); 
exit; 
} 
dba_insert(testkey, testval, $fp); 
echo( dba_fetch(testkey, $fp)); 
dba_close($fp); 
?
[/code]
[output]
X-Powered-By: PHP/4.0.6
Content-type: text/html

testval
[/output]

Actually, I came accross this problem because I had written a php script to initialize 
the postfix/virtual.db (which I ran from bash and had written a php script to read and 
output the key:value pairs (which again I ran OK from bash). But when I tried to run 
the same script by calling it from my browser - no cigar!

Now I am assuming this is a bug. I would be delighted to learn that perhaps I have 
missed configuring something in php.ini






Edit this bug report at http://bugs.php.net/?id=13358edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #13358: Berkeley DB3 and the DBA functions

2001-09-18 Thread mark

From: [EMAIL PROTECTED]
Operating system: 
PHP version:  4.0.6
PHP Bug Type: Unknown/Other Function
Bug description:  Berkeley DB3 and the DBA functions

I have noticed that a similar bug has been reported (Bug id #11732) -
however I can report more details and I have another script with
interesting results.

First: the code that was provided in #11732

[code]
?php
if(!$fp = dba_open(test.db, c, db3)) {
print(error);
exit;
}
dba_insert(testkey, testval, $fp);
echo( dba_fetch(testkey, $fp));
dba_close($fp);
?

[/code]
[output]
Warning: driver initialization failed in
/usr/local/apache/htdocs/www-root/neaturl.com/temp/test.php on line 3
error
[/output]
But get this - test.db is created!

The above code was called through from my browser (thus through the Apache
web server)

Here is a link to a snapshot of my php config at the time I ran that
code:

http://neaturl.com/temp/phpinfo-0109181613.html


Now - here is the twist! If I call the same script (adding the path to the
php binary) from bash, it runs fine!

[code]
#!/usr/local/bin/php
?php

if(!$fp = dba_open(test.db, c, db3)) { 
print(error); 
exit; 
} 
dba_insert(testkey, testval, $fp); 
echo( dba_fetch(testkey, $fp)); 
dba_close($fp); 
?
[/code]
[output]
X-Powered-By: PHP/4.0.6
Content-type: text/html

testval
[/output]

Actually, I came accross this problem because I had written a php script to
initialize the postfix/virtual.db (which I ran from bash and had written a
php script to read and output the key:value pairs (which again I ran OK
from bash). But when I tried to run the same script by calling it from my
browser - no cigar!

Now I am assuming this is a bug. I would be delighted to learn that perhaps
I have missed configuring something in php.ini

-- 
Edit bug report at: http://bugs.php.net/?id=13358edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #13358 Updated: Berkeley DB3 and the DBA functions

2001-09-18 Thread mark

ID: 13358
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Unknown/Other Function
Operating System: 
PHP Version: 4.0.6
New Comment:

Um. yeah, I am using BerkeleyDB3.1.17 which came rpm installed as part of the standard 
install.

Previous Comments:


[2001-09-18 02:28:28] [EMAIL PROTECTED]

I have noticed that a similar bug has been reported (Bug id #11732) - however I can 
report more details and I have another script with interesting results.

First: the code that was provided in #11732

[code]
?php
if(!$fp = dba_open(test.db, c, db3)) {
print(error);
exit;
}
dba_insert(testkey, testval, $fp);
echo( dba_fetch(testkey, $fp));
dba_close($fp);
?

[/code]
[output]
Warning: driver initialization failed in 
/usr/local/apache/htdocs/www-root/neaturl.com/temp/test.php on line 3
error
[/output]
But get this - test.db is created!

The above code was called through from my browser (thus through the Apache web server)

Here is a link to a snapshot of my php config at the time I ran that code:

http://neaturl.com/temp/phpinfo-0109181613.html


Now - here is the twist! If I call the same script (adding the path to the php binary) 
from bash, it runs fine!

[code]
#!/usr/local/bin/php
?php

if(!$fp = dba_open(test.db, c, db3)) { 
print(error); 
exit; 
} 
dba_insert(testkey, testval, $fp); 
echo( dba_fetch(testkey, $fp)); 
dba_close($fp); 
?
[/code]
[output]
X-Powered-By: PHP/4.0.6
Content-type: text/html

testval
[/output]

Actually, I came accross this problem because I had written a php script to initialize 
the postfix/virtual.db (which I ran from bash and had written a php script to read and 
output the key:value pairs (which again I ran OK from bash). But when I tried to run 
the same script by calling it from my browser - no cigar!

Now I am assuming this is a bug. I would be delighted to learn that perhaps I have 
missed configuring something in php.ini






Edit this bug report at http://bugs.php.net/?id=13358edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12614: AddSlashes doen't escape Curly braces {'s

2001-08-07 Thread mark

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0CVS-2001-08-07
PHP Bug Type: Strings related
Bug description:  AddSlashes doen't escape Curly braces {'s

AFAIK this is not fixed in versoins beyong 4.0.1pl2 which is what I'm
using.

I'm using PHP to modify Latex files - particularly to substitute PHP
variables with values from a database.

Therefore my Latex file could contain:
\textbf{$php_variable}

I read lines from the Latex file and use something like:
$input_line = AddSlashes( fgets($fp));
$str = eval($input_line);

As the input line includes a {$ the eval function assumes an array
calculation and the { is left out of the output string.

I've fixed the problem by adding an additional str_replace to escape the {
with \{ first.

Kind regards
Mark
-- 
Edit bug report at: http://bugs.php.net/?id=12614edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] persistent mysql connection on a LAMP-System

2001-07-19 Thread Mark Walter

I was informed from a local provider about the following issue concerning
pconnects with php:

A pconnect has a running time of 8 hours. A close function will be ignored.
Apache has a threading concept, which doesn't cancel the thread. You can 
configure it but the thread will live till the last connection is closed.
( 8 hours after a pconnect ).
Every new URL rquest will lead to a new thread with a new database connection
with a live evalution of 8 hours. To say it simple: if 10 user clicks on 5 
sites with php scripts - 50 pconnects will stay active.

To be honest: I don't have a clue how a pconnect is executed on a LAMP-System.
All I know is that I can limit the counts of pconnects within the php.ini.  
The Question I now have is if it's true that scripts should contain a mysql_connect
instead of a pconnect or can I avoid this overhead ? ( Every book recommends to
use pconnect especially for high frequented sites. )

-- 
Best Regards,

Mark

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12077: php.exe application error - cannot 'read' memory address

2001-07-11 Thread mark

From: [EMAIL PROTECTED]
Operating system: windows 2000
PHP version:  4.0.6
PHP Bug Type: OCI8 related
Bug description:  php.exe application error - cannot 'read' memory address

i'm using php 4.0.6 through IIS5 on a windows 2000 workstation.

this is similar to bug #11202, except it occured to me while i was using
oci8 as apposed to MS SQL (which worked fine for me).

my exact error is 'php.exe - application error:
the instruction at 0x77f83a33 referenced memory at'
0x0010. The memory could not be read.

when i click OK to terminate the program, the script seems to complete
it's execution as i want, just with the painful error showing.
if i click on CANCEL, it's like it's in an endless loop.
btw - i'm trying to connect to an 8i 8.1.6 database.

so i'm not really sure if it's an oci8 problem or whether it's an IIS5 or
windows 2000 problem.

here is a sample script which i am using.

html
titleDefault php load file./title
body
?php
  include(classes.php);

  // test for MS SQL server. This part works without errors.
  // Create new connection.
  $mssql_conn = new Connection($database_name, $database_type,
$server_name, webuser, webuser);

  //test connection with a simple SELECT call.
  $SQL = SELECT * from role_type ;
  $result = $mssql_conn-exec($SQL);
  echo $result;
  echo br;
  echo mssql_num_rows($result);
  echo br;
  echo br;

  // Test for oracle database..
  // This part produces the error.
  $ora_conn = new connection(PS_PLATO, ORA, PLATO, psadmin,
d3g3sh);
  $SQL = SELECT * from advert ;
  $result4 = $ora_conn-exec($SQL);
  echo result of exec statement  . $result4;
  echo br;
  echo ocinumcols($ora_conn-stmt);
  echo br;
  echo br;
?

this is the classes.php include file.
?php

  class Connection
  {
// Variables
var $connect_to;
var $server;
var $database;
var $db;
var $stmt;

// Constructor
function Connection($database_name, $database_type, $server_name = ,
$username = , $password = , $port=)
{ 
  if ($database_name !=   $database_type != )
  {
$this-connect_to = $database_type;
$this-server = $server_name;
$this-database = $database_name;

switch ($database_type) {
  case MSSQL:
$this-db = mssql_connect($server_name, $username, $password);
if ($this-db  false) 
{
  $done = mssql_select_db($database_name, $this-db);
}
break;
  case ORA:
$this-db = ocilogon($username, $password, $database_name);
break;
  case ODBC:  
$this-db = odbc_connect($database_name, $username, $password);
break;
  case PGSQL:
$this-db = pg_Connect(host=$server_name port=$port
dbname=$database_name user=$username);
break;
  default:
echo font face=tahomaInvalid or Unsupported database
type./fontbr;
}
  } else {
echo font face=tahomaInformation missing in connection
string./fontbr;
  }
}

// Functions
function exec($SQL)
// for the DML calls to databases.
{   echo $this-connect_to;
echo bR;

switch ($this-connect_to) {
  case MSSQL: return mssql_query($SQL, $this-db);break;
  case ODBC:  return odbc_exec($this-db, $SQL);  break;
  case PGSQL: return pg_exec($this-db, $SQL);break;
  case ORA:   $this-stmt = ociparse($this-db, $SQL);
return ociexecute($this-stmt); break;
  default:
echo font face=tahomaInvalid or Unsupported database
type./fontbr;
}
}
  }
?

this is meant to be a basic database wrapper - you pass in a database type,
name, server name, username, password and a port number(for those dbases
that need it), and it opens a valid connection to that dbase. then you can
perform standard commands like the execution of an sql statements and the
standard php-database funcitons like num_rows etc.

refreshing the pages does little more than represent the error to the
screen.
-- 
Edit bug report at: http://bugs.php.net/?id=12077edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12077 Updated: php.exe application error - cannot 'read' memory address

2001-07-11 Thread mark

ID: 12077
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Summary: php.exe application error - cannot 'read' memory address
Old Status: Open
Status: Closed
Bug Type: OCI8 related
Operating System: windows 2000
PHP Version: 4.0.6
New Comment:

well - i appear to have found the problem.

in the php.ini file, there are 2 oracle extensions.
extension=php_oci8.dll and extension=php_oracle.dll.

i had both of these extensions loaded, and they must have been conflicting. because 
when i commented out the oracle.dll extension, restarted IIS5 and re-ran the scirpt, 
it worked fine without causing the error to appear.

Previous Comments:


[2001-07-12 00:06:49] [EMAIL PROTECTED]

i'm using php 4.0.6 through IIS5 on a windows 2000 workstation.

this is similar to bug #11202, except it occured to me while i was using oci8 as 
apposed to MS SQL (which worked fine for me).

my exact error is 'php.exe - application error:
the instruction at 0x77f83a33 referenced memory at'
0x0010. The memory could not be read.

when i click OK to terminate the program, the script seems to complete it's 
execution as i want, just with the painful error showing.
if i click on CANCEL, it's like it's in an endless loop.
btw - i'm trying to connect to an 8i 8.1.6 database.

so i'm not really sure if it's an oci8 problem or whether it's an IIS5 or windows 2000 
problem.

here is a sample script which i am using.

html
titleDefault php load file./title
body
?php
  include(classes.php);

  // test for MS SQL server. This part works without errors.
  // Create new connection.
  $mssql_conn = new Connection($database_name, $database_type, $server_name, 
webuser, webuser);

  //test connection with a simple SELECT call.
  $SQL = SELECT * from role_type ;
  $result = $mssql_conn-exec($SQL);
  echo $result;
  echo br;
  echo mssql_num_rows($result);
  echo br;
  echo br;

  // Test for oracle database..
  // This part produces the error.
  $ora_conn = new connection(PS_PLATO, ORA, PLATO, psadmin, d3g3sh);
  $SQL = SELECT * from advert ;
  $result4 = $ora_conn-exec($SQL);
  echo result of exec statement  . $result4;
  echo br;
  echo ocinumcols($ora_conn-stmt);
  echo br;
  echo br;
?

this is the classes.php include file.
?php

  class Connection
  {
// Variables
var $connect_to;
var $server;
var $database;
var $db;
var $stmt;

// Constructor
function Connection($database_name, $database_type, $server_name = , $username = 
, $password = , $port=)
{ 
  if ($database_name !=   $database_type != )
  {
$this-connect_to = $database_type;
$this-server = $server_name;
$this-database = $database_name;

switch ($database_type) {
  case MSSQL:
$this-db = mssql_connect($server_name, $username, $password);
if ($this-db  false) 
{
  $done = mssql_select_db($database_name, $this-db);
}
break;
  case ORA:
$this-db = ocilogon($username, $password, $database_name);
break;
  case ODBC:  
$this-db = odbc_connect($database_name, $username, $password);
break;
  case PGSQL:
$this-db = pg_Connect(host=$server_name port=$port 
dbname=$database_name user=$username);
break;
  default:
echo font face=tahomaInvalid or Unsupported database 
type./fontbr;
}
  } else {
echo font face=tahomaInformation missing in connection string./fontbr;
  }
}

// Functions
function exec($SQL)
// for the DML calls to databases.
{   echo $this-connect_to;
echo bR;

switch ($this-connect_to) {
  case MSSQL: return mssql_query($SQL, $this-db);break;
  case ODBC:  return odbc_exec($this-db, $SQL);  break;
  case PGSQL: return pg_exec($this-db, $SQL);break;
  case ORA:   $this-stmt = ociparse($this-db, $SQL);
return ociexecute($this-stmt); break;
  default:
echo font face=tahomaInvalid or Unsupported database 
type./fontbr;
}
}
  }
?

this is meant to be a basic database wrapper - you pass in a database type, name, 
server name, username, password and a port number(for those dbases that need it), and 
it opens a valid connection to that dbase. then you can perform standard commands like 
the execution of an sql statements and the standard php-database funcitons like 
num_rows etc.

refreshing the pages does little more than represent the error to the screen.





ATTENTION! Do NOT reply 

[PHP-DEV] Re: Bug #11839 Updated: hack? following is a discussion of the hack...... Is PHP the problem?????????

2001-07-02 Thread Mark Lidd

At 04:39 PM 7/2/01 +, you wrote:
ID: 11839
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Unknown/Other Function
Operating system:
PHP Version: 4.0.6
Assigned To:
Comments:

Can you please summarize this?



Derick


I believe that some code in the PHP module looks for an HTML tag that has 
the string /ad/ in it, removes the   and places the html comment 
--!  -- around the html tag.  This happens only if the html is going to a 
client on a system other than on the server.   This results in the banner 
ad not being displayed.  I noticed this in the latest 4.0.6 tarball.  I got 
around the issue by using the string /add/  in my html tag.  The string 
/ad/ is part of the eZPublish banner ad.

I know it sounds weird, but that's it in a nutshell.

Mark




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10916: (Feature Request) OS-independent path parsing

2001-05-16 Thread mark

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.18
PHP version:  4.0.4pl1
PHP Bug Type: Feature/Change Request
Bug description:  (Feature Request) OS-independent path parsing

I've looked for something like this in the existing function suite but haven't found 
it...

Because Windoze and Linux (at least) use different characters to separate elements of 
a file path, I think a function that parses a path into an array of subdirectories, 
basename and extension would be useful.


-- 
Edit Bug report at: http://bugs.php.net/?id=10916edit=1



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DEV] RE: Bug #10581 Updated: signal 6 when starting server

2001-05-02 Thread Faine, Mark

If you get this message more than once, sorry I seem to be having problems
getting any messages through today.

Sorry, seems there was a core file, and since there was (and you didn't give
me any choice) I went ahead and recompiled with debug and installed gdb and
generated a backtrace.

Here it is:

(gdb) bt
#0  0xef114d1c in __sigprocmask () from /usr/lib/libthread.so.1
#1  0xef10ba44 in _resetsig () from /usr/lib/libthread.so.1
#2  0xef10b18c in _sigon () from /usr/lib/libthread.so.1
#3  0xef10dfe0 in _thrp_kill () from /usr/lib/libthread.so.1
#4  0xef07a5d8 in abort () from /usr/lib/libc.so.1
#5  0xee56cacc in ts_resource_read () at zend_ini_scanner_cc.cc:1695
#6  0xee56c7e0 in ts_resource_ex () at zend_ini_scanner_cc.cc:1695
#7  0xee4b8684 in php4_init () at zend_ini_scanner_cc.cc:1695
#8  0xef6624e0 in
__0Fafunc_native_pool_wait_workPFP6GpblockP6HSessionP6HRequest_iUiP6GpblockP
6HSessionP6HRequest ()
   from /export/home1/netscape/bin/https/lib/libns-httpd40.so
#9  0xef661b80 in
__0FNfunc_exec_strP6KFuncStructP6GpblockP6HSessionP6HRequest ()
   from /export/home1/netscape/bin/https/lib/libns-httpd40.so
#10 0xef661e2c in INTfunc_exec () from
/export/home1/netscape/bin/https/lib/libns-httpd40.so
#11 0xef65f974 in INTconf_run_init_functions () from
/export/home1/netscape/bin/https/lib/libns-httpd40.so
#12 0x2eacc in __0FLmagnus_initP6KPRFileDescPCc ()
#13 0x2f204 in main ()
(gdb) 

-Original Message-
From: Anil Madhavapeddy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 7:55 PM
To: Faine, Mark
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DEV] RE: Bug #10581 Updated: signal 6 when starting
server


Without more information it's pretty impossible to solve (I don't have
access to an iPlanet installation at the moment).  Can anyone else look
at the problem with iPlanet 4.x?

Otherwise you'll have to try to dive in yourself, Mark.  Did it work
with an older version of PHP?  Try looking at the SAPI code differences
and see if you can spot what's changed to break it.

Anil

- Original Message -
From: Faine, Mark [EMAIL PROTECTED]
To: 'Bug Database' [EMAIL PROTECTED]
Sent: Tuesday, May 01, 2001 8:29 PM
Subject: [PHP-DEV] RE: Bug #10581 Updated: signal 6 when starting server


 It's possible but it wouldn't be easy, for one I don't have gdb
installed,
 AFAIK it doesn't come with Solaris so I'd have to install it.  Also, I
 compiled with --disable-debug.  Then there the fact there is no core
file
 and I don't even know if I could get any kind of information from
iPlanet
 even if I recompiled and installed gdb.

 -Mark

 -Original Message-
 From: Bug Database [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 01, 2001 2:20 PM
 To: [EMAIL PROTECTED]
 Subject: Bug #10581 Updated: signal 6 when starting server


 ID: 10581
 Updated by: avsm
 Reported By: [EMAIL PROTECTED]
 Status: Feedback
 Bug Type: iPlanet related
 PHP Version: 4.0.5
 Assigned To:
 Comments:

 Hmm, need backtraces from gdb to show where things are going wrong ...
is
 that possible? (not sure if you can get get debugging symbols from
iPlanet)

 Previous Comments:
 --
-

 [2001-05-01 15:16:28] [EMAIL PROTECTED]
 User Feedback:

 Yes, that was the first thing I tried, the server will start with
these
 changes but will timeout on every page, even non-php pages.  No page
will
 load.

 It's Netscape iPlanet Server 4.0 SP5


 --
-

 [2001-05-01 15:00:30] [EMAIL PROTECTED]
 Have you tried these entries in obj.conf ?

 Init fn=load-modules shlib=/path/to/server4/bin/libphp4.so
 funcs=php4_init,php4_close,php4_execute,php4_auth_trans
 Init fn=php4_init LateInit=yes

 These fix a library loading problem; if it doesn't fix yours, then we
have
 to keep on searching.  Incidentally, what version of iPlanet are you
 running?

 --
-

 [2001-05-01 14:47:28] [EMAIL PROTECTED]
 My bug is exactly the same as Bug id #10012, except for my OS/PHP/Web
server
 version
 differences.  I am getting exactly the same error.

 I have set everything up correctly as stated in:
 http://www.php.net/manual/en/install.netscape-enterprise.php

 Error Message follows:

 Status:
 [https-bc_devel]: start failed. (2: unknown early startup error)
 [https-bc_devel]: server terminated (signal 6): watchdog is restarting
it
 [https-bc_devel]: failure: server initialization failed

 Error
 An error occurred during startup.
 The server https-bc_devel was not started.
 Return to process control

 Also, I don't even get that much when I try to start from the console.
I get
 no error
 message at all, logs don't even say what the problem was?  Strange.

 This is still not working, I'd go back to 4.0.4 pl1 but it's got it's
own
 problems.  Anybody?

 --
-

 [2001-05-01 11:43:56] [EMAIL PROTECTED

[PHP-DEV] PHP 4.0 Bug #10581 Updated: signal 6 when starting server

2001-05-02 Thread mark . faine

ID: 10581
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: iPlanet related
Description: signal 6 when starting server

If this shows up more than once, I'm sorry, it seems I'm having trouble getting any 
messages through today.

Sorry, seems there was a core file, and since there was (and you didn't give me any 
choice) I went ahead and recompiled with debug and installed gdb and generated a 
backtrace.

Here it is:

(gdb) bt
#0  0xef114d1c in __sigprocmask () from /usr/lib/libthread.so.1
#1  0xef10ba44 in _resetsig () from /usr/lib/libthread.so.1
#2  0xef10b18c in _sigon () from /usr/lib/libthread.so.1
#3  0xef10dfe0 in _thrp_kill () from /usr/lib/libthread.so.1
#4  0xef07a5d8 in abort () from /usr/lib/libc.so.1
#5  0xee56cacc in ts_resource_read () at zend_ini_scanner_cc.cc:1695
#6  0xee56c7e0 in ts_resource_ex () at zend_ini_scanner_cc.cc:1695
#7  0xee4b8684 in php4_init () at zend_ini_scanner_cc.cc:1695
#8  0xef6624e0 in 
__0Fafunc_native_pool_wait_workPFP6GpblockP6HSessionP6HRequest_iUiP6GpblockP6HSessionP6HRequest
 ()
   from /export/home1/netscape/bin/https/lib/libns-httpd40.so
#9  0xef661b80 in __0FNfunc_exec_strP6KFuncStructP6GpblockP6HSessionP6HRequest ()
   from /export/home1/netscape/bin/https/lib/libns-httpd40.so
#10 0xef661e2c in INTfunc_exec () from 
/export/home1/netscape/bin/https/lib/libns-httpd40.so
#11 0xef65f974 in INTconf_run_init_functions () from 
/export/home1/netscape/bin/https/lib/libns-httpd40.so
#12 0x2eacc in __0FLmagnus_initP6KPRFileDescPCc ()
#13 0x2f204 in main ()
(gdb) 



Previous Comments:
---

[2001-05-01 15:19:54] [EMAIL PROTECTED]
Hmm, need backtraces from gdb to show where things are going wrong ... is that 
possible? (not sure if you can get get debugging symbols from iPlanet)

---

[2001-05-01 15:16:28] [EMAIL PROTECTED]
User Feedback:

Yes, that was the first thing I tried, the server will start with these
changes but will timeout on every page, even non-php pages.  No page will
load.

It's Netscape iPlanet Server 4.0 SP5


---

[2001-05-01 15:00:30] [EMAIL PROTECTED]
Have you tried these entries in obj.conf ?

Init fn=load-modules shlib=/path/to/server4/bin/libphp4.so 
funcs=php4_init,php4_close,php4_execute,php4_auth_trans
Init fn=php4_init LateInit=yes

These fix a library loading problem; if it doesn't fix yours, then we have to keep on 
searching.  Incidentally, what version of iPlanet are you running?

---

[2001-05-01 14:47:28] [EMAIL PROTECTED]
My bug is exactly the same as Bug id #10012, except for my OS/PHP/Web server version
differences.  I am getting exactly the same error.

I have set everything up correctly as stated in:
http://www.php.net/manual/en/install.netscape-enterprise.php

Error Message follows:

Status: 
[https-bc_devel]: start failed. (2: unknown early startup error)
[https-bc_devel]: server terminated (signal 6): watchdog is restarting it 
[https-bc_devel]: failure: server initialization failed 

Error
An error occurred during startup.
The server https-bc_devel was not started.
Return to process control 

Also, I don't even get that much when I try to start from the console. I get no error
message at all, logs don't even say what the problem was?  Strange.

This is still not working, I'd go back to 4.0.4 pl1 but it's got it's own problems.  
Anybody?

---

[2001-05-01 11:43:56] [EMAIL PROTECTED]
My bug is exactly the same as Bug id #10012, except for my OS/PHP/Web server version 
differences.  I am getting exactly the same error.

I have set everything up correctly as stated in:
http://www.php.net/manual/en/install.netscape-enterprise.php

Error Message follows:

Status: 
[https-bc_devel]: start failed. (2: unknown early startup error)
[https-bc_devel]: server terminated (signal 6): watchdog is restarting it 
[https-bc_devel]: failure: server initialization failed 

Error
An error occurred during startup.
The server https-bc_devel was not started.
Return to process control 

Also, I don't even get that much when I try to start from the console. I get no error 
message at all, logs don't even say what the problem was?  Strange.


---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=10581


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, 

[PHP-DEV] Bug #10581: signal 6 when starting server

2001-05-01 Thread mark . faine

From: [EMAIL PROTECTED]
Operating system: Solaris 2.6
PHP version:  4.0.5
PHP Bug Type: iPlanet related
Bug description:  signal 6 when starting server

My bug is exactly the same as Bug id #10012, except for my OS/PHP/Web server version 
differences.  I am getting exactly the same error.

I have set everything up correctly as stated in:
http://www.php.net/manual/en/install.netscape-enterprise.php

Error Message follows:

Status: 
[https-bc_devel]: start failed. (2: unknown early startup error)
[https-bc_devel]: server terminated (signal 6): watchdog is restarting it 
[https-bc_devel]: failure: server initialization failed 

Error
An error occurred during startup.
The server https-bc_devel was not started.
Return to process control 

Also, I don't even get that much when I try to start from the console. I get no error 
message at all, logs don't even say what the problem was?  Strange.



-- 
Edit Bug report at: http://bugs.php.net/?id=10581edit=1



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #10581 Updated: signal 6 when starting server

2001-05-01 Thread mark . faine

ID: 10581
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: iPlanet related
Description: signal 6 when starting server

My bug is exactly the same as Bug id #10012, except for my OS/PHP/Web server version
differences.  I am getting exactly the same error.

I have set everything up correctly as stated in:
http://www.php.net/manual/en/install.netscape-enterprise.php

Error Message follows:

Status: 
[https-bc_devel]: start failed. (2: unknown early startup error)
[https-bc_devel]: server terminated (signal 6): watchdog is restarting it 
[https-bc_devel]: failure: server initialization failed 

Error
An error occurred during startup.
The server https-bc_devel was not started.
Return to process control 

Also, I don't even get that much when I try to start from the console. I get no error
message at all, logs don't even say what the problem was?  Strange.

This is still not working, I'd go back to 4.0.4 pl1 but it's got it's own problems.  
Anybody?

Previous Comments:
---

[2001-05-01 11:43:56] [EMAIL PROTECTED]
My bug is exactly the same as Bug id #10012, except for my OS/PHP/Web server version 
differences.  I am getting exactly the same error.

I have set everything up correctly as stated in:
http://www.php.net/manual/en/install.netscape-enterprise.php

Error Message follows:

Status: 
[https-bc_devel]: start failed. (2: unknown early startup error)
[https-bc_devel]: server terminated (signal 6): watchdog is restarting it 
[https-bc_devel]: failure: server initialization failed 

Error
An error occurred during startup.
The server https-bc_devel was not started.
Return to process control 

Also, I don't even get that much when I try to start from the console. I get no error 
message at all, logs don't even say what the problem was?  Strange.


---


Full Bug description available at: http://bugs.php.net/?id=10581


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] RE: Bug #10581 Updated: signal 6 when starting server

2001-05-01 Thread Faine, Mark

Yes, that was the first thing I tried, the server will start with these
changes but will timeout on every page, even non-php pages.  No page will
load.

It's Netscape iPlanet Server 4.0 SP5

Thanks
Mark

-Original Message-
From: Bug Database [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 2:01 PM
To: [EMAIL PROTECTED]
Subject: Bug #10581 Updated: signal 6 when starting server


ID: 10581
Updated by: avsm
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: iPlanet related
PHP Version: 4.0.5
Assigned To: 
Comments:

Have you tried these entries in obj.conf ?

Init fn=load-modules shlib=/path/to/server4/bin/libphp4.so
funcs=php4_init,php4_close,php4_execute,php4_auth_trans
Init fn=php4_init LateInit=yes

These fix a library loading problem; if it doesn't fix yours, then we have
to keep on searching.  Incidentally, what version of iPlanet are you
running?

Previous Comments:
---

[2001-05-01 14:47:28] [EMAIL PROTECTED]
My bug is exactly the same as Bug id #10012, except for my OS/PHP/Web server
version
differences.  I am getting exactly the same error.

I have set everything up correctly as stated in:
http://www.php.net/manual/en/install.netscape-enterprise.php

Error Message follows:

Status: 
[https-bc_devel]: start failed. (2: unknown early startup error)
[https-bc_devel]: server terminated (signal 6): watchdog is restarting it 
[https-bc_devel]: failure: server initialization failed 

Error
An error occurred during startup.
The server https-bc_devel was not started.
Return to process control 

Also, I don't even get that much when I try to start from the console. I get
no error
message at all, logs don't even say what the problem was?  Strange.

This is still not working, I'd go back to 4.0.4 pl1 but it's got it's own
problems.  Anybody?

---

[2001-05-01 11:43:56] [EMAIL PROTECTED]
My bug is exactly the same as Bug id #10012, except for my OS/PHP/Web server
version differences.  I am getting exactly the same error.

I have set everything up correctly as stated in:
http://www.php.net/manual/en/install.netscape-enterprise.php

Error Message follows:

Status: 
[https-bc_devel]: start failed. (2: unknown early startup error)
[https-bc_devel]: server terminated (signal 6): watchdog is restarting it 
[https-bc_devel]: failure: server initialization failed 

Error
An error occurred during startup.
The server https-bc_devel was not started.
Return to process control 

Also, I don't even get that much when I try to start from the console. I get
no error message at all, logs don't even say what the problem was?  Strange.


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at
http://bugs.php.net/?id=10581edit=2

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] RE: Bug #10581 Updated: signal 6 when starting server

2001-05-01 Thread Faine, Mark

It's possible but it wouldn't be easy, for one I don't have gdb installed,
AFAIK it doesn't come with Solaris so I'd have to install it.  Also, I
compiled with --disable-debug.  Then there the fact there is no core file
and I don't even know if I could get any kind of information from iPlanet
even if I recompiled and installed gdb.

-Mark

-Original Message-
From: Bug Database [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 2:20 PM
To: [EMAIL PROTECTED]
Subject: Bug #10581 Updated: signal 6 when starting server


ID: 10581
Updated by: avsm
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: iPlanet related
PHP Version: 4.0.5
Assigned To: 
Comments:

Hmm, need backtraces from gdb to show where things are going wrong ... is
that possible? (not sure if you can get get debugging symbols from iPlanet)

Previous Comments:
---

[2001-05-01 15:16:28] [EMAIL PROTECTED]
User Feedback:

Yes, that was the first thing I tried, the server will start with these
changes but will timeout on every page, even non-php pages.  No page will
load.

It's Netscape iPlanet Server 4.0 SP5


---

[2001-05-01 15:00:30] [EMAIL PROTECTED]
Have you tried these entries in obj.conf ?

Init fn=load-modules shlib=/path/to/server4/bin/libphp4.so
funcs=php4_init,php4_close,php4_execute,php4_auth_trans
Init fn=php4_init LateInit=yes

These fix a library loading problem; if it doesn't fix yours, then we have
to keep on searching.  Incidentally, what version of iPlanet are you
running?

---

[2001-05-01 14:47:28] [EMAIL PROTECTED]
My bug is exactly the same as Bug id #10012, except for my OS/PHP/Web server
version
differences.  I am getting exactly the same error.

I have set everything up correctly as stated in:
http://www.php.net/manual/en/install.netscape-enterprise.php

Error Message follows:

Status: 
[https-bc_devel]: start failed. (2: unknown early startup error)
[https-bc_devel]: server terminated (signal 6): watchdog is restarting it 
[https-bc_devel]: failure: server initialization failed 

Error
An error occurred during startup.
The server https-bc_devel was not started.
Return to process control 

Also, I don't even get that much when I try to start from the console. I get
no error
message at all, logs don't even say what the problem was?  Strange.

This is still not working, I'd go back to 4.0.4 pl1 but it's got it's own
problems.  Anybody?

---

[2001-05-01 11:43:56] [EMAIL PROTECTED]
My bug is exactly the same as Bug id #10012, except for my OS/PHP/Web server
version differences.  I am getting exactly the same error.

I have set everything up correctly as stated in:
http://www.php.net/manual/en/install.netscape-enterprise.php

Error Message follows:

Status: 
[https-bc_devel]: start failed. (2: unknown early startup error)
[https-bc_devel]: server terminated (signal 6): watchdog is restarting it 
[https-bc_devel]: failure: server initialization failed 

Error
An error occurred during startup.
The server https-bc_devel was not started.
Return to process control 

Also, I don't even get that much when I try to start from the console. I get
no error message at all, logs don't even say what the problem was?  Strange.


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at
http://bugs.php.net/?id=10581edit=2

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] I have libtool version 1.4 and buildconf script refuses to run

2001-04-30 Thread Mark

I have libtool version 1.4 and buildconf script refuses to run, it says:

lexington# ./buildconf
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
buildconf: automake version 1.4 (ok)
buildconf: libtool version 1.4 found.
   You need libtool version 1.3.3 or newer installed
   to build PHP from CVS.
make: *** [buildmk.stamp] Error 1


This has got to be a bug, any suggestions on a work-around?

-Mark




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] multiple php.ini

2001-04-27 Thread Mark

Netscape iPlanet server 4.0 SP5, Solaris 2.6


Is it possible to have multiple virtual servers, all being controlled by a
different php.ini file but the same php.ini NSAPI module binary.

Thanks,
Mark



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: Bug #10411 Updated: number_format returns wrong values

2001-04-20 Thread Mark Guertin

That was just a typo on my part entering the information.  The bug still
exists, and I think it specifically has to do with values set as float,2
from MySQL.

It doesn't happen every time, but I have seen this on at least 5 occasions
now.

Mark


on 4/19/01 5:53 PM, Bug Database at [EMAIL PROTECTED] wrote:

 ID: 10411
 Updated by: joey
 Reported By: [EMAIL PROTECTED]
 Old-Status: Open
 Status: Closed
 Bug Type: Unknown/Other Function
 PHP Version: 4.0.4pl1
 Assigned To: 
 Comments:
 
 Try changing:
 $total = number_format($calcs_a + calcs_b,2);
 to
 $total = number_format($calcs_a + $calcs_b,2);
 (Note the missing $)
 
 Works just fine here with that small adjustment.
 
 Previous Comments:
 ---
 
 [2001-04-19 17:35:01] [EMAIL PROTECTED]
 number_format returns wrong values in certain situations,
 here is a code example...
 
 $value = 504;
 $calcs_a = number_format($value,2);
 
 $othervalue = 504;
 $calcs_b = number_format($othervalue,2);
 
 $total = number_format($calcs_a + calcs_b,2);
 
 this returns:
 $calcs_a is 504.00
 $calcs_b is 504.00
 $total is 1.00  (should be 1008.00)
 
 I have seen this on several occasions now on multiple
 machines/setups/Oses
 
 
 
 
 ---
 
 
 
 ATTENTION! Do NOT reply to this email!
 To reply, use the web interface found at http://bugs.php.net/?id=10411edit=2
 

==
Mark Guertin, IT Manager
Artshouse Communications Inc.
345 Adelaide Street West, Main Floor
Toronto, ON, Canada   M5V 1R5
Phone (416) 340-6284 x222
Fax - (416) 581-1252


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] X-Powered-by

2001-03-14 Thread Mark Taylor

Dear all,

When I upload my php4 work to my ISP, the following is displayed at the
beginning of each php page.

"X-Powered-By: PHP/4.0.4pl1 Content-type: text/html"

Now, after reading numerous support pages, I know that this can be turned
off if php is in 'quiet' mode.

Having emailed this information to my ISP, their response was as follows.

"Your site is on a server with a shared enviroment, changing it would mean
changing it for everyone else. We are unable to make the change you require
at this time."

Great !!!

Is there anyway way around this ? - I'm sure I can't be the only one using
this particular ISP that doesn't want X-Powered-by etc... displaying on each
php page ?

Best regards,
Mark (:



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] database abstraction layers [from: MySQLfeature/bug]

2001-01-31 Thread Mark J. Hershenson

 
 I have been crafting my own database abstraction layer, and in doing so
 create an array of the results of a query.
 
 Is this an db abstraction layer written in php (script), or written as a
 module for php (C)?
 
 I was thinking of writing an (open source) db-abstraction module (that uses
 existing db-modules, of course), which could then be used from php-script as
 well as from other modules that need db-functionality without committing to
 a specific database.
 
 Or, does such a module exist already and should I concentrate on using
 and/or co-developing that one?
 
 Thanks, Marc.

I'd be open to turning it into C, as all my layer is really doing at its
core is to do every single bit of error checking and API utilization for all
the different DB drivers present on the system.

What I've seen of PHPLIB and PEAR's DB function don't interest me. I hardly
see the point of using objects to do the work that a general function would
do just as well and without any need to instantiate it.

I need to spend some time with the Zend API to see if it's really worth it
for my time to go about doing it, but yes, I am very much considering
turning it into C.

I've really been hoping that someone was going to take an intermediately
complex Zend extension and put together a how-to that would help beginners
and advanced programmers alike.

I think there is a real need for someone or a group of programmers to get
together and write a step-by-step theory/implementation "cookbook" for the
sake of the community. Should I reach that point, I'd be happy to do it, but
I tend to believe that the community could do it faster and better than I
could right now, and that if if such a document were made publicly
available, the community could build more and better core tools faster.

My 2 cents...:)

--

Per the initial question I posted, can there at least by made available a
newer option for mysql_fetch_array() such as MYSQL_ALL, which would then
give you null and non-null associative names?

  Mark J. Hershenson
  [EMAIL PROTECTED]
  http://www.green-ant.com/


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DEV] Undefined Versioned Symbol

2001-01-19 Thread Mark Olbert

Sorry, but those bug reports provide no information on how to solve the
problem. Other than re-installing the glibc, which I've done, or
re-installing my entire system, which is similar to killing a fly with a 10
megaton nuclear warhead. Is there any record that reinstalling the entire
system actually solves the problem?

As an FYI, I think making assertions to the effect that "this is not a PHP
problem" is an odd way to handle bug reports. How can anyone know that the
assertion is true if there is no non-PHP-related solution documented?

- Mark

-Original Message-
From: Mike Robinson [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 12:53 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-DEV] Undefined Versioned Symbol


Go to http://bugs.php.net and read #7711,8774, and 8721.

Regards
Mike Robinson

 -Original Message-----
 From: Mark Olbert [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 19, 2001 3:24 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP-DEV] Undefined Versioned Symbol


 I've been having problems getting php-4.0.4 to compile on my linux system;
 the make keeps breaking when libphp.so is being linked with an undefined
 versioned symbol name __ns_name_unpack@@GLIBC_2.1 error.

 I've rebuilt and reinstalled glibc2.1.3, and every library I know of that
 php depends on, but that didn't solve the problem.

 I saw a post in the php bug database about the exact same problem
 which the
 poster solved by creating a shared version of libbind (which is not
 supported in the isc.org release of bind).

 This lead me to run objdump on both libbind.a and libresolv.so.2. Here's
 what I found:

 objdump -x /lib/libresolv.so.2 | grep __ns_name:

 4424 g F .text  011a  __ns_name_unpack
 4044 g F .text  01db  __ns_name_ntop

 objdump -x /usr/lib/libbind.a | grep __ns_name:

 [...snip...]
 03e4 g F .text  0105 __ns_name_unpack
 0684 g F .text  0063 __ns_name_uncompress
 06e8 g F .text  0057 __ns_name_compress
  g F .text  01ae __ns_name_ntop
 [...snip...]

 If I'm reading this correctly (I'm not experienced in programming under
 linux), this looks like both libresolv.so.2 (a shared library, part of
 glibc) and libbind.a (a static library, part of bind) are exporting
 __ns_name_unpack and __ns_name_ntop.

 Somehow, this does not strike me as a good thing for programs like php,
 which link against both libraries.

 Is this potentially the source of my make problem? And, if so,
 what can I do
 about it?

 - Mark
 [EMAIL PROTECTED]



 --
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #8814: Undefined Versioned Symbol

2001-01-19 Thread mark

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.5
PHP version:  4.0.4
PHP Bug Type: Compile Failure
Bug description:  Undefined Versioned Symbol

I have previously reported a problem with php-4.0.4 failing to compile, aborting with 
an undefined versioned symbol error (on __ns_name_unpack@@GLIBC_2.1).

This problem has been reported here several times, and on all occassions the 
development team has responded with "this isn't a php problem" feedback. Which is, of 
course, not very helpful to those people trying to get php to compile.

In my case I was finally able to get php to compile by moving all of the resolver 
libraries out of /usr/lib. Why this should have been necessary I do not know; all I 
know is that moving:

libresolv.a
libresolv_p.a
libresolv.so (symlinked to /lib/libresolv.so.2)

out of /usr/lib allowed php to compile.

The relevant section of the config.log file seems to be:
===
configure:5046: checking for inet_aton in -lbind
configure:5065: gcc -o conftest -g -O2  -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT 
-DNO_DL_NEEDED  conftes$

configure:5103: checking for inet_aton in -lresolv
configure:5122: gcc -o conftest -g -O2  -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT 
-DNO_DL_NEEDED  conftes$
/usr/i586-pc-linux-gnu/bin/ld: cannot find -lresolv
collect2: ld returned 1 exit status
configure: failed program was:
#line 5111 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply.  */
char inet_aton();

int main() {
inet_aton()
; return 0; }
===

Apparently, configure looks for inet_aton in -lbind and -lresolv, and when it finds 
them in both, gets confused. Preventing it from finding the -lresolv libraries solves 
the problem.

I think. I'll be sure when I get my site to work (i.e., I'm wondering if php compiled, 
but perhaps isn't functional, and is screwing up httpd).

In any event, I think this qualifies as an issue to either fix in the configure 
script, or post a warning about in the INSTALL file.

And I hope to Ghu that no one else has to deal with this ridiculously obscure problem!

- Mark


-- 
Edit Bug report at: http://bugs.php.net/?id=8814edit=1



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] RE: PHP 4.0 Bug #8774 Updated: undefined versioned symbol name __ns_name_unpack@@GLIBC2.1

2001-01-18 Thread Mark Olbert

Given that I've recompiled and re-installed glibc.2.1.3, how could it not be
a bug in php? I thought that versioning problems come about when the
compiled program "requires" a specific version of an exported function, and
the source library doesn't have that version.

BTW, what does "atm" (as in 'Your system is not quite well atm') mean?

- Mark

-Original Message-
From: Bug Database [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 3:25 AM
To: [EMAIL PROTECTED]
Subject: PHP 4.0 Bug #8774 Updated: undefined versioned symbol name
__ns_name_unpack@@GLIBC2.1


ID: 8774
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Compile Failure
Assigned To:
Comments:

This is not any bug in PHP. Your system is not
quite well atm. If you compile GLIBC then you
should know what you're doing. Otherwise it is
just asking for trouble.I suggest you reinstall
your system and use a newer distribution instead.

--Jani

Previous Comments:
---

[2001-01-17 21:03:23] [EMAIL PROTECTED]
PHP 4.0.4 will not compile on my linux system as a module, although it will
compile into a standalone executable.

The standalone configure script that I'm using is:

=

#! /bin/sh
#
# Created by configure

"./configure"
"--prefix=/usr"
"--with-config-file-path=/etc"
"--enable-calendar"
"--enable-force-cgi-redirect"
"--with-gd=/usr"
"--with-jpeg-dir=/usr"
"--with-mysql=/usr"
"--with-zlib=/usr"
"--with-png-dir=/usr"
"--with-regex=system"
"$@"

=

The module configure script that I'm using is:

=

#! /bin/sh
#
# Created by configure

"./configure"
"--prefix=/usr"
"--with-apxs=/usr/bin/apxs"
"--with-config-file-path=/etc"
"--enable-calendar"
"--with-gd=/usr"
"--with-jpeg-dir=/usr"
"--with-mysql=/usr"
"--with-zlib=/usr"
"--with-png-dir=/usr"
"--with-regex=system"
"--with-exec-dir=/home/httpd/php"
"$@"



The module compile crashes in what appears to be the final link to build
libphp, on the following line with the following message:



/bin/sh /usr/download/php-4.0.4/libtool --silent --mode=link
gcc  -I. -I/usr/download/php-4.0.4/ -I/
usr/download/php-4.0.4/main -I/usr/download/php-4.0.4 -I/usr/download/php-4.
0.4/Zend -I/usr/include/
mysql -I/usr/download/php-4.0.4/ext/xml/expat/xmltok -I/usr/download/php-4.0
.4/ext/xml/expat/xmlpars
e -I/usr/download/php-4.0.4/TSRM  -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -DNO_D
L_NEEDED -DXML_BYTE_ORDE
R=12 -g -O2   -o libphp4.la -rpath
/usr/download/php-4.0.4/libs -avoid-version -L/usr/lib/mysql  -R
/usr/lib/mysql stub.lo  Zend/libZend.la sapi/apache/libsapi.la
main/libmain.la  ext/calendar/libcale
ndar.la ext/gd/libgd.la ext/mysql/libmysql.la ext/pcre/libpcre.la
ext/posix/libposix.la ext/session/
libsession.la ext/standard/libstandard.la ext/xml/libxml.la
ext/zlib/libzlib.la TSRM/libtsrm.la -ldl
 -lz -lmysqlclient -lpng -lz -lgd -ljpeg -lresolv -lbind -lm -ldl -lcrypt -l
nsl -lresolv -L/usr/lib
-ljpeg

/usr/i586-pc-linux-gnu/bin/ld: .libs/libphp4.so: undefined versioned symbol
name __ns_name_unpack@@GLIBC_2.1
/usr/i586-pc-linux-gnu/bin/ld: failed to set dynamic section sizes: Bad
value

===

I have tried quite a few things to fix this problem, including rebuilding
and reinstalling the glibc library (v2.1.3). When I run nm against
libresolv, __ns_name_unpack doesn't have an explicit version attached to it
(i.e., it shows up as __ns_name_unpack, not __ns_name_unpack@@GLIBC_x.y).

- Mark

---


Full Bug description available at: http://bugs.php.net/?id=8774



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #8774: undefined versioned symbol name __ns_name_unpack@@GLIBC2.1

2001-01-17 Thread mark

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.5
PHP version:  4.0.4
PHP Bug Type: Compile Failure
Bug description:   undefined versioned symbol name __ns_name_unpack@@GLIBC2.1

PHP 4.0.4 will not compile on my linux system as a module, although it will compile 
into a standalone executable.

The standalone configure script that I'm using is:

=

#! /bin/sh
#
# Created by configure

"./configure" \
"--prefix=/usr" \
"--with-config-file-path=/etc" \
"--enable-calendar" \
"--enable-force-cgi-redirect" \
"--with-gd=/usr" \
"--with-jpeg-dir=/usr" \
"--with-mysql=/usr" \
"--with-zlib=/usr" \
"--with-png-dir=/usr" \
"--with-regex=system" \
"$@"

=

The module configure script that I'm using is:

=

#! /bin/sh
#
# Created by configure

"./configure" \
"--prefix=/usr" \
"--with-apxs=/usr/bin/apxs" \
"--with-config-file-path=/etc" \
"--enable-calendar" \
"--with-gd=/usr" \
"--with-jpeg-dir=/usr" \
"--with-mysql=/usr" \
"--with-zlib=/usr" \
"--with-png-dir=/usr" \
"--with-regex=system" \
"--with-exec-dir=/home/httpd/php" \
"$@"

 

The module compile crashes in what appears to be the final link to build libphp, on 
the following line with the following message:



/bin/sh /usr/download/php-4.0.4/libtool --silent --mode=link gcc  -I. 
-I/usr/download/php-4.0.4/ -I/
usr/download/php-4.0.4/main -I/usr/download/php-4.0.4 -I/usr/download/php-4.0.4/Zend 
-I/usr/include/
mysql -I/usr/download/php-4.0.4/ext/xml/expat/xmltok 
-I/usr/download/php-4.0.4/ext/xml/expat/xmlpars
e -I/usr/download/php-4.0.4/TSRM  -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED 
-DXML_BYTE_ORDE
R=12 -g -O2   -o libphp4.la -rpath /usr/download/php-4.0.4/libs -avoid-version 
-L/usr/lib/mysql  -R
/usr/lib/mysql stub.lo  Zend/libZend.la sapi/apache/libsapi.la main/libmain.la  
ext/calendar/libcale
ndar.la ext/gd/libgd.la ext/mysql/libmysql.la ext/pcre/libpcre.la 
ext/posix/libposix.la ext/session/
libsession.la ext/standard/libstandard.la ext/xml/libxml.la ext/zlib/libzlib.la 
TSRM/libtsrm.la -ldl
 -lz -lmysqlclient -lpng -lz -lgd -ljpeg -lresolv -lbind -lm -ldl -lcrypt -lnsl 
-lresolv -L/usr/lib
-ljpeg

/usr/i586-pc-linux-gnu/bin/ld: .libs/libphp4.so: undefined versioned symbol name 
__ns_name_unpack@@GLIBC_2.1
/usr/i586-pc-linux-gnu/bin/ld: failed to set dynamic section sizes: Bad value

===

I have tried quite a few things to fix this problem, including rebuilding and 
reinstalling the glibc library (v2.1.3). When I run nm against libresolv, 
__ns_name_unpack doesn't have an explicit version attached to it (i.e., it shows up as 
__ns_name_unpack, not __ns_name_unpack@@GLIBC_x.y).

- Mark


-- 
Edit Bug report at: http://bugs.php.net/?id=8774edit=1



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #8701: Can't Load DLL whichs exist in extensions folder

2001-01-14 Thread mark

From: [EMAIL PROTECTED]
Operating system: Windows 98
PHP version:  4.0.4pl1
PHP Bug Type: Dynamic loading
Bug description:  Can't Load DLL whichs exist in extensions folder

I have successfully set up PHP with the easyphp.exe. This is not my first time to 
install PHP CGI on a Windows 98 System. But this is the first time I want to connect 
with the Oracle8i. So I comment out the extension=php_oci8.dll.

And the error message shows like this :

PHP Warning:  Unable to load dynamic library 'c:\php\php_oci8.dll' -  One of the
library files needed to run the application cannot be found.

After several times of testing, I found the not only yhe php_oci8.dll cannot be load, 
php_openssl.dll and php_oracle.dll also can't load. And the rest of *.dll are loaded 
well.

I suspect whether is this a differnece between a Windows98 and a Windows NT system? So 
that some people can successfully load the oracle dll?


-- 
Edit Bug report at: http://bugs.php.net/?id=8701edit=1



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DEV] PHP 4.0 Bug #6821 Updated: Segmentation fault when opening a php test page

2001-01-10 Thread Mark Badham

Unfortunately I find it isn't at all obvious. It seems to me that a 
snapshot then is really nothing other than a form of mirror site. So why 
not just stick to calling it a mirror site? Plus how do I know if the 
snapshot includes any patches or not? (I think the word "latest" is not 
precise enough to convey this detail.)

The main problem I have with just trying a later version is that it doesn't 
demonstrate in any way whether a bug is fixed or not. Just because the 
symptoms disappear doesn't mean the bug is fixed, it could just be more 
deeply hidden and re-occur later.

Anyway, I'm sure the rest of the group is bored with these messages by now, 
if you wish to continue the discussion then please by all means do so but 
we'll keep it out of the group I think.

Mark

-Original Message-
From:   Rasmus Lerdorf [SMTP:[EMAIL PROTECTED]]
Sent:   10 January 2001 11:27
To: Mark Badham
Cc: [EMAIL PROTECTED]
Subject:RE: [PHP-DEV] PHP 4.0 Bug #6821 Updated: Segmentation fault when  
 opening a php test page

It should be somewhat obvious what they are.  They are snapshots of the
current PHP code.  None of us want to spend time tracking down a bug that
has already been fixed and the quickest way to discover whether the bug is
still a problem is for you to let us know.

-Rasmus



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Compile Problem: Place for Help

2001-01-10 Thread Mark Olbert

Can anyone recommend a place/forum for help in getting PHP to compile under
linux?

I am running into a problem that I haven't gotten any feedback on from
php-dev, php-general or php-install.

The specific problem is:

/usr/bin/ld: .libs/libphp4.so: undefined versioned symbol name
__fp_query@@GLIBC_2.0
/usr/bin/ld: failed to set dynamic section sizes: Bad value

Looks like the linker can't find __fp_query().

- Mark
[EMAIL PROTECTED]


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]