[PHP-DEV] Bug #10203 Updated: foreach weakness

2002-01-29 Thread jack

ID: 10203
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Open
Bug Type: Feature/Change Request
Operating System: all
PHP Version: 4.0.4pl1
New Comment:

you haven't read the previous posts, have you?

I think it's a general problem with list() construct, that you cannot
use it everywhere you can use an L-value (or however you guys call it
in PHP)


Previous Comments:


[2002-01-28 20:45:41] [EMAIL PROTECTED]

foreach ($arr as $key => $val)




[2001-04-11 11:17:31] [EMAIL PROTECTED]

sure, I know I could use this way but I don't find it nice at all.



[2001-04-06 14:42:55] [EMAIL PROTECTED]

It's for someone else to decide whether to add this to 
the language, but until they do you can achieve the same
effect with:

$arr = array(array(1, 2), array(3, 4)); 
foreach ($arr as $narr) {
list($a, $b) = array_values($narr);
echo "$a, $b\n";
}

BTW--it would have helped if you had explained what 
results you were after and not just the syntax you wanted. ;)



[2001-04-06 07:54:29] [EMAIL PROTECTED]

no, 'list' should assign an array to a list of variables.

$arr = array(array(1, 2), array(3, 4));

foreach ($arr as list($a, $b))
echo "$a $b\n";




[2001-04-06 07:19:30] [EMAIL PROTECTED]

and what should it do?

i guess you want to have key and value in one step?

this is done by the foreach($array as $key => $value)
construct, does that satisfy your needs?



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=10203


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


-- 
PHP Development Mailing List 
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 #15257 Updated: Can't retrieve node content

2002-01-29 Thread work

ID: 15257
User updated by: [EMAIL PROTECTED]
Old Summary: Can't retrieve node content
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: DOM XML related
Operating System: Windows2000
PHP Version: 4.1.1
New Comment:

Thank you sir,

  That works a treat.


Previous Comments:


[2002-01-28 14:31:50] [EMAIL PROTECTED]

Try replacing your $nodes[$nodeNumber]->content line with 
$redirectURL = getContent($nodes[$nodeNumber]);

Where getContent is:
function getContent ($n)
{
if (!($children = $n->children())) return '';

$content = '';
foreach ($children as $c) {
if ($c->type == XML_TEXT_NODE) {
$content .= $c->content;
}
}

return $content;
}

I can verify the behavior.  I'm thinking it is a bug too.  If
functionality has been changed, a change in documentation is in order.



[2002-01-28 14:13:23] [EMAIL PROTECTED]

Sorry in advance if this isn't considered a bug.

The DomXML content property is no longer available in 4.1.1 as we now
are referencing elements instead of nodes, but I can't see a way of
extracting the content of the element/node.

Following works in 4.06:

$docnode = xmldoc($xmlString);
$rootNode = $docnode->root();
$nodes = $rootNode->children();

for ($nodeNumber = 0; $nodeNumber < count($nodes); $nodeNumber++) {
  $nodeName = $nodes[$nodeNumber]->name;

  // ... some more nodeName comparisons here
  if ($nodeName == "redirect") {
$redirectURL = $nodes[$nodeNumber]->content;
  }
}

In 4.1.1 tagname replaces name, but I can't see anything that replaces
or gives me a reference to content.

Again, sorry if this isn't considered a bug.  I've only been coding PHP
for 2 days and I'm still finding my way around.

PS. I could do with using 4.1.1 as 4.0.6 doesn't allow https in curl





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


-- 
PHP Development Mailing List 
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 #15272: JDDayOfWeek result wrong by one day

2002-01-29 Thread noel

From: [EMAIL PROTECTED]
Operating system: WinXP
PHP version:  4.1.1
PHP Bug Type: Calendar related
Bug description:  JDDayOfWeek result wrong by one day

JDDayOfWeek returns a result which is wrong by one day, for instance it
says that Jan. 29th, 2002 is a 1, Monday, or Mon, depending on the mode.
That date is actually a Tuesday.

I'm using the standard ISAPI build 4.1.1 downloaded from PHP.net, with the
php_gd.dll library.
-- 
Edit bug report at: http://bugs.php.net/?id=15272&edit=1


-- 
PHP Development Mailing List 
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 #10203 Updated: foreach weakness

2002-01-29 Thread yohgaki

ID: 10203
Updated by: yohgaki
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Analyzed
Bug Type: Feature/Change Request
Operating System: all
PHP Version: 4.0.4pl1
New Comment:

It's in TODO already :)
Someone might implement it, but I guess it's not anytime soon.


Previous Comments:


[2002-01-29 03:34:06] [EMAIL PROTECTED]

you haven't read the previous posts, have you?

I think it's a general problem with list() construct, that you cannot
use it everywhere you can use an L-value (or however you guys call it
in PHP)



[2002-01-28 20:45:41] [EMAIL PROTECTED]

foreach ($arr as $key => $val)




[2001-04-11 11:17:31] [EMAIL PROTECTED]

sure, I know I could use this way but I don't find it nice at all.



[2001-04-06 14:42:55] [EMAIL PROTECTED]

It's for someone else to decide whether to add this to 
the language, but until they do you can achieve the same
effect with:

$arr = array(array(1, 2), array(3, 4)); 
foreach ($arr as $narr) {
list($a, $b) = array_values($narr);
echo "$a, $b\n";
}

BTW--it would have helped if you had explained what 
results you were after and not just the syntax you wanted. ;)



[2001-04-06 07:54:29] [EMAIL PROTECTED]

no, 'list' should assign an array to a list of variables.

$arr = array(array(1, 2), array(3, 4));

foreach ($arr as list($a, $b))
echo "$a $b\n";




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=10203


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


-- 
PHP Development Mailing List 
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 #15257 Updated: Can't retrieve node content

2002-01-29 Thread chregu

ID: 15257
Updated by: chregu
Old Summary: Can't retrieve node content
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: DOM XML related
Operating System: Windows2000
PHP Version: 4.1.1
New Comment:

this will be implemented in the next version of php (4.2) or already in
cvs now with

$node->get_content()




Previous Comments:


[2002-01-29 03:38:36] [EMAIL PROTECTED]

Thank you sir,

  That works a treat.



[2002-01-28 14:31:50] [EMAIL PROTECTED]

Try replacing your $nodes[$nodeNumber]->content line with 
$redirectURL = getContent($nodes[$nodeNumber]);

Where getContent is:
function getContent ($n)
{
if (!($children = $n->children())) return '';

$content = '';
foreach ($children as $c) {
if ($c->type == XML_TEXT_NODE) {
$content .= $c->content;
}
}

return $content;
}

I can verify the behavior.  I'm thinking it is a bug too.  If
functionality has been changed, a change in documentation is in order.



[2002-01-28 14:13:23] [EMAIL PROTECTED]

Sorry in advance if this isn't considered a bug.

The DomXML content property is no longer available in 4.1.1 as we now
are referencing elements instead of nodes, but I can't see a way of
extracting the content of the element/node.

Following works in 4.06:

$docnode = xmldoc($xmlString);
$rootNode = $docnode->root();
$nodes = $rootNode->children();

for ($nodeNumber = 0; $nodeNumber < count($nodes); $nodeNumber++) {
  $nodeName = $nodes[$nodeNumber]->name;

  // ... some more nodeName comparisons here
  if ($nodeName == "redirect") {
$redirectURL = $nodes[$nodeNumber]->content;
  }
}

In 4.1.1 tagname replaces name, but I can't see anything that replaces
or gives me a reference to content.

Again, sorry if this isn't considered a bug.  I've only been coding PHP
for 2 days and I'm still finding my way around.

PS. I could do with using 4.1.1 as 4.0.6 doesn't allow https in curl





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


-- 
PHP Development Mailing List 
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 #15223 Updated: PHP Memory violation using Java 1.3

2002-01-29 Thread rlutzkanoff

ID: 15223
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Java related
Operating System: Windows 2000
PHP Version: 4.1.1
New Comment:

The same symptoms appear using iPlanet under Windows 2000 in nsapi
mode. In CGI mode there is no problem...


Previous Comments:


[2002-01-28 03:48:16] [EMAIL PROTECTED]

The script is : 



graphe Ace

getProperty("java.version")."
\n";
  print "Java vendor=".$system->getProperty("java.vendor")." \n\n";
  print "OS=".$system->getProperty("os.name")." ".
  $system->getProperty("os.version")." on ".
  $system->getProperty("os.arch")." \n";
?>





[2002-01-26 05:41:00] [EMAIL PROTECTED]

Can you provide sample script?
And please do NOT include a full php.ini unless explicitly asked for.



[2002-01-25 12:32:17] [EMAIL PROTECTED]

After having a few times the error reported in the bug #14754, PHP
finaly has a memory corruption forcing us to reboot completely the
server. We are unable to stop the IIS services. We are using IIS 5.0 on
Windows 2000 with PHP 4.1.1 in ISAPI mode and Java 1.3.1_01. The bug
can be corrected using the CGI mode, but for a performance problem, we
need to use ISAPI.

Here is the PHP.ini

[PHP]

;;;
; WARNING ;
;;;
; This is the default settings file for new PHP installations.
; By default, PHP installs itself with a configuration suitable for
; development purposes, and *NOT* for production purposes.
; For several security-oriented considerations that should be taken
; before going online with your site, please consult
php.ini-recommended
; and http://php.net/manual/en/security.php.


;;;
; About this file ;
;;;
; This file controls many aspects of PHP's behavior.  In order for PHP
to
; read it, it must be named 'php.ini'.  PHP looks for it in the
current
; working directory, in the path designated by the environment
variable
; PHPRC, and in the path that was defined in compile time (in that
order).
; Under Windows, the compile-time path is the Windows directory.  The
; path in which the php.ini file is looked for can be overridden using
; the -c argument in command line mode.
;
; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably
guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
;
; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from
FOO=bar.
;
; The value can be a string, a number, a PHP constant (e.g. E_ALL or
M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an
expression
; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
;
; Expressions in the INI file are limited to bitwise operators and
parentheses:
; |bitwise OR
; &bitwise AND
; ~bitwise NOT
; !boolean NOT
;
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
;
; An empty string can be denoted by simply not writing anything after
the equal
; sign, or by using the None keyword:
;
;  foo = ; sets foo to an empty string
;  foo = none; sets foo to an empty string
;  foo = "none"  ; sets foo to the string 'none'
;
; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend
extension),
; you may only use these constants *after* the line that loads the
extension.
;
; All the values in the php.ini-dist file correspond to the builtin
; defaults (that is, if no php.ini is used, or if you delete these
lines,
; the builtin defaults will be identical).



; Language Options ;


; Enable the PHP scripting language engine under Apache.
engine = On

; Allow the  tags are
recognized.
short_open_tag = Off

; Allow ASP-style <% %> tags.
asp_tags = Off

; The number of significant digits displayed in floating point
numbers.
precision=  14

; Enforce year 2000 compliance (will cause problems with non-compliant
browsers)
y2k_compliance = Off

; Output buffering allows you to send header lines (including cookies)
even
; after you send body content, at the price of slowing PHP's output
layer a
; bit.  You can enable output buffering during runtime by calling the
output
; buffering functions.  You can also enable output buffering for all
files by
; setting this directive to On.  If you wish to limit the size of the
buffer
; to a certain size - you can use a maximum number of bytes in

[PHP-DEV] Bug #15273: Reference to array breaks

2002-01-29 Thread mvl

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.1.1
PHP Bug Type: Arrays related
Bug description:  Reference to array breaks

Hi,

Below you will find a piece of code which is intended to make two
two-dimensional arrays: $aa and $bb. In fact, both arrays should be the
same, as far as I can see. It seems however that the unset($b_nw) is
crucial. 

As far as I understood from the documentation, an assignement with an
arrray on the right-hand side should perfrom a copy of the array. My
assumption is that the same should be true with a reference to an array,
because there is no way to distinguish between them. So please have a look
at my code and tell me when you need more information, or if I
misunderstood something.


The code:

aa: ";
   print_r($aa);
   echo "\n";
   echo "bb: ";
   print_r($bb);
   echo "\n";
?>


The output:
aa: Array ( [0] => Array ( [0] => 0 ) [1] => Array ( [0] => 0 [1] => 2 )
[2] => Array ( [0] => 0 [1] => 2 ) ) 
bb: Array ( [0] => Array ( [0] => 0 ) [1] => Array ( [0] => 0 [1] => 1 )
[2] => Array ( [0] => 0 [1] => 2 ) ) 

Note that $aa[1] != $bb[1], which is unexepected ($bb[1] is the correct
value, I think).

Thanks,

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


-- 
PHP Development Mailing List 
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 #11716 Updated: Segmentation fault(coredump) in Apache(DSO-enabled) startup

2002-01-29 Thread vervoom

ID: 11716
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Apache related
Operating System: AIX 4.3.3
PHP Version: 4.1.1
New Comment:

I'm having exactly the same problem as this:

# ./apachectl start
./apachectl[71]: 13068 Segmentation fault(coredump)
./apachectl start: httpd could not be started

If I remove the LoadModule libexec/libphp4.so line from the conf, httpd
starts OK. I've been looking at the previous reports on this bug, and
your answer is always try the latest snapshot. Well considering this
problem has been going on for over 2 years now, perhaps we could have a
more original answer please?!

I've tried 4.0.6, and 4.1.1 and your latest snapshot!!
With php-4.1.1 I even had to tinker with your make install script to
get it to install properly. If you can't even set this product up to
work properly from the start, then that doesn't say very much for it!!
Why don't your developers sort it out once and for all, and stop
wasting everyone's time (including yours!!)?


Previous Comments:


[2002-01-16 05:12:00] [EMAIL PROTECTED]

This is output from make.

 SKIP 

mkdir .libs
rm -fr .libs/libregex.la .libs/libregex.* .libs/libregex.*
ar cru .libs/libregex.al regcomp.lo regexec.lo regerror.lo regfree.lo
ranlib .libs/libregex.al
creating libregex.la
(cd .libs && rm -f libregex.la && ln -s ../libregex.la libregex.la)
make[2]: Leaving directory `/home/cmlee/Project/php-4.1.1/regex'
make[1]: Leaving directory `/home/cmlee/Project/php-4.1.1/regex'
Making all in .
make[1]: Entering directory `/home/cmlee/Project/php-4.1.1'
/bin/sh /home/cmlee/Project/php-4.1.1/libtool --mode=compile gcc  -I.
-I/home/cmlee/Project/php-4.1.1/ -I/home/cmlee/Project/php-4.1.1/main
-I/home/cmlee/Project/php-4.1.1 -I/usr/local/apache/include
-I/home/cmlee/Project/php-4.1.1/Zend
-I/home/cmlee/Project/php-4.1.1/ext/xml/expat  -DAIX=43
-DUSE_PTHREAD_SERIALIZED_ACCEPT -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
-DUSE_EXPAT -I/home/cmlee/Project/php-4.1.1/TSRM -O2 -g -Wall
-prefer-pic  -c stub.c
gcc -I. -I/home/cmlee/Project/php-4.1.1/
-I/home/cmlee/Project/php-4.1.1/main -I/home/cmlee/Project/php-4.1.1
-I/usr/local/apache/include -I/home/cmlee/Project/php-4.1.1/Zend
-I/home/cmlee/Project/php-4.1.1/ext/xml/expat -DAIX=43
-DUSE_PTHREAD_SERIALIZED_ACCEPT -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
-DUSE_EXPAT -I/home/cmlee/Project/php-4.1.1/TSRM -O2 -g -Wall -c stub.c
 -DPIC -o stub.lo
/bin/sh /home/cmlee/Project/php-4.1.1/libtool --mode=link gcc  -I.
-I/home/cmlee/Project/php-4.1.1/ -I/home/cmlee/Project/php-4.1.1/main
-I/home/cmlee/Project/php-4.1.1 -I/usr/local/apache/include
-I/home/cmlee/Project/php-4.1.1/Zend
-I/home/cmlee/Project/php-4.1.1/ext/xml/expat  -DAIX=43
-DUSE_PTHREAD_SERIALIZED_ACCEPT -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
-DUSE_EXPAT -I/home/cmlee/Project/php-4.1.1/TSRM -O2 -g -Wall
-prefer-pic   -o libphp4.la -rpath /home/cmlee/Project/php-4.1.1/libs
-Wl,-bI:/usr/local/apache/libexec/httpd.exp -avoid-version   stub.lo 
Zend/libZend.la sapi/apache/libsapi.la main/libmain.la
regex/libregex.la ext/pcre/libpcre.la ext/posix/libposix.la
ext/session/libsession.la ext/standard/libstandard.la ext/xml/libxml.la
TSRM/libtsrm.la -ldl -lcrypt -lbind -lm -ldl -lcrypt
mkdir .libs
rm -fr .libs/libphp4.la .libs/libphp4.* .libs/libphp4.*
(cd . && ln -s stub.lo stub.o)
generating symbol list for `libphp4.la'
/usr/bin/nm -B  stub.o   Zend/.libs/libZend.al
sapi/apache/.libs/libsapi.al main/.libs/libmain.al
regex/.libs/libregex.al ext/pcre/.libs/libpcre.al
ext/posix/.libs/libposix.al ext/session/.libs/libsession.al
ext/standard/.libs/libstandard.al ext/xml/.libs/libxml.al
TSRM/.libs/libtsrm.al | sed -n -e 's/^.*[ ]\([BCDT][BCDT]*\)[
][  ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' | sed 's/.* //'
| sort | uniq > .libs/libphp4.exp
nm: ext/standard/.libs/libstandard.al[image.lo]: 0654-206 Cannot
process the symbol table.

 SKIP 

(cd .libs/libphp4.lax/libtsrm.al && ar x
/home/cmlee/Project/php-4.1.1/TSRM/.libs/libtsrm.al)
gcc -shared -o .libs/libphp4.so.0  stub.o 
.libs/libphp4.lax/libZend.al/zend_language_parser.lo (. SKIP .)
TSRM/.libs/libtsrm.al -ldl -lcrypt -lbind -lm -ldl -lcrypt  
-lc  -Wl,-bI:/usr/local/apache/libexec/httpd.exp ${wl}-berok
-Wl,-bnoentry -Wl,-bexport:.libs/libphp4.exp 
ar -crlo .libs/libphp4.a .libs/libphp4.so.0
rm -fr .libs/libphp4.lax
creating libphp4.la
(cd .libs && rm -f libphp4.la && ln -s ../libphp4.la libphp4.la)
make[1]: Leaving directory `/home/cmlee/Project/php-4.1.1'
Making all in pear
make[1]: Entering directory `/home/cmlee/Project/php-4.1.1/pear'
make[1]: Leaving directory `/home/cmlee/Project/php-4.1.1/pear'





[2002-01-16 02:51:34] [EMAIL PROTECTED]

Can you provide some output from make/

Re[2]: [PHP-DEV] mailing to 19000 users

2002-01-29 Thread Daniel Lorch

Hi,

> Mostafa Al-Mallawani wrote:
>> hi, does anyone know how to send mail to 19000 users using the mail()
>> function, i need to create a mailing list of this number of users and
>> looping on 19000 users takes up a heck of a lot of resources...any
>> solutions? thanks.

>   Please post questions related developing _WITH_ PHP on the

> [EMAIL PROTECTED]

>   mailinglist.

>   This list is dedicated to the development _OF_ PHP itself.

I think he was indirectly suggesting a function like this:

  bool spam (array to, string subject, string message ..)

where count($to) has to be at least 1000 otherwise this function will
refuse to work :)

Kind Regards,
  Daniel Lorch
-- 
@echo "Hello, World";



-- 
PHP Development Mailing List 
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 #15274: Could not able to locate the OCI8 functions

2002-01-29 Thread sureshkb

From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.1.0
PHP Bug Type: OCI8 related
Bug description:  Could not able to locate the OCI8 functions

I am using Oracle 8.1.7 on Solaries mechine as Oracle Server. I am
contacting via oracle 8.1.6 client on Windows2000. My Apache web
server(version 3.1.22) on Windows2000 , PHP 4.1.0 as apache module. I am
seting LD_LIBRARY_PATH.

The Same thing is working fine with PHP4.0.4 on Apache 3.1.9 , Oracle
client and Server are same as above.  
-- 
Edit bug report at: http://bugs.php.net/?id=15274&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] CVS Account Request: swaminathanms

2002-01-29 Thread swaminathan

I wanna be involved in the PHP development initiative

-- 
PHP Development Mailing List 
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 #8685 Updated: Here-Syntax problem

2002-01-29 Thread phanto

ID: 8685
Updated by: phanto
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Old PHP Version: 4.0.4
PHP Version: 4.1.1
New Comment:

thank you philip :)

closing it silently after over a year is a bit to easy. this realy
obfuscates php code a lot and i don't see any valid reason.
so maybe this is an issue for ZE2.


Previous Comments:


[2002-01-28 21:35:42] [EMAIL PROTECTED]

I like this feature request, so am reopening it :) Until someone
replies with a definitive response as to why such heredoc spacing is
required in PHP.



[2002-01-28 20:38:20] [EMAIL PROTECTED]

Many script languages that support here doc syntax require closing tag
at col 1. 

Won't change.



[2001-01-12 16:36:11] [EMAIL PROTECTED]

This is not a bug, but a feature request



[2001-01-12 16:22:11] [EMAIL PROTECTED]

why must the closing tag be in column 1 ?
i think it schould be enought that it stays in its own line.

   if($foo)
   {
  echo <
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 #15275: Apache 1.3.20 won't start with newly compiled PHP 4.1.1

2002-01-29 Thread ms

From: [EMAIL PROTECTED]
Operating system: SuSE Linux 7.1 Kernel 2.4.2
PHP version:  4.1.1
PHP Bug Type: Apache related
Bug description:  Apache 1.3.20 won't start with newly compiled PHP 4.1.1

Apache version = 1.3.20
mod_ssl version = 2.8.4 for apache 1.3.20
openssl version = 0.9.6c
C-compiler = gcc version 2.95.2 19991024 (release)

I have first installed openssl, then compiled and installed apache with
mod_ssl support and then compiled PHP 4.1.1 from the official sources,
configuring with the following options:

$ ./configure --with-apxs=/usr/local/apache/current/bin/apxs \
--with-ftp --enable-versioning \
--enable-tracking-vars --enable-url-includes \
--enable-sysvshm --enable-sysvsem \
--with-config-file-path=/etc --without-mysql \
--with-sapdb=/opt/sapdb/interfaces/odbc

This went through without problems,'make' and 'make install' worked also,
however when i call apachectl to start the server it exits with this error
message :

Syntax error on line 224 of /usr/local/apache/1.3.20/conf/httpd.conf:
Cannot load /usr/local/apache/1.3.20/libexec/libphp4.so into server:
undefined symbol: pcre_malloc


I've tried this with the latest CVS snapshot as well but no luck. Also,
I've compiled php with different options but always with the same
result...

The weird thing is that I got this to work on another SuSE box with same
kernel version (2.4.2). Am I lacking some package maybe? I wouldn't know
which one, though. I read through the configure output carefully and it
seems like everything necessary is there.

Please help me out here!
-- 
Edit bug report at: http://bugs.php.net/?id=15275&edit=1


-- 
PHP Development Mailing List 
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 #15275 Updated: Apache 1.3.20 won't start with newly compiled PHP 4.1.1

2002-01-29 Thread bate

ID: 15275
Updated by: bate
Old Summary: Apache 1.3.20 won't start with newly compiled PHP 4.1.1
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Apache related
Operating System: SuSE Linux 7.1 Kernel 2.4.2
PHP Version: 4.1.1
New Comment:

Whats is the line 224 on httpd.conf?


Previous Comments:


[2002-01-29 08:15:34] [EMAIL PROTECTED]

Apache version = 1.3.20
mod_ssl version = 2.8.4 for apache 1.3.20
openssl version = 0.9.6c
C-compiler = gcc version 2.95.2 19991024 (release)

I have first installed openssl, then compiled and installed apache with
mod_ssl support and then compiled PHP 4.1.1 from the official sources,
configuring with the following options:

$ ./configure --with-apxs=/usr/local/apache/current/bin/apxs \
--with-ftp --enable-versioning \
--enable-tracking-vars --enable-url-includes \
--enable-sysvshm --enable-sysvsem \
--with-config-file-path=/etc --without-mysql \
--with-sapdb=/opt/sapdb/interfaces/odbc

This went through without problems,'make' and 'make install' worked
also, however when i call apachectl to start the server it exits with
this error message :

Syntax error on line 224 of /usr/local/apache/1.3.20/conf/httpd.conf:
Cannot load /usr/local/apache/1.3.20/libexec/libphp4.so into server:
undefined symbol: pcre_malloc


I've tried this with the latest CVS snapshot as well but no luck. Also,
I've compiled php with different options but always with the same
result...

The weird thing is that I got this to work on another SuSE box with
same kernel version (2.4.2). Am I lacking some package maybe? I
wouldn't know which one, though. I read through the configure output
carefully and it seems like everything necessary is there.

Please help me out here!





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


-- 
PHP Development Mailing List 
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 #15275 Updated: Apache 1.3.20 won't start with newly compiled PHP 4.1.1

2002-01-29 Thread ms

ID: 15275
User updated by: [EMAIL PROTECTED]
Old Summary: Apache 1.3.20 won't start with newly compiled PHP 4.1.1
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Apache related
Operating System: SuSE Linux 7.1 Kernel 2.4.2
PHP Version: 4.1.1
New Comment:

Line 224 of http.conf is :

LoadModule php4_modulelibexec/libphp4.so


Previous Comments:


[2002-01-29 08:34:27] [EMAIL PROTECTED]

Whats is the line 224 on httpd.conf?



[2002-01-29 08:15:34] [EMAIL PROTECTED]

Apache version = 1.3.20
mod_ssl version = 2.8.4 for apache 1.3.20
openssl version = 0.9.6c
C-compiler = gcc version 2.95.2 19991024 (release)

I have first installed openssl, then compiled and installed apache with
mod_ssl support and then compiled PHP 4.1.1 from the official sources,
configuring with the following options:

$ ./configure --with-apxs=/usr/local/apache/current/bin/apxs \
--with-ftp --enable-versioning \
--enable-tracking-vars --enable-url-includes \
--enable-sysvshm --enable-sysvsem \
--with-config-file-path=/etc --without-mysql \
--with-sapdb=/opt/sapdb/interfaces/odbc

This went through without problems,'make' and 'make install' worked
also, however when i call apachectl to start the server it exits with
this error message :

Syntax error on line 224 of /usr/local/apache/1.3.20/conf/httpd.conf:
Cannot load /usr/local/apache/1.3.20/libexec/libphp4.so into server:
undefined symbol: pcre_malloc


I've tried this with the latest CVS snapshot as well but no luck. Also,
I've compiled php with different options but always with the same
result...

The weird thing is that I got this to work on another SuSE box with
same kernel version (2.4.2). Am I lacking some package maybe? I
wouldn't know which one, though. I read through the configure output
carefully and it seems like everything necessary is there.

Please help me out here!





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


-- 
PHP Development Mailing List 
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 #15267 Updated: declare makes apacke crahs burn and die!!

2002-01-29 Thread ferguson

ID: 15267
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Reproducible crash
Operating System: win 98
PHP Version: 4.1.1
New Comment:

It most defiantly does crash and burn! Unlike planes, apache does not
like to stay down. It tries to start itself back up, but is shot time
crashes again. After many tries, Apache eventually gets tired of this
and decides not to display the page.

It most defiantly does crash and burn! Unlike planes, apache does not
like to stay down. It tries to start itself back up, but is shot time
crashes again. After many tries, Apache eventually gets tired of this
and decides not to display the page.

Php 4.06 -apache 1.3.20 cashes 
php 4.06 -apache 1.3.22 internal server error
php 4.1.1-apache 1.3.22 crashes
everything else dont know

I am not sure if it matters, but i am using php as an sapi.

Brendan


Previous Comments:


[2002-01-28 23:02:50] [EMAIL PROTECTED]

It seems this is fixed. 
Your script does not crash on my Linux

Please reopen if you still have problem with 4.2.0-dev.
(It may be win spcific problem?)



[2002-01-28 22:44:59] [EMAIL PROTECTED]

Apache crashes, burns and dies when i copy and paste the first
“declare” example in the php documentation

dont ask me why it is happening. I am having troubles learning how to
use declare and ticks. may be declare or ticks is not causing the
problem beats the heck out of me.

php4.0.6 did the same thing with apache 1.3.20, but when i upgraded to
apache 1.3.22, it caused and internal server error. After i updated my
php to the current version, apache decided it liked to crash and burn
better.

It might be good idea to update the documentation to a different
example, one that does not crash just a thought. I know it might
not be possible.

The source code is as follows:





good luck...

Brendan





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


-- 
PHP Development Mailing List 
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 #9402 Updated: never ending cycle

2002-01-29 Thread ojo

ID: 9402
Comment by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: No Feedback
Bug Type: Sybase (dblib) related
Operating System: RedHat 7.0
PHP Version: 4.0.4pl1
New Comment:

no. still the same.

example:

$sqlcmd="raiserror(50007, 16, 1, 'NULL')";
$rs = mssql_query($sqlcmd);

Error definition:
number: 50007
severity: 016 - Miscellaneous User Error
text: bla, bla, bla %s.
language: english


Previous Comments:


[2002-01-28 10:38:59] [EMAIL PROTECTED]

No feedback. 



[2002-01-07 02:28:22] [EMAIL PROTECTED]

-> Feedback.



[2002-01-07 02:28:11] [EMAIL PROTECTED]

Does this problem occur on PHP 4.1.1?



[2001-06-30 15:06:51] [EMAIL PROTECTED]

This is not related to the mssql extension. You are using the sybase
extension.



[2001-02-22 09:12:18] [EMAIL PROTECTED]

When I call mssql_query and sql server error occured (for example I add
a column to table, but didn't redefine view), then php script doesn't
stop, but instead of that, it will wait forever. I have sybase-ct built
in php (can compile stand-alone module, but can use, don't know why). I
don't  think that in earlier versions (4.x) was this problem, but I am
not sure.

Thanx for help

ojo.






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


-- 
PHP Development Mailing List 
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 #15276: Error with unset();

2002-01-29 Thread vvtk

From: [EMAIL PROTECTED]
Operating system: RedHat 7.1
PHP version:  4.1.1
PHP Bug Type: Session related
Bug description:  Error with unset();

Simple Script:
";
unset($TEXNS_ARRAY);
$TEXN_ARRAY = "Value 1";
echo $TEXN_ARRAY."";
?>

After execution we have:

Value 1

Change line 7 to $TEXN_ARRAY = "Value 2";

After execution we have:
Value 1
Value 2

Change line 7 to $TEXN_ARRAY = "Value 3";

After execution we have:
Value 1 <- We expected Value 2 !!!
Value 3


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


-- 
PHP Development Mailing List 
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] Writing own extension on Win

2002-01-29 Thread brad lafountain

You need to make sure 
COMPILE_DL_(EXTENSION) 
is defined...

--- Alexander Merz <[EMAIL PROTECTED]> wrote:
> I've wrote an PHP-extension. After some problems with compiling and linking,
> i've got the dll.
> Testing it with
> 
>  dl("wintest1.dll");
> ?>
> 
> it fails with
> "Invalid library (maybe not a PHP library) 'wintest1.dll'"
> 
> The source was created with ext_skel on cygwin. Checking the other
> win-specific
> extensions like COM and Dotnet, i see no big difference to my code. Which
> compiler and linker settings are neccessary to get a valid library?
> 
> System:
> Win98
> MS VisualC++ 6
> 
> Cu, Alex
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

-- 
PHP Development Mailing List 
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] Writing own extension on Win

2002-01-29 Thread Alexander Merz

> You need to make sure
> COMPILE_DL_(EXTENSION)
> is defined...

Was the error. Can somebody write an howto for win? I work since 10am to get
this stuff working.


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] ftp_put problem

2002-01-29 Thread Alex Pedcenko

Hi!
I have the problem with this function ftp_put. (binary mode)
[you can try at www.darkstar.sal.lv -> "add download"]
It can`t find local file on client machine (in ascii mode all OK). t
when I uploading from localhost all OK.
on phpdeveloper.com ther is a comment that "localfilename is relative to
php-script"?
I cant understand what does it mean...Please e-mail me if someone have a
solution...([EMAIL PROTECTED])
Thanks.



-- 
PHP Development Mailing List 
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 #15277: Apache can't load PHP as module with php_oci8 extension

2002-01-29 Thread lm

From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.1.1
PHP Bug Type: Apache related
Bug description:  Apache can't load PHP as module with php_oci8 extension

Using:
Windows 2000 SP2 
PHP 4.1.1
Apache 1.3.22
Oracle client 8.1.5

Got when Apache start : 
Unable to load dynamic library 'c:\php\php_oci8.dll' - The specified
module could not be found

When run from command line - all OK, phpinfo() reports:
OCI8 Support - enabled 
Revision - Revision: 1.149.2.2

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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] CVS Account Request: marcbey

2002-01-29 Thread marc beyerlin

beeing up to date with php/pear

-- 
PHP Development Mailing List 
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 #15279: RETURNTRANSFER and CUSTOMREQUST do not play well together

2002-01-29 Thread robert

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.1.1
PHP Bug Type: cURL related
Bug description:  RETURNTRANSFER and CUSTOMREQUST do not play well together

When using curl to request a page, if I just set RETURNTRANSFER curlopt,
things work as expected (output is dumped into a variable). If I just set
CUSTOMREQUEST, thinks work as expected (output is dumped to stdout).
However, if I set RETURNTRANSFER and CUSTOMREQUEST at the same time, I get
no output. The request is made, according to my apache logs, but I get
nothing. Here is some demo code:

http://localhost:8080/testfiles/phptest.php');
curl_setopt($c, CURLOPT_CUSTOMREQUEST, $request);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);

echo trim( curl_exec($c) );

curl_close($c);

?>

That is an example of a request that will not work. Comment either one of
the "curl_setopt" lines out and it will.

Thanks,

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


-- 
PHP Development Mailing List 
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] CVS Account Request: marcbey

2002-01-29 Thread James Cox

Hi,

what do you mean, being up to date with php & pear? -- you don't actually
need a CVS account to checkout from CVS...

Thanks,

James

> -Original Message-
> From: marc beyerlin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 29, 2002 4:53 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DEV] CVS Account Request: marcbey
>
>
> beeing up to date with php/pear
>
> --
> PHP Development Mailing List 
> 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 
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 #15278: documentation error on ifx_query()

2002-01-29 Thread MarkRoedel

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.4-stable
PHP version:  4.1.0
PHP Bug Type: Documentation problem
Bug description:  documentation error on ifx_query()

The ifx_query() function specification at
http://www.php.net/manual/en/function.ifx-query.php indicates that the
link_identifier parameter is optional.  

However, when that parameter is omitted, I get a "Warning: Wrong parameter
count for ifx_query() in /path/to/script"
-- 
Edit bug report at: http://bugs.php.net/?id=15278&edit=1


-- 
PHP Development Mailing List 
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 #12978 Updated: Multiple isset

2002-01-29 Thread sander

ID: 12978
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Open
Old Bug Type: Feature/Change Request
Bug Type: Documentation problem
Operating System: linux
PHP Version: 4.0.6
New Comment:

Neat! Reopened as a documentation problem.


Previous Comments:


[2002-01-28 21:16:00] [EMAIL PROTECTED]

Implemented.



[2001-08-27 10:07:48] [EMAIL PROTECTED]

Hiya,

I'd like to see that isset would take more parameters to test
like:

$a = $b = $c = 1 ;

if (isset($a)) echo "isset"; // TRUE
if (isset($a, $b, $c)) echo "isset"; // TRUE
if (isset($a,$b,$d)) echo "isset"; // FALSE

you will get my point i guess

Greetz,

Wico





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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] is create_function slow?

2002-01-29 Thread Emile Bosch


From: "Emile Bosch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: is create_function slow?
Date: dinsdag 29 januari 2002 14:17

Hi, is create function slow? Or has it a very significant slowdown compared
to an include?

i might want to create functions on the fly if it isn't tooo slow..

warm regards,
Emile Bosch





-- 
PHP Development Mailing List 
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] Webmin & PHP... strange problems!

2002-01-29 Thread Jason Greene

First off, you are correct in mailing this problem to php-dev, as the
follow information is not documented.

Your problem is most likey due to the fact, that webmin does set one of
the following environment variables:

SERVER_SOFTWARE
SERVER_NAME
GATEWAY_INTEFACE
REQUEST_METHOD

Currently the PHP CGI SAPI tries to determine if it is getting called by
a webserver or by the command line. This is problematic, as you have
seen. Due to these problems, a new CLI SAPI is being implemented, for
all general purpose scripting, and I would highly recommend switching to
such SAPI.

Basicly, your problem is caused by the fact that the cgi sapi has
detected that it is being called by a webserver by looking at the
previously mentioned environment variables, and noticing that one of
them haa a value.

The UNIX shebang( #! ) just passses the script your are executing (in
your case bbb.cgi) as an argument. When the CGI SAPI has detected it is
being called by a webserver, it ignores all parameters.

Instead, it determines which script to run by extracting it from the
following environment variables (depending on your configuration):

PATH_TRANSLATED
SCRIPT_FILENAME

You have three possible workarounds:
1. Unset the 4 defined env vars before executing bbb.cgi
2. Set PATH_TRANSLATED and SCRIPT_FILENAME to point to bbb.cgi
2. Create a wrapper script, as you have already done

I Hope this clears up your problem.

-- 
Jason T. Greene
Internet Software Engineer

<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]>

Use PHP: http://www.php.net



On Sat, 2002-01-26 at 04:04, Prakash wrote:
> Hi,
> I'm trying to execute a Webmin script where I can use php as scripting
> language... (It will be good to work with a language as php in a remote
> administration server, as root! potentially dangerous but good!)
> 
> Now the STRANGE problem: (seems to be some env variables (maybe I'm wrong)
> when executing PHP as CGI...)
> 
> When I execute a test.cgi program from Webmin, it's executed as root, as it
> was from command line... that's good. The problem is that Webmin execute
> well _every_ program I tried , EXCEPT php !
> 
> It seems that php needs some env variables to work well, and these variables
> aren't provided from the Webmin interface, so to solve the problem I've
> first to understand WHY php does not work...
> 
> -
> 
> Maybe I can better explain with 2 samples:
> 
> > file aaa.cgi
> >
> > #!/bin/bash
> > echo "Content-type: text/plain"
> > echo
> > echo "aaa"
> > touch /home/test.txt
> 
> > file bbb.cgi
> >
> > #!/usr/local/bin/php -q
> >  > echo "Content-type: text/plain\n\n";
> > echo "aaa\n";
> > $fd = fopen("/home/test.txt","w");
> > fclose($fd);
> > ?>
> 
> Now, the 2 programs are quite the same... (if test.txt does not exist...)
> But, the 2 programs behave the same way only if you execute them _from
> command line_.
> If you execute them from the Webmin interface (very good for remote
> administration, that lets execute programs as user root), they behave
> differently:
> aaa.cgi is the same, displays "aaa" on the remote web-browser, and creates
> (well, if text.txt doesn't exist) a local file.
> bbb.cgi does nothing, sends no http headers, no aaa, and does not create the
> file...
> 
> It seems that PHP needs some env variables, and without them, it suddenly
> stops without parsing the file... am I right ?!?
> 
> I've also tried to escape from this problem (until understood and solved)
> with a third program:
> 
> > file ccc.cgi
> >
> > #!/bin/bash
> > /usr/bin/at -f /path/bbb.cgi now+1minute
> > touch /home/test2.txt
> 
> If I call ccc.cgi from Webmin and then from command line, the 2 executions
> are scheduled properly, and look really the same (root user,same
> program,...) but the task scheduled from Webmin is not executed
> properly...
> the php seems to stop with no output.
> 
> Also with a file like this:
> 
> > file ddd.cgi
> >
> > #!/bin/bash
> > /path/bbb.cgi 2>&1 > test3.txt
> 
> show that php really has no output on stdout or stderr (bbb.cgi is the IInd
> file, and test3.txt is created, but 0 bytes long when invoked from Webmin!)
> 
> So, the BIG problem is: if Webmin can execute all programs, running them as
> root, WHY doesn't work well with php scripts ?!?
> I think that the PHP need something, and not having it it suddenly stops...
> but what ?!?
> 
> Are there some developer that can help ?!?
> 
> (Writing Webmin modules in perl is not good, if you work mainly with php,
> and webmin can be the best remote administration utility...)
> 
> thanks to all,
>  waiting for some news...
> prakash
> 
> 
> 
> -- 
> PHP Development Mailing List 
> 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 
To unsubsc

[PHP-DEV] Bug #15280: Feature request

2002-01-29 Thread Benjamin . Eggerstedt

From: [EMAIL PROTECTED]
Operating system: Win2k
PHP version:  4.1.1
PHP Bug Type: Feature/Change Request
Bug description:  Feature request

Hi,

I have mailed with Gabor Hojtsy and he said to me that i request my wish
here.

This is a Copy - Paste of a part of the eMail:

###

I would like to have a function that deletes the empty array entries:

a.e.
$test[0] = "Hello i am php 4.1.1";
$test[1] = "I am the best release ever :)";
$test[2] = "";
$test[3] = "";

I hope you know what i mean...

At the moment i have a loop that checkes this.

$k = count($test);
for($i=0;$i<=$k;$i++){
if(empty($test[$i])) unset($test[$i]);
}

I think it would not be hard to integrate that. I am a apprentice and i
will learn C/C++ after my php programming is well. I hope i could help
bugfixing
the next releases, to help you all.

yours sincerly
Benjamin Eggerstedt

P.S. I know my english is terrible... ;)
P.P.S. You all do GREAT work!!!


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


-- 
PHP Development Mailing List 
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 #15281: OleMainThreadWndName: php.exe application error

2002-01-29 Thread phil . noon

From: [EMAIL PROTECTED]
Operating system: Windows NT4 SP6
PHP version:  4.1.1
PHP Bug Type: ODBC related
Bug description:  OleMainThreadWndName: php.exe application error

I am running PHP 4.1.1 as a CGI with Apache 1.3.20. I have an Oracle
database, version 8.1.7, running on the same machine. I am trying to read
the database using ODBC.

I am using the MS ODBC driver for Oracle 2.573.6019.00. I get the same
result using an Oracle ODBC driver.

I get the following error:

"OleMainThreadWndName: php.exe application error"
"The instruction at 0x77f6cc80 referenced memory at 0x0031. The memory
could not be read."

I can connect successfully to the database with no errors using OCI.

 Script --
 
Untitled Document 
 
 
 
Dname 
 

$fname"); 

odbc_close($connectionstring); 

?> 
 
 
 
 End Script --
-- 
Edit bug report at: http://bugs.php.net/?id=15281&edit=1


-- 
PHP Development Mailing List 
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 #12517 Updated: data base not found or damaged or in use

2002-01-29 Thread pnonn

ID: 12517
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: ODBC related
Old Operating System: 
Operating System: W2000 server
PHP Version: 4.0.6
New Comment:

OK Bug has been fixd by 4.1.1 release


Previous Comments:


[2002-01-21 09:25:44] [EMAIL PROTECTED]

Two things:

1) please try the latest release of PHP.
2) if it persists, please try changing odbc_pconnect to odbc_connect
and see if that fixes things.  



[2001-08-01 12:02:44] [EMAIL PROTECTED]

application developped with php4.0.3I1 worked well on NT4 server /
IIS.
Since I migrate it under Windows 2000, i get sometimes but not
permanently an error when trying to access my database throug
ODBC_PCONNECT.
The database seems to be in used or damaged...
But when I call the page anew, it works well.

I try to upgrade to lthe latest PHP versions but I cannot load php_ldap
extension. So I came back to the lastest version which runs ldap
extension : 4.0.3

Can someone help me 






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


-- 
PHP Development Mailing List 
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 #13249 Updated: ODBC connaect sometimes fail

2002-01-29 Thread pnonn

ID: 13249
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: ODBC related
Old Operating System: Windows 2000
Operating System: Windows 2000 server
PHP Version: 4.0.6
New Comment:

OK bug has been fixe by 4.1.1 release


Previous Comments:


[2001-09-11 10:40:21] [EMAIL PROTECTED]

I developped a PHP application with multi-frame presentation.

This application worked well under NT4/IIS/PHP4.0.2.

Since I migrate it under W2000/IIS/PHP4.0.6/ODBC for MS-Access, I
sometimes encounter problems while connecting to the database in one of
the frame (odbc_connect). 

The error reported is 'database already in use'. 

The configuration of ODBC is not set to exclusive mode.

It look like the different frames attempt to access simulatneously to
the DataBase in exclusive mode.





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


-- 
PHP Development Mailing List 
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 #15282: pg_connect failing on iPlanet 4.1 nsapi

2002-01-29 Thread daver

From: [EMAIL PROTECTED]
Operating system: Solaris 2.8
PHP version:  4.1.1
PHP Bug Type: PostgreSQL related
Bug description:  pg_connect failing on iPlanet 4.1 nsapi

When attempting to connecting to a remote database using
pg_connect(host=dbhost user=dbuser dbname=dbname), the operation fails.

I can connect using psql from the command line or through a perl script as
any user. Running php as a CGI binary also works. However, when running as
an nsapi, the connection fails. A quick look using snoop shows that the
failed connection appears to be sending SYN/RST instead of SYN/ACK (which
is what is seen during a successful connection).

Here's my system details:
OS: Solaris 2.8
Web Server: iPlanet 4.1
PHP version: php 4.1.1
PHP configure options:
./configure --with-nsapi=/usr/local/iws41 \
--with-pgsql=/usr/local/pgsql \
--enable-libgcc
PostgreSQL version: 7.0.3

For what it's worth, connections to a mysql database between the same
systems works without a hitch.

Any suggestions would be appreciated.


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


-- 
PHP Development Mailing List 
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 #14928 Updated: Session variables are lost when using header() redirection(identical to #14636)

2002-01-29 Thread jose

ID: 14928
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Duplicate
Bug Type: Session related
Operating System: Linux (2.2.15)
PHP Version: 4.1.1
New Comment:

I'm having the same problem usign php 4.1.1 on Windows. I'm developing
a commercial application and when pass few minutes all session
variables are lost and I have to restart Apache to open a new session
and begin to work...


Previous Comments:


[2002-01-08 07:22:50] [EMAIL PROTECTED]

Dupe of 14363.

No need to report bugs which already have been reported.



[2002-01-08 05:17:19] [EMAIL PROTECTED]

The symptoms are identical to bug #14636, but with versions 4.1x and on
Linux. Manual redirection works fine, but when using header("Location:
xxx") registered session variables are lost. All pre-4.1.x -versions
seem to work. Not tested on other platforms.

session.auto_start is set to 0 in php.ini.


Example: 


script_1.php:












Script 2:








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


-- 
PHP Development Mailing List 
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 #14737 Updated: PDF DLL is not working

2002-01-29 Thread singe60

ID: 14737
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: PDF related
Operating System: Windows 2000 Server
PHP Version: 4.1.0
New Comment:

i'm using PHP 4.1.1


Previous Comments:


[2001-12-28 11:00:19] [EMAIL PROTECTED]

- New Installation
- OS W2K Server Sp2 Eng
- Standart IIS installation
- Terminal Services (not yet)
- phpMyAdmin 2.2.2

When I try to add a extension (e.g. php_pdf.dll),
I get the following error messige back:
--
X-Powered-By: PHP/4.1.0 Content-type: text/html PHP Warning: Unable to
load dynamic library './php_pdf.dll' - The specified module could not
be found. in Unknown on line 0
--

I tryed the following ways in the php.ini:
--
extension_dir = ./
extension_dir = D:\Tools\PHP\extensions
extension_dir = D:\Tools\PHP\extensions\
extension_dir = D:/Tools/PHP/extensions
--
but nothings works.
I'm using the dlls witch where part of the zip file from
your download site.

The new dlls are very smale (e.g. pdf now 92k, before 500k)

Do you have any idea. Thank you for your support/help.

Best wishes
Ralf
[EMAIL PROTECTED]





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


-- 
PHP Development Mailing List 
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 #15277 Updated: Apache can't load PHP as module with php_oci8 extension

2002-01-29 Thread lm

ID: 15277
User updated by: [EMAIL PROTECTED]
Old Summary: Apache can't load PHP as module with php_oci8 extension
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Apache related
Operating System: Windows 2000
PHP Version: 4.1.1
New Comment:

Problem disappear after reboot (PATH?)


Previous Comments:


[2002-01-29 11:48:41] [EMAIL PROTECTED]

Using:
Windows 2000 SP2 
PHP 4.1.1
Apache 1.3.22
Oracle client 8.1.5

Got when Apache start : 
Unable to load dynamic library 'c:\php\php_oci8.dll' - The specified
module could not be found

When run from command line - all OK, phpinfo() reports:
OCI8 Support - enabled 
Revision - Revision: 1.149.2.2






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


-- 
PHP Development Mailing List 
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 #15280 Updated: Feature request

2002-01-29 Thread mfischer

ID: 15280
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Feature/Change Request
Operating System: Win2k
PHP Version: 4.1.1
New Comment:

You mean something like array_unset_empty_valus() ?

I don't think there's a hard-coded need for it when user-space does it
very well.

Can you give an example (except your programming lazyness to create a
function) where the advantages would be?


Previous Comments:


[2002-01-29 13:30:10] [EMAIL PROTECTED]

Hi,

I have mailed with Gabor Hojtsy and he said to me that i request my
wish here.

This is a Copy - Paste of a part of the eMail:

###

I would like to have a function that deletes the empty array entries:

a.e.
$test[0] = "Hello i am php 4.1.1";
$test[1] = "I am the best release ever :)";
$test[2] = "";
$test[3] = "";

I hope you know what i mean...

At the moment i have a loop that checkes this.

$k = count($test);
for($i=0;$i<=$k;$i++){
if(empty($test[$i])) unset($test[$i]);
}

I think it would not be hard to integrate that. I am a apprentice and
i
will learn C/C++ after my php programming is well. I hope i could help
bugfixing
the next releases, to help you all.

yours sincerly
Benjamin Eggerstedt

P.S. I know my english is terrible... ;)
P.P.S. You all do GREAT work!!!







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


-- 
PHP Development Mailing List 
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] Bug #15280 Updated: Feature request

2002-01-29 Thread brad lafountain

This request seems pretty valid...

Say um you had an array that you delete from and create elements
frequently.. amost like a db table... and you wanted to clean this 
periocally.. in addition to this you wanted the index to be renumbered...
having a
array_vaccum() would be nice...

eg..
$a = array("", "blah", "", "blah");
array_vaccum($a);
would make

$a[0] => "blah"
$a[1] => "blah"

writing this code in php_userspace would't be too hard but i can see this
being used by many people

function array_vaccum($a)
{
  foreach($a as $b)
  {
if($b != null)
 $ret[] = $b;
  }
  return $ret;
}

and then you would need to worry about keys...

function array_avaccum($a)
{
  $keys = array_keys($a);
  foreach($keys as $key)
  {
if($a[$key] != null)
  $ret[$key] = $a[$key];
  }
  return $ret;
}

calling this code many many times would be way faster in the core code..?
wouldn't it?

--- [EMAIL PROTECTED] wrote:
> ID: 15280
> Updated by: mfischer
> Reported By: [EMAIL PROTECTED]
> Old Status: Open
> Status: Feedback
> Bug Type: Feature/Change Request
> Operating System: Win2k
> PHP Version: 4.1.1
> New Comment:
> 
> You mean something like array_unset_empty_valus() ?
> 
> I don't think there's a hard-coded need for it when user-space does it
> very well.
> 
> Can you give an example (except your programming lazyness to create a
> function) where the advantages would be?
> 
> 
> Previous Comments:
> 
> 
> [2002-01-29 13:30:10] [EMAIL PROTECTED]
> 
> Hi,
> 
> I have mailed with Gabor Hojtsy and he said to me that i request my
> wish here.
> 
> This is a Copy - Paste of a part of the eMail:
> 
> ###
> 
> I would like to have a function that deletes the empty array entries:
> 
> a.e.
> $test[0] = "Hello i am php 4.1.1";
> $test[1] = "I am the best release ever :)";
> $test[2] = "";
> $test[3] = "";
> 
> I hope you know what i mean...
> 
> At the moment i have a loop that checkes this.
> 
> $k = count($test);
> for($i=0;$i<=$k;$i++){
> if(empty($test[$i])) unset($test[$i]);
> }
> 
> I think it would not be hard to integrate that. I am a apprentice and
> i
> will learn C/C++ after my php programming is well. I hope i could help
> bugfixing
> the next releases, to help you all.
> 
> yours sincerly
> Benjamin Eggerstedt
> 
> P.S. I know my english is terrible... ;)
> P.P.S. You all do GREAT work!!!
> 
> 
> 
> 
> 
> 
> 
> Edit this bug report at http://bugs.php.net/?id=15280&edit=1
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

-- 
PHP Development Mailing List 
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 #15280 Updated: Feature request

2002-01-29 Thread Benjamin . Eggerstedt

ID: 15280
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Feature/Change Request
Operating System: Win2k
PHP Version: 4.1.1
New Comment:

I think you are right. I only wanted to help. sorry );

I will better think about it before posting in the future. Thanks for
your time..


Previous Comments:


[2002-01-29 14:59:08] [EMAIL PROTECTED]

You mean something like array_unset_empty_valus() ?

I don't think there's a hard-coded need for it when user-space does it
very well.

Can you give an example (except your programming lazyness to create a
function) where the advantages would be?



[2002-01-29 13:30:10] [EMAIL PROTECTED]

Hi,

I have mailed with Gabor Hojtsy and he said to me that i request my
wish here.

This is a Copy - Paste of a part of the eMail:

###

I would like to have a function that deletes the empty array entries:

a.e.
$test[0] = "Hello i am php 4.1.1";
$test[1] = "I am the best release ever :)";
$test[2] = "";
$test[3] = "";

I hope you know what i mean...

At the moment i have a loop that checkes this.

$k = count($test);
for($i=0;$i<=$k;$i++){
if(empty($test[$i])) unset($test[$i]);
}

I think it would not be hard to integrate that. I am a apprentice and
i
will learn C/C++ after my php programming is well. I hope i could help
bugfixing
the next releases, to help you all.

yours sincerly
Benjamin Eggerstedt

P.S. I know my english is terrible... ;)
P.P.S. You all do GREAT work!!!







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


-- 
PHP Development Mailing List 
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 #14737 Updated: PDF DLL is not working

2002-01-29 Thread cyril

ID: 14737
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: PDF related
Operating System: Windows 2000 Server
PHP Version: 4.1.0
New Comment:

same way for me

windows XP
PHP 4.1.1

php_lib.dll for php 4.0.6 or rebuld


Previous Comments:


[2002-01-29 14:23:27] [EMAIL PROTECTED]

i'm using PHP 4.1.1



[2001-12-28 11:00:19] [EMAIL PROTECTED]

- New Installation
- OS W2K Server Sp2 Eng
- Standart IIS installation
- Terminal Services (not yet)
- phpMyAdmin 2.2.2

When I try to add a extension (e.g. php_pdf.dll),
I get the following error messige back:
--
X-Powered-By: PHP/4.1.0 Content-type: text/html PHP Warning: Unable to
load dynamic library './php_pdf.dll' - The specified module could not
be found. in Unknown on line 0
--

I tryed the following ways in the php.ini:
--
extension_dir = ./
extension_dir = D:\Tools\PHP\extensions
extension_dir = D:\Tools\PHP\extensions\
extension_dir = D:/Tools/PHP/extensions
--
but nothings works.
I'm using the dlls witch where part of the zip file from
your download site.

The new dlls are very smale (e.g. pdf now 92k, before 500k)

Do you have any idea. Thank you for your support/help.

Best wishes
Ralf
[EMAIL PROTECTED]





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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] is_subclass_of() patch

2002-01-29 Thread Andrei Zmievski

Right now is_subclass_of() will return false if the object is exactly of
the class you are trying to test for. I propose the following patch:

--- zend_builtin_functions.c2002/01/06 15:21:09 1.107
+++ zend_builtin_functions.c2002/01/29 21:02:05
@@ -553,5 +553,5 @@
zend_str_tolower(lcname, (*class_name)->value.str.len);
 
-   for (parent_ce = Z_OBJCE_PP(obj)->parent; parent_ce != NULL; parent_ce = 
parent_ce->parent) {
+   for (parent_ce = Z_OBJCE_PP(obj); parent_ce != NULL; parent_ce = 
+parent_ce->parent) {
if (!strcmp(parent_ce->name, lcname)) {
efree(lcname);

This should make it easy to use is_subclass_of() as a generic "is-a"
function.

I can go ahead and apply it if there are not objections. Please copy me
on the replies.

-Andrei

"When a man sits with a pretty girl for an hour, it seems like a minute.
But let him sit on a hot stove for a minute, and it's longer than any hour.
That's relativity."
-- Einstein, on relativity

-- 
PHP Development Mailing List 
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 #15261 Updated: failes to configure

2002-01-29 Thread d . a . roozemond

ID: 15261
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Analyzed
Bug Type: Compile Failure
Operating System: SuSE linux kernel 2.4.4.
PHP Version: 4.0CVS-2002-01-28
Assigned To: markonen
New Comment:

I think i figured out why my C++ installation wasn't working... it just
wasn't there ;)
now that i've installed gpp everything configures ok.

so i guess you might as well want to close this bug...

regards
dan


Previous Comments:


[2002-01-29 02:18:12] [EMAIL PROTECTED]

I don't know why your C++ installation isn't working, but 
the problem is that the latest configure checks for a C++ 
compiler (to pass that info to possible extensions) and the 
old ones didn't. I need to make that check fail gracefully 
since we don't really *require* C++ at the moment. 
Meanwhile, you can just remove the lines that say

AC_PROG_CXX
AC_PROG_CXXCPP

from your configure.in and run buildconf again.



[2002-01-28 16:30:09] [EMAIL PROTECTED]

gcc -dumpversion gives:
2.95.3



[2002-01-28 16:28:46] [EMAIL PROTECTED]

Hi,
it's very well possible this bug is fixed by the time you read it, but
i thought i'd report it anyway. The cvs from about a week ago compiled
ok though. I used the same configure command.

i did a buildconf, then

./configure --prefix=/usr --with-apxs2=/usr/local/apache2/bin/apxs
--with-openssl --enable-ftp --with-gd --enable-gd-native-ttf
--with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr
--with-mysql=/usr/local/mysql --with-zlib-dir=/usr --enable-sockets

failes with error:

checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking whether the C++ compiler (gcc  ) works... no
configure: error: installation or configuration problem: C++ compiler
cannot create executables.


regards,

Dan







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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] CVS Account Request: muricaru

2002-01-29 Thread Mihai Uricaru

We are a group of romanian users of PHP. We like to translate the offical manual of 
PHP in romanian because of the lack of manual or documentation in romanian, until now 
no romanian publisher was interestes in PHP ;( .

-- 
PHP Development Mailing List 
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 #11716 Updated: Segmentation fault(coredump) in Apache(DSO-enabled) startup

2002-01-29 Thread vervoom

ID: 11716
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Apache related
Operating System: AIX 4.3.3
PHP Version: 4.1.1
New Comment:

Sorry about last comment, I was a bit stressed out earlier!
My environment is:

AIX 4.3.3.0
PHP 4.1.1
Apache 1.3.22
VAC.C 5.0.0.2 (IBM Visual Age C Compiler)

I think there's a definite problem with your make install script though
with regards to extracting the libphp4.so to /apache/libexec. I got
round that with ar -x libphp4.a and then running make install again.

Also there's something wrong when I dynamically load the library
because it's causing a coredump. It's really frustrating. I remember
having exactly the same problem on Solaris a few months ago, but I've
forgotten what I did to fix it (even more frustrating!). I thought it
was something to do with a linker PATH variable? Do I need to set some
variable to point at /usr/local/include/php? Should I change something
in the php.ini file?

I really don't want to change compilers at this stage because
everything else is working fine with VAC. Does this have anything to do
with the compiler fix mentioned in BUG 4630? I'll try that tomorrow.

OK Well that's all I can think of. My configure was pretty basic:

./configure --with-apxs=/opt/apache/bin/apxs --without-mysql

Are there some other options I should have added? 

Cheers,

JS.


Previous Comments:


[2002-01-29 06:37:18] [EMAIL PROTECTED]

I'm having exactly the same problem as this:

# ./apachectl start
./apachectl[71]: 13068 Segmentation fault(coredump)
./apachectl start: httpd could not be started

If I remove the LoadModule libexec/libphp4.so line from the conf, httpd
starts OK. I've been looking at the previous reports on this bug, and
your answer is always try the latest snapshot. Well considering this
problem has been going on for over 2 years now, perhaps we could have a
more original answer please?!

I've tried 4.0.6, and 4.1.1 and your latest snapshot!!
With php-4.1.1 I even had to tinker with your make install script to
get it to install properly. If you can't even set this product up to
work properly from the start, then that doesn't say very much for it!!
Why don't your developers sort it out once and for all, and stop
wasting everyone's time (including yours!!)?



[2002-01-16 05:12:00] [EMAIL PROTECTED]

This is output from make.

 SKIP 

mkdir .libs
rm -fr .libs/libregex.la .libs/libregex.* .libs/libregex.*
ar cru .libs/libregex.al regcomp.lo regexec.lo regerror.lo regfree.lo
ranlib .libs/libregex.al
creating libregex.la
(cd .libs && rm -f libregex.la && ln -s ../libregex.la libregex.la)
make[2]: Leaving directory `/home/cmlee/Project/php-4.1.1/regex'
make[1]: Leaving directory `/home/cmlee/Project/php-4.1.1/regex'
Making all in .
make[1]: Entering directory `/home/cmlee/Project/php-4.1.1'
/bin/sh /home/cmlee/Project/php-4.1.1/libtool --mode=compile gcc  -I.
-I/home/cmlee/Project/php-4.1.1/ -I/home/cmlee/Project/php-4.1.1/main
-I/home/cmlee/Project/php-4.1.1 -I/usr/local/apache/include
-I/home/cmlee/Project/php-4.1.1/Zend
-I/home/cmlee/Project/php-4.1.1/ext/xml/expat  -DAIX=43
-DUSE_PTHREAD_SERIALIZED_ACCEPT -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
-DUSE_EXPAT -I/home/cmlee/Project/php-4.1.1/TSRM -O2 -g -Wall
-prefer-pic  -c stub.c
gcc -I. -I/home/cmlee/Project/php-4.1.1/
-I/home/cmlee/Project/php-4.1.1/main -I/home/cmlee/Project/php-4.1.1
-I/usr/local/apache/include -I/home/cmlee/Project/php-4.1.1/Zend
-I/home/cmlee/Project/php-4.1.1/ext/xml/expat -DAIX=43
-DUSE_PTHREAD_SERIALIZED_ACCEPT -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
-DUSE_EXPAT -I/home/cmlee/Project/php-4.1.1/TSRM -O2 -g -Wall -c stub.c
 -DPIC -o stub.lo
/bin/sh /home/cmlee/Project/php-4.1.1/libtool --mode=link gcc  -I.
-I/home/cmlee/Project/php-4.1.1/ -I/home/cmlee/Project/php-4.1.1/main
-I/home/cmlee/Project/php-4.1.1 -I/usr/local/apache/include
-I/home/cmlee/Project/php-4.1.1/Zend
-I/home/cmlee/Project/php-4.1.1/ext/xml/expat  -DAIX=43
-DUSE_PTHREAD_SERIALIZED_ACCEPT -DAIX_BIND_PROCESSOR -DUSE_HSREGEX
-DUSE_EXPAT -I/home/cmlee/Project/php-4.1.1/TSRM -O2 -g -Wall
-prefer-pic   -o libphp4.la -rpath /home/cmlee/Project/php-4.1.1/libs
-Wl,-bI:/usr/local/apache/libexec/httpd.exp -avoid-version   stub.lo 
Zend/libZend.la sapi/apache/libsapi.la main/libmain.la
regex/libregex.la ext/pcre/libpcre.la ext/posix/libposix.la
ext/session/libsession.la ext/standard/libstandard.la ext/xml/libxml.la
TSRM/libtsrm.la -ldl -lcrypt -lbind -lm -ldl -lcrypt
mkdir .libs
rm -fr .libs/libphp4.la .libs/libphp4.* .libs/libphp4.*
(cd . && ln -s stub.lo stub.o)
generating symbol list for `libphp4.la'
/usr/bin/nm -B  stub.o   Zend/.libs/libZend.al
sapi/apache/.libs/libsapi.al main/.libs/libmain.al
regex/.libs/libregex.al ext/pcre/.libs/libp

[PHP-DEV] Bug #15283: Not a bug, just a suggestion.

2002-01-29 Thread popu

From: [EMAIL PROTECTED]
Operating system: NA
PHP version:  4.1.0
PHP Bug Type: Unknown/Other Function
Bug description:  Not a bug, just a suggestion.

Well... I was trying to get to the "request a new feature or language
change" but I believe that just links to this bugs page anyways, so sorry
if this is being directed to the wrong person.

Anyway, Im trying to implement Secure FTP through PHP with OpenSSL without
much luck. It would be cool if this was added to the "ftp_connect"
function call as an argument (0 for regular ftp, 1 for SSL). That would
make it really easy.

Just a suggestion though, for all I know it might already be as easy as
that and Im just too dense to figure it out.
-- 
Edit bug report at: http://bugs.php.net/?id=15283&edit=1


-- 
PHP Development Mailing List 
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 #15284: Iconv fails to convert to/from USC-4

2002-01-29 Thread nahshon

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.1.1
PHP Bug Type: ICONV related
Bug description:  Iconv fails to convert to/from USC-4

Iconv fails to convert to/from UCS-4 (and some other
encodings that may include null bytes).

This is because it is using strlen to determine the
length of a string (both on the input and the output).
Instead it should use the internal length (Z_STRLEN_PP)
for the param to iconv.
The length (calculated from value returned by iconv)
should be used for the result(use RETVAL_STRINGL).

Attched diff is for 4.0.6 (4.1.1 is similar except
for small style changes).
Other changes in the patch are:
a. php_iconv_string made static.
b. Fix compile warning with glibc-2.2.4 - Param to
   iconv is "char **" and not "const char **" (thogh
   the second makes more sense).

-int php_iconv_string(char *, char **, char *, char *);
+static int php_iconv_string(char *, unsigned int, char 
**, unsigned int *, char *, char *);

 PHP_INI_BEGIN()
 STD_PHP_INI_ENTRY("iconv.input_encoding",
ICONV_INPUT_ENCODING,PHP_INI_ALL, OnUpdateString,  
input_encoding,zend_iconv_globals,  iconv_globals)
@@ -111,20 +111,23 @@
DISPLAY_INI_ENTRIES();
 }

-int php_iconv_string(char *in_p, char **out, char 
*in_charset, char *out_charset)
+static int php_iconv_string(char *in_p, unsigned int 
in_len,
+char **out, unsigned int *out_len,
+char *in_charset, char *out_charset)
 {
-unsigned int in_size, out_size;
+unsigned int in_size, out_size, out_left;
 char *out_buffer, *out_p;
 iconv_t cd;
 size_t result;
 typedef unsigned int ucs4_t;

-in_size  = strlen(in_p) * sizeof(char) + 1;
-out_size = strlen(in_p) * sizeof(ucs4_t) + 1;
+in_size  = in_len;
+out_size = in_len * sizeof(ucs4_t) + 1;

 out_buffer = (char *) emalloc(out_size);
*out = out_buffer;
 out_p = out_buffer;
+   out_left = out_size;

 cd = icv_open(out_charset, in_charset);

@@ -135,14 +138,16 @@
return FAILURE;
}

-   result = icv(cd, (const char **) &in_p, &in_size, 
(char **)
-  &out_p, &out_size);
+   result = icv(cd, (char **) &in_p, &in_size, (char 
**)
+  &out_p, &out_left);

 if (result == (size_t)(-1)) {
-efree(out_buffer);
+   efree(out_buffer);
return FAILURE;
 }

+   *out_len = out_size - out_left;
+
 icv_close(cd);

 return SUCCESS;
@@ -155,6 +160,7 @@
 {
 zval **in_charset, **out_charset, **in_buffer;
char *out_buffer;
+   unsigned int out_len;

 if (ZEND_NUM_ARGS() != 3 || zend_get_parameters_ex(3, 
&in_charset, &out_charset, &in_buffer) == FAILURE) {
 WRONG_PARAM_COUNT;
@@ -164,8 +170,10 @@
 convert_to_string_ex(out_charset);
 convert_to_string_ex(in_buffer);

-   if (php_iconv_string(Z_STRVAL_PP(in_buffer), 
&out_buffer, Z_STRVAL_PP(in_charset), 
Z_STRVAL_PP(out_charset)) == SUCCESS) {
-   RETVAL_STRING(out_buffer, 0);
+   if (php_iconv_string(Z_STRVAL_PP(in_buffer), 
Z_STRLEN_PP(in_buffer),
+&out_buffer, 
&out_len,
+
Z_STRVAL_PP(in_charset), Z_STRVAL_PP(out_charset)) == 
SUCCESS) {
+   RETVAL_STRINGL(out_buffer, out_len, 0);
} else {
RETURN_FALSE;
}
@@ -178,6 +186,7 @@
 {
char *out_buffer;
zval **zv_string, **zv_status;
+   unsigned int out_len;
SLS_FETCH();
ICONVLS_FETCH();

@@ -189,10 +198,11 @@
convert_to_long_ex(zv_status);

if (SG(sapi_headers).send_default_content_type &&
-   php_iconv_string(Z_STRVAL_PP(zv_string), 
&out_buffer,
+   php_iconv_string(Z_STRVAL_PP(zv_string), 
Z_STRLEN_PP(zv_string),
+
&out_buffer, &out_len,
 
ICONVG(internal_encoding),
 
ICONVG(output_encoding))==SUCCESS) {
-   RETVAL_STRING(out_buffer, 0);
+   RETVAL_STRINGL(out_buffer, out_len, 0);
} else {
zval_dtor(return_value);
*return_value = **zv_string;



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


-- 
PHP Development Mailing List 
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 #15285: Wrong group when creating directories

2002-01-29 Thread tech

From: [EMAIL PROTECTED]
Operating system: Linux RedHat 7.x
PHP version:  4.1.0
PHP Bug Type: Filesystem function related
Bug description:  Wrong group when creating directories

Here's a short script (the cause of the beginning) :


When this is done (this code is simplified) the file is owned by user
nobody and group #-1 ...

Here's the configure line : 
'./configure' '--with-apxs=/usr/local/apache/bin/apxs'
'--enable-inline-optimization' '--enable-debug=no' '--enable-safe-mode'
'--enable-calendar' '--enable-sysvsem' '--enable-sysvshm'
'--enable-trans-sid' '--disable-static' '--with-regex=system'
'--with-mysql=/usr/local/mysql' '--with-freetype-dir=/usr'
'--with-gd=/usr' '--enable-gd-native-tt'
'--enable-freetype-4bit-antialias-hack' '--with-jpeg-dir=/usr'
'--with-png-dir=/usr' '--with-tiff-dir=/usr' '--with-zlib=/usr'
'--with-pdflib=/usr'

I'm running Zend optimiser V1.2.0

This script was running as a module from Apache V1.3.20 (apache user :
nobody, group : nobody).

I didn't test if this bug is also on other systems (I've only RedHat7.x
servers, but only one that can run Apache, the others has their respective
tasks).

I didn't compile PHP with the --enable-debug then I'm not able to give the
gdb backtrace (?) ...
-- 
Edit bug report at: http://bugs.php.net/?id=15285&edit=1


-- 
PHP Development Mailing List 
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 #15285 Updated: Wrong group when creating directories

2002-01-29 Thread tech

ID: 15285
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Filesystem function related
Operating System: Linux RedHat 7.x
PHP Version: 4.1.0


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


-- 
PHP Development Mailing List 
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 #15286: ucwords doesn't work with capitalized string

2002-01-29 Thread jim_ekleberry

From: [EMAIL PROTECTED]
Operating system: Win2K SP2
PHP version:  4.1.1
PHP Bug Type: Strings related
Bug description:  ucwords doesn't work with capitalized string

$propercompany = ucwords("WOLF PACK TRADERS");

$propercompany should be "Wolf Pack Traders"

I am running PHP v4.1.1 with:
System Windows NT 5.0 build 2195 
Build Date Dec 30 2001 
Server API CGI 
Virtual Directory Support enabled 
Configuration File (php.ini) Path C:\WINNT\php.ini 
ZEND_DEBUG disabled 
Thread Safety enabled 

And using IIS 5.0

I know that this problem is mentioned in the documentation but I did not
find an actual bug report when I searched the bug database to actually
have it fixed.

Jim Ekleberry
-- 
Edit bug report at: http://bugs.php.net/?id=15286&edit=1


-- 
PHP Development Mailing List 
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] Bug #15280 Updated: Feature request

2002-01-29 Thread Sean R. Bright

How about we wait for him to say "because I am lazy" before jumping down his
throat?

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 29, 2002 2:59 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DEV] Bug #15280 Updated: Feature request
>
>
> ID: 15280
> Updated by: mfischer
> Reported By: [EMAIL PROTECTED]
> Old Status: Open
> Status: Feedback
> Bug Type: Feature/Change Request
> Operating System: Win2k
> PHP Version: 4.1.1
> New Comment:
>
> You mean something like array_unset_empty_valus() ?  I don't
> think there's a hard-coded need for it when user-space does it
> very well.  Can you give an example (except your programming
> lazyness to create a
> function) where the advantages would be?
>
>
> Previous Comments:
> --
> --
>
> [2002-01-29 13:30:10] [EMAIL PROTECTED]
>
> Hi,  I have mailed with Gabor Hojtsy and he said to me that i
> request my
> wish here.  This is a Copy - Paste of a part of the eMail:
> ###  I would like to have a function that deletes the
> empty array entries:  a.e. $test[0] = "Hello i am php 4.1.1";
> $test[1] = "I am the best release ever :)"; $test[2] = "";
> $test[3] = "";  I hope you know what i mean...  At the moment
> i have a loop that checkes this.  $k = count($test);
> for($i=0;$i<=$k;$i++){ if(empty($test[$i])) unset($test[$i]);
> }  I think it would not be hard to integrate that. I am a
> apprentice and
> i will learn C/C++ after my php programming is well. I hope i
> could help
> bugfixing the next releases, to help you all.  yours sincerly
> Benjamin Eggerstedt  P.S. I know my english is terrible... ;)
> P.P.S. You all do GREAT work!!!
>
> --
> --
>
>
>
> Edit this bug report at http://bugs.php.net/?id=15280&edit=1
>
>
> --
> PHP Development Mailing List 
> 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 
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 #15286 Updated: ucwords doesn't work with capitalized string

2002-01-29 Thread philip

ID: 15286
Updated by: philip
Old Summary: ucwords doesn't work with capitalized string
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Strings related
Operating System: Win2K SP2
PHP Version: 4.1.1
New Comment:

This is expected behavior, not a bug.

$str = 'McDonalds';

You want ucwords($str) to result in Mcdonalds?  If so, use strtolower()
first as the documentation suggests.


Previous Comments:


[2002-01-29 17:44:56] [EMAIL PROTECTED]

$propercompany = ucwords("WOLF PACK TRADERS");

$propercompany should be "Wolf Pack Traders"

I am running PHP v4.1.1 with:
System Windows NT 5.0 build 2195 
Build Date Dec 30 2001 
Server API CGI 
Virtual Directory Support enabled 
Configuration File (php.ini) Path C:\WINNT\php.ini 
ZEND_DEBUG disabled 
Thread Safety enabled 

And using IIS 5.0

I know that this problem is mentioned in the documentation but I did
not find an actual bug report when I searched the bug database to
actually have it fixed.

Jim Ekleberry





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


-- 
PHP Development Mailing List 
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] Bug #15280 Updated: Feature request

2002-01-29 Thread Markus Fischer

On Tue, Jan 29, 2002 at 05:59:13PM -0500, Sean R. Bright wrote : 
> How about we wait for him to say "because I am lazy" before jumping down his
> throat?

Nobody jumped anywhere.

-- 
Please always Cc to me when replying to me on the lists.

-- 
PHP Development Mailing List 
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 #15283: Not a bug, just a suggestion.

2002-01-29 Thread J Smith


"Feature Request" is in the "Type of Bug" drop-down list. It's the third 
item.

You'd have to use OpenSSH/SSH for secure FTP, I would think, not OpenSSL. 

Don't know how hard it would be to implement. (Never worked much with the 
OpenSSH library, although I use SSH/sftp/scp all the time.) I'm thinking it 
would be better to have a seperate extension for it, though, rather than 
implement it in conjunction with the standard ftp functions, because 
they're different enough to warrant it.

J


[EMAIL PROTECTED] wrote:

> From: [EMAIL PROTECTED]
> Operating system: NA
> PHP version:  4.1.0
> PHP Bug Type: Unknown/Other Function
> Bug description:  Not a bug, just a suggestion.
> 
> Well... I was trying to get to the "request a new feature or language
> change" but I believe that just links to this bugs page anyways, so sorry
> if this is being directed to the wrong person.
> 
> Anyway, Im trying to implement Secure FTP through PHP with OpenSSL without
> much luck. It would be cool if this was added to the "ftp_connect"
> function call as an argument (0 for regular ftp, 1 for SSL). That would
> make it really easy.
> 
> Just a suggestion though, for all I know it might already be as easy as
> that and Im just too dense to figure it out.


-- 
PHP Development Mailing List 
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 #15287: dba_popen replace inserts never get written.

2002-01-29 Thread EAhn

From: [EMAIL PROTECTED]
Operating system: Redhat Linux 6.2
PHP version:  4.1.1
PHP Bug Type: DBM/DBA related
Bug description:  dba_popen replace inserts never get written.

$Key = "Dido";
$Value = "No Angel, Here With Me";

$bdb = dba_popen("cache.bdb","c","db2");
$OK = dba_replace($Key,$Value,$bdb);
dba_close($bdb);

The same code above which uses the non persistent dba_open method works
fine.

In the persistent connection shouldn't the dba_close flush any waiting
writes ?

Is this a real bug or is there something else I should do to force my
inserts/replaces to be written ?

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


-- 
PHP Development Mailing List 
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 #8685 Updated: Here-Syntax problem

2002-01-29 Thread yohgaki

ID: 8685
Updated by: yohgaki
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Feature/Change Request
PHP Version: 4.1.1
New Comment:

There are good reasons this will not be implemented.
(As original(?) author memtioned)

Think about possibility that begin/end of heredoc mark appears in text
and 
how paser handle text and begin/end of heredoc.

Supporting this does not worth effort, IMHO.
This is just my opinion, so feel free to create/submit patch. ;)


Previous Comments:


[2002-01-29 07:59:05] [EMAIL PROTECTED]

thank you philip :)

closing it silently after over a year is a bit to easy. this realy
obfuscates php code a lot and i don't see any valid reason.
so maybe this is an issue for ZE2.



[2002-01-28 21:35:42] [EMAIL PROTECTED]

I like this feature request, so am reopening it :) Until someone
replies with a definitive response as to why such heredoc spacing is
required in PHP.



[2002-01-28 20:38:20] [EMAIL PROTECTED]

Many script languages that support here doc syntax require closing tag
at col 1. 

Won't change.



[2001-01-12 16:36:11] [EMAIL PROTECTED]

This is not a bug, but a feature request



[2001-01-12 16:22:11] [EMAIL PROTECTED]

why must the closing tag be in column 1 ?
i think it schould be enought that it stays in its own line.

   if($foo)
   {
  echo <
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 #15283 Updated: secure ftp support

2002-01-29 Thread yohgaki

ID: 15283
Updated by: yohgaki
Old Summary: Not a bug, just a suggestion.
Reported By: [EMAIL PROTECTED]
Status: Open
Old Bug Type: Unknown/Other Function
Bug Type: Feature/Change Request
Operating System: NA
PHP Version: 4.1.0


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


-- 
PHP Development Mailing List 
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 #15284 Updated: Iconv fails to convert to/from USC-4

2002-01-29 Thread yohgaki

ID: 15284
Updated by: yohgaki
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Analyzed
Bug Type: ICONV related
Operating System: Linux
PHP Version: 4.1.1
Old Assigned To: 
Assigned To: yohgaki
New Comment:

Patch seems ok  to me except you've made php_iconv_string to static.

Have you checked no other module uses php_iconv_string? I'm fine to
make it static function. We can make it non-static when we need :)

Could you send me patch against 4.2.0-dev for testing?




Previous Comments:


[2002-01-29 16:58:06] [EMAIL PROTECTED]

Iconv fails to convert to/from UCS-4 (and some other
encodings that may include null bytes).

This is because it is using strlen to determine the
length of a string (both on the input and the output).
Instead it should use the internal length (Z_STRLEN_PP)
for the param to iconv.
The length (calculated from value returned by iconv)
should be used for the result(use RETVAL_STRINGL).

Attched diff is for 4.0.6 (4.1.1 is similar except
for small style changes).
Other changes in the patch are:
a. php_iconv_string made static.
b. Fix compile warning with glibc-2.2.4 - Param to
   iconv is "char **" and not "const char **" (thogh
   the second makes more sense).

-int php_iconv_string(char *, char **, char *, char *);
+static int php_iconv_string(char *, unsigned int, char 
**, unsigned int *, char *, char *);

 PHP_INI_BEGIN()
 STD_PHP_INI_ENTRY("iconv.input_encoding",
ICONV_INPUT_ENCODING,PHP_INI_ALL, OnUpdateString,  
input_encoding,zend_iconv_globals,  iconv_globals)
@@ -111,20 +111,23 @@
DISPLAY_INI_ENTRIES();
 }

-int php_iconv_string(char *in_p, char **out, char 
*in_charset, char *out_charset)
+static int php_iconv_string(char *in_p, unsigned int 
in_len,
+char **out, unsigned int *out_len,
+char *in_charset, char *out_charset)
 {
-unsigned int in_size, out_size;
+unsigned int in_size, out_size, out_left;
 char *out_buffer, *out_p;
 iconv_t cd;
 size_t result;
 typedef unsigned int ucs4_t;

-in_size  = strlen(in_p) * sizeof(char) + 1;
-out_size = strlen(in_p) * sizeof(ucs4_t) + 1;
+in_size  = in_len;
+out_size = in_len * sizeof(ucs4_t) + 1;

 out_buffer = (char *) emalloc(out_size);
*out = out_buffer;
 out_p = out_buffer;
+   out_left = out_size;

 cd = icv_open(out_charset, in_charset);

@@ -135,14 +138,16 @@
return FAILURE;
}

-   result = icv(cd, (const char **) &in_p, &in_size, 
(char **)
-  &out_p, &out_size);
+   result = icv(cd, (char **) &in_p, &in_size, (char 
**)
+  &out_p, &out_left);

 if (result == (size_t)(-1)) {
-efree(out_buffer);
+   efree(out_buffer);
return FAILURE;
 }

+   *out_len = out_size - out_left;
+
 icv_close(cd);

 return SUCCESS;
@@ -155,6 +160,7 @@
 {
 zval **in_charset, **out_charset, **in_buffer;
char *out_buffer;
+   unsigned int out_len;

 if (ZEND_NUM_ARGS() != 3 || zend_get_parameters_ex(3, 
&in_charset, &out_charset, &in_buffer) == FAILURE) {
 WRONG_PARAM_COUNT;
@@ -164,8 +170,10 @@
 convert_to_string_ex(out_charset);
 convert_to_string_ex(in_buffer);

-   if (php_iconv_string(Z_STRVAL_PP(in_buffer), 
&out_buffer, Z_STRVAL_PP(in_charset), 
Z_STRVAL_PP(out_charset)) == SUCCESS) {
-   RETVAL_STRING(out_buffer, 0);
+   if (php_iconv_string(Z_STRVAL_PP(in_buffer), 
Z_STRLEN_PP(in_buffer),
+&out_buffer, 
&out_len,
+
Z_STRVAL_PP(in_charset), Z_STRVAL_PP(out_charset)) == 
SUCCESS) {
+   RETVAL_STRINGL(out_buffer, out_len, 0);
} else {
RETURN_FALSE;
}
@@ -178,6 +186,7 @@
 {
char *out_buffer;
zval **zv_string, **zv_status;
+   unsigned int out_len;
SLS_FETCH();
ICONVLS_FETCH();

@@ -189,10 +198,11 @@
convert_to_long_ex(zv_status);

if (SG(sapi_headers).send_default_content_type &&
-   php_iconv_string(Z_STRVAL_PP(zv_string), 
&out_buffer,
+   php_iconv_string(Z_STRVAL_PP(zv_string), 
Z_STRLEN_PP(zv_string),
+
&out_buffer, &out_len,
 
ICONVG(internal_encoding),
 
ICONVG(output_encoding))==SUCCESS) {
-   RETVAL_STRING(out_buffer, 0);
+   RETVAL_STRINGL(out_buffer, out_len, 0);
} else {
zval_dtor(return_value);
*return_value = **zv_string;




-

[PHP-DEV] Bug #15282 Updated: pg_connect failing on iPlanet 4.1 nsapi

2002-01-29 Thread yohgaki

ID: 15282
Updated by: yohgaki
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Assigned
Bug Type: PostgreSQL related
Operating System: Solaris 2.8
PHP Version: 4.1.1
Old Assigned To: 
Assigned To: yohgaki
New Comment:

Could you take a look at web server error log? 
Do you have anything related? (segfault, etc)

Could you run iPlanet under gdb? (to see if it is exting or
segfaulting)

Do you quote connection string?
Do you get any error message from pg_connect? 
Do you have multiple libpq? (find / -name "libpq*")

Do you have the same problem with snapshot?
http://snaps.php.net/

Attach *complete* script even if it is a few lines next time.


Previous Comments:


[2002-01-29 13:56:28] [EMAIL PROTECTED]

When attempting to connecting to a remote database using
pg_connect(host=dbhost user=dbuser dbname=dbname), the operation
fails.

I can connect using psql from the command line or through a perl script
as any user. Running php as a CGI binary also works. However, when
running as an nsapi, the connection fails. A quick look using snoop
shows that the failed connection appears to be sending SYN/RST instead
of SYN/ACK (which is what is seen during a successful connection).

Here's my system details:
OS: Solaris 2.8
Web Server: iPlanet 4.1
PHP version: php 4.1.1
PHP configure options:
./configure --with-nsapi=/usr/local/iws41 \
--with-pgsql=/usr/local/pgsql \
--enable-libgcc
PostgreSQL version: 7.0.3

For what it's worth, connections to a mysql database between the same
systems works without a hitch.

Any suggestions would be appreciated.







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


-- 
PHP Development Mailing List 
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 #15267 Updated: "declare" makes apacke crashes under Windows.

2002-01-29 Thread yohgaki

ID: 15267
Updated by: yohgaki
Old Summary: declare makes apacke crahs burn and die!!
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Open
Bug Type: Reproducible crash
Operating System: win 98
PHP Version: 4.1.1
New Comment:

It seems windows have this problem while linux does not.
reopenned.

Apache 1.3.22
PHP 4.1.1/Apache SAPI


Previous Comments:


[2002-01-29 08:54:32] [EMAIL PROTECTED]

It most defiantly does crash and burn! Unlike planes, apache does not
like to stay down. It tries to start itself back up, but is shot time
crashes again. After many tries, Apache eventually gets tired of this
and decides not to display the page.

It most defiantly does crash and burn! Unlike planes, apache does not
like to stay down. It tries to start itself back up, but is shot time
crashes again. After many tries, Apache eventually gets tired of this
and decides not to display the page.

Php 4.06 -apache 1.3.20 cashes 
php 4.06 -apache 1.3.22 internal server error
php 4.1.1-apache 1.3.22 crashes
everything else dont know

I am not sure if it matters, but i am using php as an sapi.

Brendan



[2002-01-28 23:02:50] [EMAIL PROTECTED]

It seems this is fixed. 
Your script does not crash on my Linux

Please reopen if you still have problem with 4.2.0-dev.
(It may be win spcific problem?)



[2002-01-28 22:44:59] [EMAIL PROTECTED]

Apache crashes, burns and dies when i copy and paste the first
“declare” example in the php documentation

dont ask me why it is happening. I am having troubles learning how to
use declare and ticks. may be declare or ticks is not causing the
problem beats the heck out of me.

php4.0.6 did the same thing with apache 1.3.20, but when i upgraded to
apache 1.3.22, it caused and internal server error. After i updated my
php to the current version, apache decided it liked to crash and burn
better.

It might be good idea to update the documentation to a different
example, one that does not crash just a thought. I know it might
not be possible.

The source code is as follows:





good luck...

Brendan





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


-- 
PHP Development Mailing List 
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 #15288: Image*-functions being avail even if they're not implemented by gd

2002-01-29 Thread matslin

From: [EMAIL PROTECTED]
Operating system: All
PHP version:  4.1.1
PHP Bug Type: Feature/Change Request
Bug description:  Image*-functions being avail even if they're not implemented by gd

The Image*-functions specific for different formats are available even if
they're not supported in GD. Even though this is understandable, a better
practice would probably be to disable these functions, since they're not
available.(so they can be checked for existance in runtime, instead of
relying on errors passed back from gd)

It shouldnt be much of a change, since i was able to create the desired
effect using a few #ifdef's - and i've only got spare knowledge of c.

http://software.e-mats.org/patches/gd_4.1.1.diff contains the diff for the
gd.c-file from 4.1.1. that i used for testing.
-- 
Edit bug report at: http://bugs.php.net/?id=15288&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] [BUNDLING] PHP & cURL

2002-01-29 Thread Sterling Hughes

Hey,

I'd like to start bundling the cURL distribution with PHP, for both
the curl extension (for starters), as well as replacing alot of the
current ftp & http code to use the cURL library.

I want to do this for a few reasons, the most poignant are:

1) HTTP is a tricky mistress.  Incompatibilities, protocol changes,
request features, etc.  cURL is a library with the best support for
http and related protocols of all the different libraries out there.

2) cURL supports a multitude of different protocols which could be
added to PHP transparently, including HTTPS, HTTP Proxy, DICT, LDAP, 
Telnet, etc.

3) cURL is fast, not just marginally faster, but quite a bit faster.
Most benchmarks done confirm that its at least 20-30% faster than
PHP's native code.  Of course nothing official, but I'd be willing
to bet quite a bit that an "official" benchmark would yield the same
results.

4) I don't need to stress how important it is for PHP to have superb
support for interacting with other web programs, even more now with
the advent of "web services" (even though I'm not a huge fan of this
concept).

5) cURL is quite popular, and is becoming even more popular lately,
that means we get to take advantage of the work of the talented cURL
developers in PHP, people who are constantly improving and tuning
cURL to support new features, and new ideas.

well, yeah, that's pretty much it, thoughts?

-Sterling

PS: cURL is license compatible, its dual-licensed under the MPL or
the MIT public license.

-- 
I wish I may, I wish I might, GIMME STUFF! 
http://www.amazon.com/exec/obidos/wishlist/E7I1IWUJDPB4/
:)))

-- 
PHP Development Mailing List 
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 #15289: Global variables do not work with session.

2002-01-29 Thread brubla

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.1.1
PHP Bug Type: Session related
Bug description:  Global variables do not work with session.

Global variable will be registered in session only first time. When you
will be refreshing page with following code, it will count only to 2.



When you remove row with "global $counter;" page will count to 3, 4, 5...

Both variants of code works properly with PHP 4.0.6 (on Windows 2000).
-- 
Edit bug report at: http://bugs.php.net/?id=15289&edit=1


-- 
PHP Development Mailing List 
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] [BUNDLING] PHP & cURL

2002-01-29 Thread James Cox

i'm +1 on this. i'd like to see cURL get bundled as standard with php
distro's.

james

> -Original Message-
> From: Sterling Hughes [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 3:07 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DEV] [BUNDLING] PHP & cURL
>
>
> Hey,
>
> I'd like to start bundling the cURL distribution with PHP, for both
> the curl extension (for starters), as well as replacing alot of the
> current ftp & http code to use the cURL library.
>
> I want to do this for a few reasons, the most poignant are:
>
> 1) HTTP is a tricky mistress.  Incompatibilities, protocol changes,
> request features, etc.  cURL is a library with the best support for
> http and related protocols of all the different libraries out there.
>
> 2) cURL supports a multitude of different protocols which could be
> added to PHP transparently, including HTTPS, HTTP Proxy, DICT, LDAP,
> Telnet, etc.
>
> 3) cURL is fast, not just marginally faster, but quite a bit faster.
> Most benchmarks done confirm that its at least 20-30% faster than
> PHP's native code.  Of course nothing official, but I'd be willing
> to bet quite a bit that an "official" benchmark would yield the same
> results.
>
> 4) I don't need to stress how important it is for PHP to have superb
> support for interacting with other web programs, even more now with
> the advent of "web services" (even though I'm not a huge fan of this
> concept).
>
> 5) cURL is quite popular, and is becoming even more popular lately,
> that means we get to take advantage of the work of the talented cURL
> developers in PHP, people who are constantly improving and tuning
> cURL to support new features, and new ideas.
>
> well, yeah, that's pretty much it, thoughts?
>
> -Sterling
>
> PS: cURL is license compatible, its dual-licensed under the MPL or
> the MIT public license.
>
> --
> I wish I may, I wish I might, GIMME STUFF!
> http://www.amazon.com/exec/obidos/wishlist/E7I1IWUJDPB4/
> :)))
>
> --
> PHP Development Mailing List 
> 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 
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 #15288 Updated: Image*-functions being avail even if they're not implemented by gd

2002-01-29 Thread cardinal

ID: 15288
Updated by: cardinal
Old Summary: Image*-functions being avail even if they're not
implemented by gd
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating System: All
PHP Version: 4.1.1
New Comment:

There is already a clean way to check which image formats are
supported:

http://www.php.net/manual/en/function.imagetypes.php


Previous Comments:


[2002-01-29 20:53:30] [EMAIL PROTECTED]

The Image*-functions specific for different formats are available even
if they're not supported in GD. Even though this is understandable, a
better practice would probably be to disable these functions, since
they're not available.(so they can be checked for existance in runtime,
instead of relying on errors passed back from gd)

It shouldnt be much of a change, since i was able to create the desired
effect using a few #ifdef's - and i've only got spare knowledge of c.

http://software.e-mats.org/patches/gd_4.1.1.diff contains the diff for
the gd.c-file from 4.1.1. that i used for testing.





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


-- 
PHP Development Mailing List 
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 #15290: DirectoryIndex -> index.php must come first

2002-01-29 Thread swade

From: [EMAIL PROTECTED]
Operating system: rh 7.2
PHP version:  4.1.1
PHP Bug Type: *Web Server problem
Bug description:  DirectoryIndex -> index.php must come first 

not a typical setup...i'm developing on a vmware virtual machinebut
everything else has been flawless so maybe this isn't related to that.
latest versions of all, apache, php, samba

When listing
DirectoryIndex index.html index.php 
in apache 

on a smb mounted share aka my scripts are physically on an xp shared
folder, I mount the share using smbmount the folder as a linux directory
which is setup as apaches directory. I've noticed if I list index.php
AFTER index.html that if i edit the index.php file on xp, the changes will
not be seen by the webserver. However it is only with a file named
index.php, all other filenames work fine. Wierd huh? however if I list
index.php first before index.html everything works perfectly.

Additionally, umounting the share and remounting doesn't fix, only listing
index.php first in directoryindex

Not sure if this happens outside of a virtual machine or a non smb share,
but it was a $#$ tracking down. reinstalled samba & more. 

I had previously been using the 4.06 version and this didn't happen. 

Like I said not sure if is some wierd interaction with the virtual machine
or mounting the share but thought Id pass it on in case it wasn't related,
as its reproducable on my end...I also tried different server directories
i had setup and it occured on those also.


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


-- 
PHP Development Mailing List 
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 #15282 Updated: pg_connect failing on iPlanet 4.1 nsapi

2002-01-29 Thread daver

ID: 15282
Comment by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Assigned
Bug Type: PostgreSQL related
Operating System: Solaris 2.8
PHP Version: 4.1.1
Assigned To: yohgaki
New Comment:

I've also tried using the current CVS (01/26/2002) with no luck. The
are no multiple copies of libpq, it's a new system.

I haven't tried running iPlanet under gdb yet, that'll be something to
try tommorow.

In the mean time, here's the error from the logs:

[29/Jan/2002:22:50:18] info (14848): for host b-39-117-res1.mts.net
trying to POST /members.php, PHP_log_message reports: PHP Warning: 
Unable to connect to PostgreSQL server:  connectDBStart() -- connect()
failed: No such file or directory
Is the postmaster running (with -i) at 'db1'
and accepting connections on TCP/IP port 5432?
 in /usr/local/etc/httpd/htdocs/cardp.ca/members.php on line 100

No other errors appear and the server keeps on running.

The source of the script (sans-HTML) calling the database follows:


 0) {
for ($rowCount=0; $rowCount < $numRows; $rowCount++) {
$row = pg_fetch_array($result, $rowCount);
if($rowCount % 2) {
print("\n");
} else {
print("\n");
}
print("");
print("" . $row["last_name"] . ", " . $row["first_name"] .
"\n");
print("");
if($row["address1"]) {
print($row["address1"] . "\n");
}
if($row["address2"]) {
print($row["address2"] . "\n");
}
if($row["address3"]) {
print($row["address3"] . "\n");
}
print($row["city"] . ", " . $row["province"]);
if($row["postal_code"]) {
print(" " . $row["postal_code"] . "\n");
}
if($row["country"] != "Canada") {
print($row["country"] . "\n");
}
if($row["email"]) {
print("mailto:"; . $row["email"] . "\">" . 
$row["email"] .
"\n");
}
print("\n\n");
}
if(!($numRows % 2)) {
print(" \n");
}
} else {
print("\n");
print("Sorry\n");
print("There were no results that matched your query.\n");
print("Please make another selection.\n");
print("\n");
}

?>

- DR


Previous Comments:


[2002-01-29 20:42:40] [EMAIL PROTECTED]

Could you take a look at web server error log? 
Do you have anything related? (segfault, etc)

Could you run iPlanet under gdb? (to see if it is exting or
segfaulting)

Do you quote connection string?
Do you get any error message from pg_connect? 
Do you have multiple libpq? (find / -name "libpq*")

Do you have the same problem with snapshot?
http://snaps.php.net/

Attach *complete* script even if it is a few lines next time.



[2002-01-29 13:56:28] [EMAIL PROTECTED]

When attempting to connecting to a remote database using
pg_connect(host=dbhost user=dbuser dbname=dbname), the operation
fails.

I can connect using psql from the command line or through a perl script
as any user. Running php as a CGI binary also works. However, when
running as an nsapi, the connection fails. A quick look using snoop
shows that the failed connection appears to be sending SYN/RST instead
of SYN/ACK (which is what is seen during a successful connection).

Here's my system details:
OS: Solaris 2.8
Web Server: iPlanet 4.1
PHP version: php 4.1.1
PHP configure options:
./configure --with-nsapi=/usr/local/iws41 \
--with-pgsql=/usr/local/pgsql \
--enable-libgcc
PostgreSQL version: 7.0.3

For what it's worth, connections to a mysql database between the same
systems works without a hitch.

Any suggestions would be appreciated.







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


-- 
PHP Development Mailing List 
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] [BUNDLING] PHP & cURL

2002-01-29 Thread Sebastian Bergmann

Sterling Hughes wrote:
> well, yeah, that's pretty much it, thoughts?

  Sounds reasonable and appeals to me, +1.

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

-- 
PHP Development Mailing List 
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 #15282 Updated: pg_connect failing on iPlanet 4.1 nsapi

2002-01-29 Thread yohgaki

ID: 15282
Updated by: yohgaki
Reported By: [EMAIL PROTECTED]
Old Status: Assigned
Status: Bogus
Bug Type: PostgreSQL related
Operating System: Solaris 2.8
PHP Version: 4.1.1
Assigned To: yohgaki
New Comment:

This is not a bug but usual result with your configuration.
Read manual. It's explained :)


Previous Comments:


[2002-01-30 00:11:22] [EMAIL PROTECTED]

I've also tried using the current CVS (01/26/2002) with no luck. The
are no multiple copies of libpq, it's a new system.

I haven't tried running iPlanet under gdb yet, that'll be something to
try tommorow.

In the mean time, here's the error from the logs:

[29/Jan/2002:22:50:18] info (14848): for host b-39-117-res1.mts.net
trying to POST /members.php, PHP_log_message reports: PHP Warning: 
Unable to connect to PostgreSQL server:  connectDBStart() -- connect()
failed: No such file or directory
Is the postmaster running (with -i) at 'db1'
and accepting connections on TCP/IP port 5432?
 in /usr/local/etc/httpd/htdocs/cardp.ca/members.php on line 100

No other errors appear and the server keeps on running.

The source of the script (sans-HTML) calling the database follows:


 0) {
for ($rowCount=0; $rowCount < $numRows; $rowCount++) {
$row = pg_fetch_array($result, $rowCount);
if($rowCount % 2) {
print("\n");
} else {
print("\n");
}
print("");
print("" . $row["last_name"] . ", " . $row["first_name"] .
"\n");
print("");
if($row["address1"]) {
print($row["address1"] . "\n");
}
if($row["address2"]) {
print($row["address2"] . "\n");
}
if($row["address3"]) {
print($row["address3"] . "\n");
}
print($row["city"] . ", " . $row["province"]);
if($row["postal_code"]) {
print(" " . $row["postal_code"] . "\n");
}
if($row["country"] != "Canada") {
print($row["country"] . "\n");
}
if($row["email"]) {
print("mailto:"; . $row["email"] . "\">" . 
$row["email"] .
"\n");
}
print("\n\n");
}
if(!($numRows % 2)) {
print(" \n");
}
} else {
print("\n");
print("Sorry\n");
print("There were no results that matched your query.\n");
print("Please make another selection.\n");
print("\n");
}

?>

- DR



[2002-01-29 20:42:40] [EMAIL PROTECTED]

Could you take a look at web server error log? 
Do you have anything related? (segfault, etc)

Could you run iPlanet under gdb? (to see if it is exting or
segfaulting)

Do you quote connection string?
Do you get any error message from pg_connect? 
Do you have multiple libpq? (find / -name "libpq*")

Do you have the same problem with snapshot?
http://snaps.php.net/

Attach *complete* script even if it is a few lines next time.



[2002-01-29 13:56:28] [EMAIL PROTECTED]

When attempting to connecting to a remote database using
pg_connect(host=dbhost user=dbuser dbname=dbname), the operation
fails.

I can connect using psql from the command line or through a perl script
as any user. Running php as a CGI binary also works. However, when
running as an nsapi, the connection fails. A quick look using snoop
shows that the failed connection appears to be sending SYN/RST instead
of SYN/ACK (which is what is seen during a successful connection).

Here's my system details:
OS: Solaris 2.8
Web Server: iPlanet 4.1
PHP version: php 4.1.1
PHP configure options:
./configure --with-nsapi=/usr/local/iws41 \
--with-pgsql=/usr/local/pgsql \
--enable-libgcc
PostgreSQL version: 7.0.3

For what it's worth, connections to a mysql database between the same
systems works without a hitch.

Any suggestions would be appreciated.







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


-- 
PHP Development Mailing List 

[PHP-DEV] Re: [BUNDLING] PHP & cURL

2002-01-29 Thread Yasuo Ohgaki

Sterling Hughes wrote:
> Hey,
> 
> I'd like to start bundling the cURL distribution with PHP, for both
> the curl extension (for starters), as well as replacing alot of the
> current ftp & http code to use the cURL library.

cURL supports more features than current http/ftp
implementation in PHP ;)

+1
-- 
Yasuo Ohgaki


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Content Management

2002-01-29 Thread bob

Does anyone know of any group who has put together a web content management architecture for a large site?

[PHP-DEV] Bug #15291: date() function time return problem

2002-01-29 Thread omid

From: [EMAIL PROTECTED]
Operating system: Debian
PHP version:  4.1.1
PHP Bug Type: Date/time related
Bug description:  date() function time return problem

The date() function is returning the value as GMT time. 
i.e this function and gmdate() produce the same result as 
of php 4.1.1. This was o.k in previous versions

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


-- 
PHP Development Mailing List 
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] Content Management

2002-01-29 Thread Lars Torben Wilson

On Tue, 2002-01-29 at 22:35, [EMAIL PROTECTED] wrote:
> Does anyone know of any group who has put together a web content 
> management architecture for a large site?

Two things: first, this list is for development of PHP, not in
PHP (you want php-general for that), and second, HTML emails will get
you spanked on these lists. :)

Now that the net cop thing is done, I would suggest checking
out phpnuke and postnuke (search on google or something). I've
not used either, but you can find a comparison review at

  http://www.phpauthority.com/article.php?sid=9

...if the colour scheme doesn't give you a seizure. :)


Good luck,

Torben


-- 
 Torben Wilson <[EMAIL PROTECTED]>
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506


-- 
PHP Development Mailing List 
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] Content Management

2002-01-29 Thread Sebastian Bergmann

[EMAIL PROTECTED] wrote:
> Does anyone know of any group who has put together a web content
> management architecture for a large site?

  Please post question related to the development _with_ PHP on the
  [EMAIL PROTECTED] mailing list.

  This list is dedicated to the development _of_ PHP itself.

  Thanks,
Sebastian

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

-- 
PHP Development Mailing List 
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 #15291 Updated: date() function time return problem

2002-01-29 Thread swm

ID: 15291
Updated by: swm
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Date/time related
Operating System: Debian
PHP Version: 4.1.1
New Comment:

I cannot replicate this. I think your timezone settings may
be incorrect

[swm@l php-4.1.1]$ ./php

17[swm@l php-4.1.1]# date
Wed Jan 30 17:51:27 EST 2002
[swm@l php-4.1.1]$ TZ=GMT ./php

06[swm@l php-4.1.1]$

gavin


Previous Comments:


[2002-01-30 01:38:12] [EMAIL PROTECTED]

The date() function is returning the value as GMT time. 
i.e this function and gmdate() produce the same result as 
of php 4.1.1. This was o.k in previous versions






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


-- 
PHP Development Mailing List 
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 #15292: include() causes maxclients in apache.

2002-01-29 Thread morbid

From: [EMAIL PROTECTED]
Operating system: RedHat 7.1
PHP version:  4.1.1
PHP Bug Type: Apache related
Bug description:  include() causes maxclients in apache.

http://www.bloodheart.com/php";;
switch ($id) 
{
//test1
case blank1:
$file="$loca/blank1";
break;

//test2
case blank2:
$file="$loca/blank2";
break;
//test (This is where the bug starts.)
//Note if you copy this file to another file and set the default as
thatfilename (with .php ext)
//   Then spawns maxclients for apache, and stays that way forever, a
very nasy loop. or until you restart apache
//*Example*
//default:
//$file="$loca/bug2.php";

default:
$file="$loca/blank3";
break;
}
?>
--CONFIGLINE
./configure --with-mysql=/usr/local/mysql \
--enable-track-vars \
--with-apache=../apache_1.3.22 \
--with-mm=../mm-1.1.3 \
--with-openssl=../openssl-0.9.6c \
--with-config-file-path=/usr/local/lib/php

I don't recall this happening with an earlier version of php.

This just started with 4.1.1

If you need anymore information please let me know
-- 
Edit bug report at: http://bugs.php.net/?id=15292&edit=1


-- 
PHP Development Mailing List 
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 #15291 Updated: date() function time return problem

2002-01-29 Thread torben

ID: 15291
Updated by: torben
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Feedback
Bug Type: Date/time related
Operating System: Debian
PHP Version: 4.1.1
New Comment:

Reopening; this should be set to 'Feedback' until the user
confirms that the proposed fix actually works.


Torben


Previous Comments:


[2002-01-30 01:54:38] [EMAIL PROTECTED]

I cannot replicate this. I think your timezone settings may
be incorrect

[swm@l php-4.1.1]$ ./php

17[swm@l php-4.1.1]# date
Wed Jan 30 17:51:27 EST 2002
[swm@l php-4.1.1]$ TZ=GMT ./php

06[swm@l php-4.1.1]$

gavin



[2002-01-30 01:38:12] [EMAIL PROTECTED]

The date() function is returning the value as GMT time. 
i.e this function and gmdate() produce the same result as 
of php 4.1.1. This was o.k in previous versions






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


-- 
PHP Development Mailing List 
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 #15292 Updated: include() causes maxclients in apache.

2002-01-29 Thread swm

ID: 15292
Updated by: swm
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Apache related
Operating System: RedHat 7.1
PHP Version: 4.1.1
New Comment:

Correct me I am wrong, but you seem to be saying that your
script includes a file via HTTP which is either itself or
another file which includes itself or the original (I cannot
tell from your description). But yes, if a script needs to
include itself than that will create an infinite loop.
There is no way that the scripting engine could preemptively
terminate this loop when HTTP based includes are being used.

Reopen if I have mis-understood.


Previous Comments:


[2002-01-30 01:59:42] [EMAIL PROTECTED]

http://www.bloodheart.com/php";;
switch ($id) 
{
//test1
case blank1:
$file="$loca/blank1";
break;

//test2
case blank2:
$file="$loca/blank2";
break;
//test (This is where the bug starts.)
//Note if you copy this file to another file and set the default as
thatfilename (with .php ext)
//   Then spawns maxclients for apache, and stays that way forever,
a very nasy loop. or until you restart apache
//*Example*
//default:
//$file="$loca/bug2.php";

default:
$file="$loca/blank3";
break;
}
?>
--CONFIGLINE
./configure --with-mysql=/usr/local/mysql \
--enable-track-vars \
--with-apache=../apache_1.3.22 \
--with-mm=../mm-1.1.3 \
--with-openssl=../openssl-0.9.6c \
--with-config-file-path=/usr/local/lib/php

I don't recall this happening with an earlier version of php.

This just started with 4.1.1

If you need anymore information please let me know





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


-- 
PHP Development Mailing List 
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 #15292 Updated: include() causes maxclients in apache.

2002-01-29 Thread swm

ID: 15292
Updated by: swm
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Feedback
Bug Type: Apache related
Operating System: RedHat 7.1
PHP Version: 4.1.1
New Comment:

Status should have been feedback.


Previous Comments:


[2002-01-30 02:10:12] [EMAIL PROTECTED]

Correct me I am wrong, but you seem to be saying that your
script includes a file via HTTP which is either itself or
another file which includes itself or the original (I cannot
tell from your description). But yes, if a script needs to
include itself than that will create an infinite loop.
There is no way that the scripting engine could preemptively
terminate this loop when HTTP based includes are being used.

Reopen if I have mis-understood.



[2002-01-30 01:59:42] [EMAIL PROTECTED]

http://www.bloodheart.com/php";;
switch ($id) 
{
//test1
case blank1:
$file="$loca/blank1";
break;

//test2
case blank2:
$file="$loca/blank2";
break;
//test (This is where the bug starts.)
//Note if you copy this file to another file and set the default as
thatfilename (with .php ext)
//   Then spawns maxclients for apache, and stays that way forever,
a very nasy loop. or until you restart apache
//*Example*
//default:
//$file="$loca/bug2.php";

default:
$file="$loca/blank3";
break;
}
?>
--CONFIGLINE
./configure --with-mysql=/usr/local/mysql \
--enable-track-vars \
--with-apache=../apache_1.3.22 \
--with-mm=../mm-1.1.3 \
--with-openssl=../openssl-0.9.6c \
--with-config-file-path=/usr/local/lib/php

I don't recall this happening with an earlier version of php.

This just started with 4.1.1

If you need anymore information please let me know





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


-- 
PHP Development Mailing List 
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 #15291 Updated: date() function time return problem

2002-01-29 Thread omid

ID: 15291
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Date/time related
Operating System: Debian
PHP Version: 4.1.1
New Comment:

I get the same result for the following:




Previous Comments:


[2002-01-30 02:08:57] [EMAIL PROTECTED]

Reopening; this should be set to 'Feedback' until the user
confirms that the proposed fix actually works.


Torben



[2002-01-30 01:54:38] [EMAIL PROTECTED]

I cannot replicate this. I think your timezone settings may
be incorrect

[swm@l php-4.1.1]$ ./php

17[swm@l php-4.1.1]# date
Wed Jan 30 17:51:27 EST 2002
[swm@l php-4.1.1]$ TZ=GMT ./php

06[swm@l php-4.1.1]$

gavin



[2002-01-30 01:38:12] [EMAIL PROTECTED]

The date() function is returning the value as GMT time. 
i.e this function and gmdate() produce the same result as 
of php 4.1.1. This was o.k in previous versions






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


-- 
PHP Development Mailing List 
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 #15290 Updated: DirectoryIndex -> index.php must come first

2002-01-29 Thread cardinal

ID: 15290
Updated by: cardinal
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: *Web Server problem
Operating System: rh 7.2
PHP Version: 4.1.1
New Comment:

Just to get one easy thing out of the way, you don't have
an index.html file in the directory, do you?

Naturally, index.php must be first in the DirectoryIndex list
if you want it to be displayed in a directory which contains
both an index.html and an index.php


Previous Comments:


[2002-01-29 23:08:41] [EMAIL PROTECTED]

not a typical setup...i'm developing on a vmware virtual machinebut
everything else has been flawless so maybe this isn't related to that.
latest versions of all, apache, php, samba

When listing
DirectoryIndex index.html index.php 
in apache 

on a smb mounted share aka my scripts are physically on an xp shared
folder, I mount the share using smbmount the folder as a linux
directory which is setup as apaches directory. I've noticed if I list
index.php AFTER index.html that if i edit the index.php file on xp, the
changes will not be seen by the webserver. However it is only with a
file named index.php, all other filenames work fine. Wierd huh? however
if I list index.php first before index.html everything works
perfectly.

Additionally, umounting the share and remounting doesn't fix, only
listing index.php first in directoryindex

Not sure if this happens outside of a virtual machine or a non smb
share, but it was a $#$ tracking down. reinstalled samba & more. 

I had previously been using the 4.06 version and this didn't happen. 

Like I said not sure if is some wierd interaction with the virtual
machine or mounting the share but thought Id pass it on in case it
wasn't related, as its reproducable on my end...I also tried different
server directories i had setup and it occured on those also.







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


-- 
PHP Development Mailing List 
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 #15292 Updated: include() causes maxclients in apache.

2002-01-29 Thread morbid

ID: 15292
Comment by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Apache related
Operating System: RedHat 7.1
PHP Version: 4.1.1
New Comment:

Ok, so there is no way to really stop this? Just let it continue
forever? (Until you restart apache?)
Cause yes that is basicly it, it just includes the file over and over.


Previous Comments:


[2002-01-30 02:18:00] [EMAIL PROTECTED]

Status should have been feedback.



[2002-01-30 02:10:12] [EMAIL PROTECTED]

Correct me I am wrong, but you seem to be saying that your
script includes a file via HTTP which is either itself or
another file which includes itself or the original (I cannot
tell from your description). But yes, if a script needs to
include itself than that will create an infinite loop.
There is no way that the scripting engine could preemptively
terminate this loop when HTTP based includes are being used.

Reopen if I have mis-understood.



[2002-01-30 01:59:42] [EMAIL PROTECTED]

http://www.bloodheart.com/php";;
switch ($id) 
{
//test1
case blank1:
$file="$loca/blank1";
break;

//test2
case blank2:
$file="$loca/blank2";
break;
//test (This is where the bug starts.)
//Note if you copy this file to another file and set the default as
thatfilename (with .php ext)
//   Then spawns maxclients for apache, and stays that way forever,
a very nasy loop. or until you restart apache
//*Example*
//default:
//$file="$loca/bug2.php";

default:
$file="$loca/blank3";
break;
}
?>
--CONFIGLINE
./configure --with-mysql=/usr/local/mysql \
--enable-track-vars \
--with-apache=../apache_1.3.22 \
--with-mm=../mm-1.1.3 \
--with-openssl=../openssl-0.9.6c \
--with-config-file-path=/usr/local/lib/php

I don't recall this happening with an earlier version of php.

This just started with 4.1.1

If you need anymore information please let me know





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


-- 
PHP Development Mailing List 
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 #15291 Updated: date() function time return problem

2002-01-29 Thread torben

ID: 15291
Updated by: torben
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Date/time related
Operating System: Debian
PHP Version: 4.1.1
New Comment:

What do you get from doing the following at a command prompt?

% echo $TZ
% date
% TZ=GMT date


Torben


Previous Comments:


[2002-01-30 02:20:06] [EMAIL PROTECTED]

I get the same result for the following:





[2002-01-30 02:08:57] [EMAIL PROTECTED]

Reopening; this should be set to 'Feedback' until the user
confirms that the proposed fix actually works.


Torben



[2002-01-30 01:54:38] [EMAIL PROTECTED]

I cannot replicate this. I think your timezone settings may
be incorrect

[swm@l php-4.1.1]$ ./php

17[swm@l php-4.1.1]# date
Wed Jan 30 17:51:27 EST 2002
[swm@l php-4.1.1]$ TZ=GMT ./php

06[swm@l php-4.1.1]$

gavin



[2002-01-30 01:38:12] [EMAIL PROTECTED]

The date() function is returning the value as GMT time. 
i.e this function and gmdate() produce the same result as 
of php 4.1.1. This was o.k in previous versions






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


-- 
PHP Development Mailing List 
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 #15292 Updated: include() causes maxclients in apache.

2002-01-29 Thread derick

ID: 15292
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Bogus
Bug Type: Apache related
Operating System: RedHat 7.1
PHP Version: 4.1.1
New Comment:

User include_once to prevent this... not a bug > bogus.

Derick


Previous Comments:


[2002-01-30 02:32:43] [EMAIL PROTECTED]

Ok, so there is no way to really stop this? Just let it continue
forever? (Until you restart apache?)
Cause yes that is basicly it, it just includes the file over and over.



[2002-01-30 02:18:00] [EMAIL PROTECTED]

Status should have been feedback.



[2002-01-30 02:10:12] [EMAIL PROTECTED]

Correct me I am wrong, but you seem to be saying that your
script includes a file via HTTP which is either itself or
another file which includes itself or the original (I cannot
tell from your description). But yes, if a script needs to
include itself than that will create an infinite loop.
There is no way that the scripting engine could preemptively
terminate this loop when HTTP based includes are being used.

Reopen if I have mis-understood.



[2002-01-30 01:59:42] [EMAIL PROTECTED]

http://www.bloodheart.com/php";;
switch ($id) 
{
//test1
case blank1:
$file="$loca/blank1";
break;

//test2
case blank2:
$file="$loca/blank2";
break;
//test (This is where the bug starts.)
//Note if you copy this file to another file and set the default as
thatfilename (with .php ext)
//   Then spawns maxclients for apache, and stays that way forever,
a very nasy loop. or until you restart apache
//*Example*
//default:
//$file="$loca/bug2.php";

default:
$file="$loca/blank3";
break;
}
?>
--CONFIGLINE
./configure --with-mysql=/usr/local/mysql \
--enable-track-vars \
--with-apache=../apache_1.3.22 \
--with-mm=../mm-1.1.3 \
--with-openssl=../openssl-0.9.6c \
--with-config-file-path=/usr/local/lib/php

I don't recall this happening with an earlier version of php.

This just started with 4.1.1

If you need anymore information please let me know





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


-- 
PHP Development Mailing List 
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 #15289 Updated: Global variables do not work with session.

2002-01-29 Thread derick

ID: 15289
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Session related
Operating System: Linux
PHP Version: 4.1.1
New Comment:

1. Using global in a non-function scope doesn't make any sense.
2. When doing 'global $counter' you're setting a reference from
$counter to $GLOBALS['counter'] and thus breaking the reference to the
session hashes

Not a bug (but rather a bug in older versions).
Making this bogus.


Previous Comments:


[2002-01-29 22:13:11] [EMAIL PROTECTED]

Global variable will be registered in session only first time. When you
will be refreshing page with following code, it will count only to 2.



When you remove row with "global $counter;" page will count to 3, 4,
5...

Both variants of code works properly with PHP 4.0.6 (on Windows 2000).





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


-- 
PHP Development Mailing List 
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 #15290 Updated: DirectoryIndex -> index.php must come first

2002-01-29 Thread derick

ID: 15290
Updated by: derick
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: *Web Server problem
Operating System: rh 7.2
PHP Version: 4.1.1
New Comment:

Just wanted to add that Samba might cache files, and thus updating it
has no effect.

Derick


Previous Comments:


[2002-01-30 02:30:34] [EMAIL PROTECTED]

Just to get one easy thing out of the way, you don't have
an index.html file in the directory, do you?

Naturally, index.php must be first in the DirectoryIndex list
if you want it to be displayed in a directory which contains
both an index.html and an index.php



[2002-01-29 23:08:41] [EMAIL PROTECTED]

not a typical setup...i'm developing on a vmware virtual machinebut
everything else has been flawless so maybe this isn't related to that.
latest versions of all, apache, php, samba

When listing
DirectoryIndex index.html index.php 
in apache 

on a smb mounted share aka my scripts are physically on an xp shared
folder, I mount the share using smbmount the folder as a linux
directory which is setup as apaches directory. I've noticed if I list
index.php AFTER index.html that if i edit the index.php file on xp, the
changes will not be seen by the webserver. However it is only with a
file named index.php, all other filenames work fine. Wierd huh? however
if I list index.php first before index.html everything works
perfectly.

Additionally, umounting the share and remounting doesn't fix, only
listing index.php first in directoryindex

Not sure if this happens outside of a virtual machine or a non smb
share, but it was a $#$ tracking down. reinstalled samba & more. 

I had previously been using the 4.06 version and this didn't happen. 

Like I said not sure if is some wierd interaction with the virtual
machine or mounting the share but thought Id pass it on in case it
wasn't related, as its reproducable on my end...I also tried different
server directories i had setup and it occured on those also.







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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PECL/PHPDoc

2002-01-29 Thread Sebastian Bergmann

  'lo,

  could someone please fix, if possible, the PHPDoc extension from PECL
  so that it compiles in ZTS mode?

  Thanks,
Sebastian

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

-- 
PHP Development Mailing List 
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 #8785 Updated: getlastmod returns 0 when run in NES in CGI mode

2002-01-29 Thread lobbin

ID: 8785
Updated by: lobbin
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: No Feedback
Bug Type: Filesystem function related
Operating System: AIX 4.3.2
PHP Version: 4.0.4
New Comment:

No feedback.


Previous Comments:


[2002-01-07 10:17:48] [EMAIL PROTECTED]

Can you test behaviour with PHP 4.1.1?



[2001-10-26 03:51:04] [EMAIL PROTECTED]

whether, It should matter.
when php binary run from command line. the 'file.php' is already open
while
when php binary run from web server as cgi interpreter (from NES, now
iplanet)
the 'file.php' was not opened and php don't walk the same branch of
code

see my other bug report #8782

Sorry I don't test with php 4.0.6




[2001-10-20 21:07:27] [EMAIL PROTECTED]

It shouldn't matter if the same binary is run from command
line or by webserver. Or did you mean that it doesn't 
work with the PHP compiled as NSAPI module ?

And does this happen with PHP 4.0.6 ?

--Jani




[2001-01-18 11:14:59] [EMAIL PROTECTED]

The PHP function getlastmod always return 0 when I use it with PHP cgi
4.0.4 and Netscape E.S. 3.51. When I run the same script (with the
same
PHP of course) starting from Shell, not from N.E.S., all is well.

Ideas ?






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


-- 
PHP Development Mailing List 
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 #15292 Updated: include() causes maxclients in apache.

2002-01-29 Thread morbid

ID: 15292
Comment by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Apache related
Operating System: RedHat 7.1
PHP Version: 4.1.1
New Comment:

Ok, so if someone is running a site (For users) the users could do this
and cause sites to go down with just a few lines of code?

adding include_once; didn't work unless it occompanied by return; 

eg...
//test (This is where the bug starts.) 
default:
$file="$loca/bug2.php";
return;
}
include_once($file);

There should be some sort of limit on this? Unless there is and I don't
know of it. if there is I'm sorry. I have searched for something like
this and haven't come across anything.

Jason


Previous Comments:


[2002-01-30 02:41:58] [EMAIL PROTECTED]

User include_once to prevent this... not a bug > bogus.

Derick



[2002-01-30 02:32:43] [EMAIL PROTECTED]

Ok, so there is no way to really stop this? Just let it continue
forever? (Until you restart apache?)
Cause yes that is basicly it, it just includes the file over and over.



[2002-01-30 02:18:00] [EMAIL PROTECTED]

Status should have been feedback.



[2002-01-30 02:10:12] [EMAIL PROTECTED]

Correct me I am wrong, but you seem to be saying that your
script includes a file via HTTP which is either itself or
another file which includes itself or the original (I cannot
tell from your description). But yes, if a script needs to
include itself than that will create an infinite loop.
There is no way that the scripting engine could preemptively
terminate this loop when HTTP based includes are being used.

Reopen if I have mis-understood.



[2002-01-30 01:59:42] [EMAIL PROTECTED]

http://www.bloodheart.com/php";;
switch ($id) 
{
//test1
case blank1:
$file="$loca/blank1";
break;

//test2
case blank2:
$file="$loca/blank2";
break;
//test (This is where the bug starts.)
//Note if you copy this file to another file and set the default as
thatfilename (with .php ext)
//   Then spawns maxclients for apache, and stays that way forever,
a very nasy loop. or until you restart apache
//*Example*
//default:
//$file="$loca/bug2.php";

default:
$file="$loca/blank3";
break;
}
?>
--CONFIGLINE
./configure --with-mysql=/usr/local/mysql \
--enable-track-vars \
--with-apache=../apache_1.3.22 \
--with-mm=../mm-1.1.3 \
--with-openssl=../openssl-0.9.6c \
--with-config-file-path=/usr/local/lib/php

I don't recall this happening with an earlier version of php.

This just started with 4.1.1

If you need anymore information please let me know





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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]