[PHP-DEV] Bug #9177 Updated: crypt problems with openssl

2001-05-12 Thread max

ID: 9177
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: *Encryption and hash functions
Operating system: linux 2.2.18 (rh 6.2)
PHP Version: Latest CVS
Description: crypt problems with openssl

no luck:

# make distclean
# ./cvsclean
# cvs update -d

(upgrade libtool to 1.4)

# ./buildconf
# ../php.mod.config

---CONFIGURE DIES---
Configuring extensions
checking if the location of ZLIB install directory is defined... yes
checking whether to include ZLIB support... yes
checking for gzgets in -lz... no
configure: error: Zlib module requires zlib = 1.0.9
---CONFIGURE DIES---

--CONFIG.LOG--
configure:8640: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/security/openssl/lib 
-L/usr/local/security/openssl/lib conftest.c
 -lcrypt  -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lresolv 15
configure:8694: checking if the location of ZLIB install directory is defined
configure:8739: checking whether to include ZLIB support
configure:8935: checking for gzgets in -lz
configure:8954: gcc -o conftest -g -O2   -Wl,-rpath,/usr/local/security/openssl/lib 
-L/usr/local/security/openssl/lib conftest.c
 -lz  -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lresolv 15
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
configure: failed program was:
#line 8943 configure
#include confdefs.h
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply.  */
char gzgets();

int main() {
gzgets()
; return 0; }
--CONFIG.LOG--

--PHP.MOD.CONFIG--
PROG_SENDMAIL=/usr/local/sbin/sendmail \
  ./configure \
--prefix=/usr/local/services/apache-1.3.19 \
--with-config-file-path=/usr/local/services/apache-1.3.19/conf \
--with-apache=../apache_1.3.19 \
--with-gnu-ld \
--with-exec-dir=/usr/local/services/apache-1.3.19/exec \
--with-mysql=/usr/local/services/mysql \
--with-imap=/usr/local/devel/c-client \
--with-imap-ssl \
--with-openssl=/usr/local/security/openssl \
--with-gdbm=/usr/local/devel/gdbm \
--with-zlib=/usr/local/devel/zlib \
--with-gd=/usr/local/devel/gd \
--with-jpeg-dir=/usr/local/devel/jpeg \
--with-png-dir=/usr/local/devel/png \
--with-zlib-dir=/usr/local/devel/zlib \
--with-gettext=/usr/local/devel/gettext \
--with-ldap=/usr/local/services/openldap \
--enable-sockets \
--enable-ftp \
--enable-url-includes
--PHP.MOD.CONFIG--

# ls /usr/local/devel/zlib/*
/usr/local/devel/zlib/include:
zconf.h  zlib.h

/usr/local/devel/zlib/lib:
libz.a

Previous Comments:
---

[2001-05-11 19:02:30] [EMAIL PROTECTED]
Please try the latest CVS as there have been a couple
of fixes which should fix the problems with zlib you had.

--Jani


---

[2001-04-23 19:43:22] [EMAIL PROTECTED]
It doesn't seem like it was fixed.  From CVS checked about about 30 minutes ago, 
configure says:

checking for MD5 crypt... no

And a simple script that is supposed to return an md5 crypted string, returns a DES 
crypted string.

--BEG SCRIPT--
?= crypt('rasmuslerdorf', '$1$rasmusle$'); ?
--END SCRIPT--

--BEG OUTPUT--
$1Hat1hn6A1pw
--END OUTPUT--

When php is compiled without openssl, the correct output is acquired which is:

$1$rasmusle$rISCgZzpwk3UhDidwXvin0

(I hope it is alright to re-open the bug)

---

[2001-04-23 03:34:55] [EMAIL PROTECTED]
Fixed in CVS.

--Jani


---

[2001-02-18 16:41:52] [EMAIL PROTECTED]
My bad. It was only discussed about, not fixed..

--Jani


---

[2001-02-15 11:35:43] [EMAIL PROTECTED]
IIRC this is fixed already in CVS so please try the latest CVS snapshot 
from http://snaps.php.net/

--Jani


---

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

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


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




Re: [PHP-DEV] Re: unable to 'make'

2001-05-12 Thread Markus Fischer

On Sat, May 12, 2001 at 04:16:30AM +0200, Jani Taskinen wrote : 
 The bundled expat-lib in PHP is fucked up in CVS at the moment due to
 untested commit. You just have to wait until this has been reverted
 or fixed.

As a 'hack' you could install normal expat on your system
(on debian expat.h which is missing is in /usr/include/ so the
compile continues). But haven't tested it tough . . . 

- Markus

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




[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/xml config.m4 php_xml.h xml.c/ext/xml/expat Changes Makefile.in README README.php ascii.h asciitab.hexpat.html iasciitab.h latin1tab.h nametab.h utf8tab.h xmlparse.cxmlrole.c xmlrole.h xmltok.c xmltok.h xmltok_impl.c

2001-05-12 Thread Thies C. Arntzen

On Sat, May 12, 2001 at 12:05:21AM +0200, Sebastian Bergmann wrote:
 Thies C. Arntzen wrote:
Log:
bump bundled expat to 1.95.1
win32 project _needs_ updating and i don't have windows
 
   I can't built the latest CVS on Linux:
 
 In file included from wddx.c:39:
 /usr/src/php4/ext/xml/php_xml.h:38: expat.h: No such file or 
 directory

added - thanx.

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




Re: [PHP-DEV] bolt on libraries

2001-05-12 Thread Darren


Sean R. Bright [EMAIL PROTECTED] wrote in message
001601c0d8a0$c67aafb0$9865fea9@cc230545b">news:001601c0d8a0$c67aafb0$9865fea9@cc230545b...
 Have a look at:

 http://www.zend.com/zend/api.php

Thanks Sean :-)

isn't that typical? you find some decent documentation in the stuff an its
thicker than the bible




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




Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/xml config.m4 php_xml.hxml.c/ext/xml/expat Changes Makefile.in README README.php ascii.hasciitab.hexpat.html iasciitab.h latin1tab.h nametab.h utf8tab.hxmlparse.cxmlrole.c xmlrole.h xmltok.c xmltok.h xmlt

2001-05-12 Thread Sebastian Bergmann

Thies C. Arntzen wrote:
 added - thanx.

  I still get the same error message. Are there modifications needed to
ext/wddx, which relies on ext/xml or expat?

-- 
 sebastian bergmann[EMAIL PROTECTED]
   http://www.sebastian-bergmann.de

 bonn.phpug.de | www.php.net | www.phpOpenTracker.de | www.titanchat.de

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




Re: [PHP-DEV] zval_copy_ctor

2001-05-12 Thread Andi Gutmans

At 02:42 AM 5/12/2001 +0100, Wez Furlong wrote:
Hi,

In my mailparse extension I am building up an array to contain the headers
while parsing the message.  The array is held in a zval in the internal C
structure, one for each message part.

When the user space code requests info for a particular message part it
is returned as an assoc. array. One of the keys contains the headers;

eg:

$info = array(
content-type = text/plain,
headers = array(
to = [EMAIL PROTECTED],
from = [EMAIL PROTECTED]
)
);

So far, to do this I am using this code:

zval * headers;

MAKE_STD_ZVAL(headers);
*headers = *rfcbuf-headers;
if (zval_copy_ctor(headers) == SUCCESS)  {
zend_hash_update(HASH_OF(return_value), headers,
strlen(headers) + 1, headers, sizeof(headers)
NULL);
}

where rfcbuf-headers is a zval * created using MAKE_STD_ZVAL and
array_init.

It seems to work OK.

Is it correct?  The ZendAPI docs aren't 100% clear about using the copy
constructor, and I am experiencing intermittent segfaults in a specific
part of my application that uses this code.

The code is almost OK. The only problem is that the reference count and 
is_ref from rfcbuf-headers are also copied to *headers. So what you should 
be doing (if you only add it once to the return_value) is to do 
INIT_PZVAL(headers) before the hash_update so that they are reset to 
refcount=1 is_ref=0.
Also a small tip, use sizeof(headers) instead of strlen(headers)+1. It 
is much faster as it is evaluated at compile-time.
And by the way, zval_copy_ctor does recursive copy constructing so your 
code is OK.

Andi


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




[PHP-DEV] Bug #10825: mysql_field_name() won't return element 0

2001-05-12 Thread norny

From: [EMAIL PROTECTED]
Operating system: Win98 and Linux 2.4.4
PHP version:  4.0.5
PHP Bug Type: MySQL related
Bug description:  mysql_field_name() won't return element 0

I can't get mysql_field_name() to return the field name of
position 0 in the mysql result from my query. All subsiquent
field names appear, just not the first one. I even tried
just forcing a 0 in the position instead of the incremented
variable:

$result = mysql_query ( $sql );
while($db_content = mysql_fetch_row($result)) {
  for($i=0; $i  sizeof($db_content); $i++) {
echo mysql_field_name($result, 0);
  }
}

That code doesn't output anything whereas if I replace the 0
in mysql_field_name() with $i, it prints the field names of
all but my first column.


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



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




[PHP-DEV] Bug #10826:

2001-05-12 Thread hwy21

From: [EMAIL PROTECTED]
Operating system: UnixWare7.1.0
PHP version:  4.0.5
PHP Bug Type: *Install and Config
Bug description:  

My problem:
My Operating System is UnixWare7.1.0.
My Database is Oracle8i 8.1.5 for UnixWare.
I have two servers:one is the Database server,and the other is web
server.
On the Database server,My database home directory is /OraHome/O8I/
On the Web server,My client database home directory is /OraHome
My web software will be apache_1.3.19,and php version is 4.0.5.
After I use the command line:./configure --with-apache=/usr/local/apache_1.3.19 
--with-oracle=/OraHome --with-oci8=/OraHome --enable-track-vars,I use the command line 
make,then system prompt me the 'oci.h' file was not found.
Can you help me ?


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



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




[PHP-DEV] Re: [PHP-QA] RE: [PHP-DEV] Re: [PHP-QA] Modifications to Windows Readme file

2001-05-12 Thread Phil Driscoll

On Friday 11 May 2001 23:26, Richard Lynch wrote:
 If you ignore it, you'll continue the problem:  People attempt to install
 PHP with PWS on Win95/98 and get frustrated, and have to dig all over
 creation to find install instructions that should have been in the PHP
 release.

What I'm suggesting that we ignore is the fact that PWS4 on NTWS might for 
legacy reasons look at the registry - although I have no evidence that it 
does other than the old PHP installation instructions.

The new installation instructions I've submitted to the phpdoc team give 
instructions on fiddling with the registry for W9x/ME users, and updating the 
IIS metabase for IIS4+/PWS4+ users on NT server, NTWS and W2K.

In other words, I believe that the new instructions are both consistent and 
correct :)

Cheers
-- 
Phil Driscoll

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




[PHP-DEV] Bug #10827: error when type make

2001-05-12 Thread turk

From: [EMAIL PROTECTED]
Operating system: Slackware 7.1
PHP version:  4.0.5
PHP Bug Type: Compile Failure
Bug description:  error when type make

microtime.lo
microtime.c: In function `php_if_getrusage':
microtime.c:99: storage size of `usg' isn't known
microtime.c:102: `RUSAGE_SELF' undeclared (first use in this function)
microtime.c:102: (Each undeclared identifier is reported only once
microtime.c:102: for each function it appears in.)
microtime.c:108: `RUSAGE_CHILDREN' undeclared (first use in this function)
make[3]: *** [microtime.lo] Error 1
make[3]: Leaving directory `/usr/src/php-4.0.5/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-4.0.5/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.0.5/ext'
make: *** [all-recursive] Error 1


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



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




Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/xml config.m4 php_xml.hxml.c/ext/xml/expat Changes Makefile.in README README.php ascii.hasciitab.hexpat.html iasciitab.h latin1tab.h nametab.h utf8tab.hxmlparse.cxmlrole.c xmlrole.h xmltok.c xmltok.h xmlt

2001-05-12 Thread Thies C. Arntzen

On Sat, May 12, 2001 at 11:09:45AM +0200, Sebastian Bergmann wrote:
 Thies C. Arntzen wrote:
  added - thanx.
 
   I still get the same error message. Are there modifications needed to
 ext/wddx, which relies on ext/xml or expat?

no - works for me - have you done 
./cvsclean; ./buildconf

tc


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




Re: [PHP-DEV] zval_copy_ctor

2001-05-12 Thread Wez Furlong

On 2001-05-12 04:29:19, Jason Greene [EMAIL PROTECTED] wrote:
 zval_copy_ctor used on an array makes a reference copy of the array.
 Basically, it just copies all the data items in the hashtable and then
adds one to the 
 reference count for all data items. 
 
 Looking at the code, it appears to not recursively copy into nested
arrays.
 (Could be part of your problem)
 Since this is a reference copy, you can not free the memory used by 
 the array you are copying. I am assuming that this is the cause of your
default.

Strange stuff.
Is there a nice handy API to copy the array completely?
I switched to zval_copy_ctor from a manually maintained hash table and
copying loop for readability; it's a shame to have to switch back.

I'll dig a bit more; I've just thought of another piece of code that might
be the culprit...

--Wez.


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




Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/xml config.m4php_xml.hxml.c/ext/xml/expat Changes Makefile.in README README.phpascii.hasciitab.hexpat.html iasciitab.h latin1tab.h nametab.hutf8tab.hxmlparse.cxmlrole.c xmlrole.h xmltok.c xmltok.h xmlt

2001-05-12 Thread Sebastian Bergmann

Thies C. Arntzen wrote:
 no - works for me - have you done
 ./cvsclean; ./buildconf

  *autsch*

-- 
 sebastian bergmann[EMAIL PROTECTED]
   http://www.sebastian-bergmann.de

 bonn.phpug.de | www.php.net | www.phpOpenTracker.de | www.titanchat.de

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




[PHP-DEV] Bug #9819 Updated: Updating HTTP_SESSION_VARS[] doesn't works

2001-05-12 Thread akul

ID: 9819
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: *Session related
Operating system: Windows 98 SE
PHP Version: 4.0.4pl1
Description: Updating HTTP_SESSION_VARS[] doesn't works

In the 4.0.5 result the same. I don't think that this is file problem, this is must be 
scripting engine problem. Session file for this bug:

!counter1|counter2|i:18;

I will try the last snapshot if can to download it..

Previous Comments:
---

[2001-05-11 15:14:27] [EMAIL PROTECTED]
Please check to see if this is still happening in 4.0.5.  If it is, please try to get 
a snapshot dated AFTER today as there was a patch just place in regarding file locking 
permissions.

---

[2001-03-18 08:30:06] [EMAIL PROTECTED]
?php
session_start();
if(!session_is_registered('counter1')) session_register('counter1');
if(!session_is_registered('counter2')) session_register('counter2');

$HTTP_SESSION_VARS['counter1']++;
$counter2++;

?HTMLBODY
P?php 
echo 'Counter1='.$HTTP_SESSION_VARS['counter1'].', 
Counter2='.$HTTP_SESSION_VARS['counter2']; ?/P
/BODY/HTML

Press Reload ten times and you have:
Counter1=1, Counter2=10


System  Windows 95/98 4.10
Build Date  Jan 12 2001
Server API Apache
Virtual Directory Support enabled
ZEND_DEBUG   disabled
Thread Safetyenabled

[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 overriden 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 ;


engine  =   On  ; Enable the PHP scripting language engine 
under Apache
short_open_tag  =   On  ; allow the ? tag.  otherwise, only ?php and 
script tags are recognized.
asp_tags=   On ; allow ASP-style % % tags
precision   =   14  ; number of significant digits displayed in 
floating point numbers
y2k_compliance  =   Off ; whether to be year 2000 compliant (will cause 
problems with non y2k compliant browsers)
output_buffering= Off   ; Output buffering allows you to send header lines 
(including cookies)
; even after you send body 
content, in the price of slowing PHP's
; output layer a bit.
; You can enable output 
buffering by in runtime by calling the output

Re: [PHP-DEV] zval_copy_ctor

2001-05-12 Thread Wez Furlong

On 2001-05-12 10:12:14, Andi Gutmans [EMAIL PROTECTED] wrote:
 The code is almost OK. The only problem is that the reference count and

 is_ref from rfcbuf-headers are also copied to *headers. So what you
should 
 be doing (if you only add it once to the return_value) is to do 
 INIT_PZVAL(headers) before the hash_update so that they are reset to 
 refcount=1 is_ref=0.

Like this?

zval * headers;

MAKE_STD_ZVAL(headers);
*headers = *rfcbuf-headers;
INIT_PZVAL(headers);
if (zval_copy_ctor(headers) == SUCCESS)  {
zend_hash_update(HASH_OF(return_value), headers,
sizeof(headers), headers, sizeof(headers)
NULL);
}

 And by the way, zval_copy_ctor does recursive copy constructing so your

 code is OK.

Great; that's a relief :-)

Thanks!

--Wez.




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




[PHP-DEV] Latest CVS on Linux

2001-05-12 Thread Sebastian Bergmann

  Hello there,

  yesterday I upgraded my SuSE 7.1 Linux box to libtool-1.4. I
downloaded the libtool-1.4 sources from gnu.org, did './configure' and
'make' in the source directory. A 'make check' ran fine, and 'make
install' worked also.

  With the current CVS (HEAD) I get lots of error messages related to
libtool.

  In order to save bandwith on this list, I put the output of buildconf,
configure and make online

  ./buildconf - http://www.sebastian-bergmann.de/buildconf.txt
  ./configure - http://www.sebastian-bergmann.de/configure.txt
  make- http://www.sebastian-bergmann.de/make.txt

-- 
 sebastian bergmann[EMAIL PROTECTED]
   http://www.sebastian-bergmann.de

 bonn.phpug.de | www.php.net | www.phpOpenTracker.de | www.titanchat.de

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




Re: [PHP-DEV] zval_copy_ctor

2001-05-12 Thread Andi Gutmans

At 11:28 AM 5/12/2001 +0100, Wez Furlong wrote:
On 2001-05-12 10:12:14, Andi Gutmans [EMAIL PROTECTED] wrote:
  The code is almost OK. The only problem is that the reference count and

  is_ref from rfcbuf-headers are also copied to *headers. So what you
should
  be doing (if you only add it once to the return_value) is to do
  INIT_PZVAL(headers) before the hash_update so that they are reset to
  refcount=1 is_ref=0.

Like this?

zval * headers;

MAKE_STD_ZVAL(headers);
*headers = *rfcbuf-headers;
INIT_PZVAL(headers);
if (zval_copy_ctor(headers) == SUCCESS)  {
 zend_hash_update(HASH_OF(return_value), headers,
 sizeof(headers), headers, sizeof(headers)
 NULL);
}

Yep that's good.
By the way, another thing. You don't have to do the zval_copy_ctor() == 
SUCCESS either. I guess it is more correct but we don't do it anywhere in 
our code and if it ever happens we're screwed anyway. It could probably 
return void but I'd have to go back in time and think why it was done the 
way it was :)

Andi


  And by the way, zval_copy_ctor does recursive copy constructing so your

  code is OK.

Great; that's a relief :-)

Thanks!

--Wez.


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




Re: [PHP-DEV] zval_copy_ctor

2001-05-12 Thread Zeev Suraski

At 14:39 12/5/2001, Andi Gutmans wrote:
By the way, another thing. You don't have to do the zval_copy_ctor() == 
SUCCESS either. I guess it is more correct but we don't do it anywhere in 
our code and if it ever happens we're screwed anyway. It could probably 
return void but I'd have to go back in time and think why it was done the 
way it was :)

It can't really fail today, other than failing for out-of-memory, in which 
we bail straight out...

Zeev


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




[PHP-DEV] Bug #10828: sometimes get_extension_funcs() kills PHP

2001-05-12 Thread jo

From: [EMAIL PROTECTED]
Operating system: Linux 2.4.4
PHP version:  4.0.5
PHP Bug Type: PHP options/info functions
Bug description:  sometimes get_extension_funcs() kills PHP

I tried to print out all available PHP functions using 
get_loaded_extensions() and get_extension_funcs():
?php
print(h3PHP . phpversion() . /h3\n);
print(ol\n);
$ext = get_loaded_extensions();
sort($ext);
for($i = 0; $i  count($ext); $i++) {
$name = $ext[$i];
print(lib$name/b:/li\nol\n);
$func = get_extension_funcs($name);
sort($func);
for($j = 0; $j  count($func); $j++) {

print(licode$func[$j]()/code/li\n);
}
print(/ol\n);
}
print(/ol\n);
?
and this worked well with PHP4.0.3pl1.
However, since PHP4.0.4pl1/5, the Apache (1.3.19) 
subprocess dies:
[Sat May 12 14:26:49 2001] [notice] child pid 746 exit 
signal Segmentation fault (11)
When commenting out the get_extension_funcs() call, all is 
well. Even replacing the argument to a const (eg. 
get_extension_funcs(exif) ) works.
I tried to reproduce the error in a more simple way, but 
failed:
?php
$name = exif;
print_r(get_extension_funcs($name));
?
works as expected. Still the script above fails.



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



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




Re: [PHP-DEV] zval_copy_ctor

2001-05-12 Thread Wez Furlong

Hi,

I would like to see an add_assoc_zval() macro to complement the other add_
functions.

Just thought that I would throw that in while there are a couple of threads
in the Zend API... :-)

--Wez.


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




Re: [PHP-DEV] zval_copy_ctor

2001-05-12 Thread Andi Gutmans

At 11:50 AM 5/12/2001 +0100, Wez Furlong wrote:
Hi,

I would like to see an add_assoc_zval() macro to complement the other add_
functions.

There is an add_assoc_zval() function.

Andi


Just thought that I would throw that in while there are a couple of threads
in the Zend API... :-)

--Wez.


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




Re: [PHP-DEV] Latest CVS on Linux

2001-05-12 Thread Wez Furlong

On 2001-05-12 12:10:57, Sebastian Bergmann [EMAIL PROTECTED]
wrote:
   Hello there,
 
   yesterday I upgraded my SuSE 7.1 Linux box to libtool-1.4. I

I'm using SuSE 7.0 and I had a similar problem.

On my first run, I let libtool go into /usr/local (the default).  After the
warnings,  I decided to reverse that and put it into /usr.

I did this to get it to work, but I expect there is a better way:

Index: buildcheck.sh
===
RCS file: /repository/php4/build/buildcheck.sh,v
retrieving revision 1.8
diff -u -r1.8 buildcheck.sh
--- buildcheck.sh   2001/05/06 18:51:21 1.8
+++ buildcheck.sh   2001/05/12 12:44:32
@@ -81,11 +81,13 @@
 fi

 am_prefix=`which automake | sed -e 's#/[^/]*/[^/]*$##'`
-lt_prefix=`which $libtool | sed -e 's#/[^/]*/[^/]*$##'`
+lt_prefix=`echo $libtool | sed -e 's#/[^/]*/[^/]*$##'`
 if test $am_prefix != $lt_prefix; then
 echo WARNING: automake and libtool are installed in different
 echo  directories.  This may cause aclocal to fail.
 echo  continuing anyway
+which automake
+echo $libtool
 fi

 exit 0

The problem is the $libtool includes full path to libtool, and the script
didn't expect that and failed to notice it.

Hope that helps: I'm not entirely sure if that is the full story...

--Wez.


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




Re: [PHP-DEV] zval_copy_ctor

2001-05-12 Thread Wez Furlong

On 2001-05-12 13:45:25, Andi Gutmans [EMAIL PROTECTED] wrote:
 At 11:50 AM 5/12/2001 +0100, Wez Furlong wrote:
 I would like to see an add_assoc_zval() macro to complement
 There is an add_assoc_zval() function.

Doh!
I wonder why I didn't see it before...

--Wez.


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




[PHP-DEV] Bug #10829: call_user_func() - Bug

2001-05-12 Thread stefan

From: [EMAIL PROTECTED]
Operating system: Win2K, Solaris
PHP version:  4.0.5
PHP Bug Type: Scripting Engine problem
Bug description:  call_user_func() - Bug

Hi,

I have found the following bug with the function call_user_func():

If the user function you are trying to call with 'call_user_func' requires any of its 
parameters to be passed by reference, PHP issues a warning stating that the function 
doesn't exist.

Example:

?php
function testme($param) {
 var_dump($param);
}

$func = testme;
$param = array(1, 2);

call_user_func($func, $param);

?

Result:

br
bWarning/b:  Unable to call testme() - function does not exist in bt.php/b on 
line b1/bbr

Regards,
Stefan Livieratos


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



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




Re: [PHP-DEV] Bug #10829: call_user_func() - Bug

2001-05-12 Thread Thies C. Arntzen

On Sat, May 12, 2001 at 02:23:44PM -, [EMAIL PROTECTED] wrote:
 From: [EMAIL PROTECTED]
 Operating system: Win2K, Solaris
 PHP version:  4.0.5
 PHP Bug Type: Scripting Engine problem
 Bug description:  call_user_func() - Bug
 
 Hi,
 
 I have found the following bug with the function call_user_func():
 
 If the user function you are trying to call with 'call_user_func' requires any of 
its parameters to be passed by reference, PHP issues a warning stating that the 
function doesn't exist.
 
 Example:
 
 ?php
 function testme($param) {
  var_dump($param);
 }
 
 $func = testme;
 $param = array(1, 2);
 
 call_user_func($func, $param);
 
 ?
 
 Result:
 
 br
 bWarning/b:  Unable to call testme() - function does not exist in bt.php/b 
on line b1/bbr

if you take out the  in the testme argument list it works -
even weirder.

tc

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




[PHP-DEV] PHP 3.0 Bug Summary Report

2001-05-12 Thread php-dev

 PHP 3.0 Bug Database summary - http://bugs.php.net

 Num Status Summary (536 total including feature requests)
===[*General Issues]==
4180 Open   is_link returns false when target doesnt exist (should return true)
9610 Bogus  Dead link
9820 Open   File upload with any input tag
10101 Bogus  apache + mysqld + php3   == libphp3.so incorrect symbol...
10457 Bogus  ALKHOBAR
===[*Install and Config]==
7386 Feedback   referenced symbol not found when starting Apache
===[Compile Failure]==
1145 Open   Ypu cannot compile with --with-ldap using the Solaris7 bundled 
ldap-libs/header
1298 Open   need to use -taso with Netscape LDAP libs
1461 Open   won't compile with Stronghold 2.2 or 2.3
1933 Open   Unable to compile PHP3 with Oracle8 support
1997 Open   Compilation Problems
2225 Open   Compile error in ldap.c
2282 Open   Compile failure with Stronghold 2.4.1
2490 Open   Perl regular expression functions not available in windows binary
2585 Open   Error linking Oracle 7.3.2 libraries on SCO OpenServer 5.0.4
2658 Open   error while compiling PHP as apache module
2729 Open   Fatal error: Unable to open ???  in - on line 0
2751 Open   Storage size of buf isn't known
2823 Open   undefined symbol: SQLParamData
2824 Open   Inconsistent parameter list declaration for...
2903 Open   fails to compile ifx.ec, report a syntax-error
3033 Open   Fatal compile error on functions/ldap.c
3185 Open   Undefined symbol
3217 Open   ld error when compiling as Apache DSO and --with-mysql
3218 Open   Can't compile php_ftp.dll
3426 Open   make with iodbc failed and I've found the problem
3501 Open   Compiling errors with Oracle-Funktions
3528 Open   Can't compile php 3.0.14 with Oracle support
3677 Open   files not found
3766 Open   configure doesn't allow for the Oracle N32 client SDK to be used
3776 Open   functions/db.c:107: parse error before '*'
4028 Open   wrong directories included for oracle 8.1.6
4217 Open   IBM DB2 will not compile.
4233 Open   The Interbase module won't compile.
4266 Open   Undeclared variables in function/imap.c starting ar line 435
4392 Open   Compile failure with GD 1.7, possibly others
4412 Open   xml failure
4417 Open   Informix specific parse error in functions/ifx.ec
4544 Open   Incompatiblility with latest (3.0) version of PDFlib
4899 Open   PHP Core Dumps With Apache 1.3.12
7734 Open   missing php3_ifx.h
===[Compile Warning]==
3151 Open   php.exe compile warnings because of arpa/inet.h
6942 Open   php sockets unusable with irix-OS
===[dBase related]
3091 Open   dbase_replace_record miscounts number of fields
3429 Open   Warning: Unable to open database...
4802 Open   php.exe crashes while trying to execute the get_record function
===[DBM/DBA related]==
2890 Open   DBM extension on win32 does not valid database identifier error
3371 Open   dbmfetch reurns an empty string
3423 Open   dbmopen() not thread-safe
3809 Duplicate  DBM extension for Win32 PHP3 is malfunctioning and/or has a flaw
3862 Open   dbmReplace  dbmDelete return inverse value
6720 Open   persistent Warning: driver initialization failed on db_open db2 2.7.7
===[Dynamic loading related]==
1188 Open   Configuration not work
1586 Open   In the compiled Win32 package, the php3_ldap doesn't load.
1993 Open   Startup failure of liphp3.so
2027 Open   Can't dynamicly load any extension dll file
2250 Open   nt-service problem
2414 Open   php3_vmailmgr.so refuses to load
2862 Open   LDAP in Win32 Bin dist is linked to MSVCRTD.DLL
3168 Open   cannot start apache 1.3.9 if mysql is compiled in, but can RESTART 
successfully
3292 Open   MySQL module causes DSO to fail.
3321 Open   Apache Complaining about undefined symbol: dlst_first
3659 Open   mod_php + apache w/mod_so hangs in sched_yield
3680 Open   Apache won't start after install php3
3752 Open   Apache configtest dumps core with DSO  versioning
3781 Open   Cannot load /libexec/libphp3.so
3861 Open   php as a dyn. mod.  configured with IBM db2 support prevents svr 
startup
9565 Open   php3_ldap.dll is compiled as DEBUG
===[IMAP related]=
2816 Open   Imap_open error when user_id length=3 char
2847 Open   imap_search - dates don't work
3040 Duplicate  imap_open
3236 Open   Email message bodies show as mime type application/octet-stream/plain
3843 Open   seg fault when recieving 

[PHP-DEV] PHP 4.0 Bug Summary Report

2001-05-12 Thread php-dev

 PHP 4.0 Bug Database summary - http://bugs.php.net

 Num Status Summary (1348 total including feature requests)
===[*Database Functions]==
8706 Feedback   Database handle corruption?
===[*Directory/Filesystem functions]
9697 Open   filename ends with £
9912 Open   exec calls run programs in the document root: different than PHP3
9993 Open   Wrong File Created Date and Wrong Filesize
10388 Open   File to file I/O problems
10439 Open   relative chdir from root doesn´t work
===[*Encryption and hash functions]
10822 Open   CRYPT_SALT_LENGTH == 2 even when CRYPT_MD5 available
===[*Function Specific]===
8202 Feedback   exec(java -cp classpath classname inputArgument); has no effect
8563 Feedback   hebrevc() problems...
8857 Open   microtime() doesn't work after setlocale(LC_NUMERIC,pl)
10120 Open   implode(), if empty elements exist
10564 Open   feof bug isn't fixed in windows versions.
10702 Open   levenshtein doesn't handle odd arguments well
===[*General Issues]==
3076 Analyzed   system and popen are ok in safe_mode, not backquotes
5236 Open   dlerror - conflicting declerations
6499 Analyzed   $upload_type[] has wrong size with empty multiple-file uploads
6685 Analyzed   %20 mis-converted in GET mechanism
6875 Duplicate  upload_tmp_dir in php.ini doesn't work in safe_mode
7243 Duplicate  upload_tmp_dir does not work in safe_mode
7685 Open   File Upload Fails with Headers in Unexpected Order
9757 Open   Php.exe Process doesnt kill itself
9827 Open   Floating point exception when starting apache
10026 Open   For loop always execute
10076 Feedback   NULL entry calling
10135 Open   Problem(?) with environment variables when running as module
10288 Open   weird intval() and settype('integer') behaviour: loosing bits?
10319 Open   multipart/form-data does not work with Opera browser
10364 Open   Exec and system always return -1
10467 Open   static array doesn't evaluate defined keys
===[*Install and Config]==
6614 Feedback   configure does not recognize sys/socket.h
7280 Duplicate  global iniline not supported in SGI Compiler
7731 Open   compilation with deprecated abi (no -n32)
7959 Open   ld: 0711-317 ERROR: Undefined symbol: .alloca
8862 Suspended  libtool does not code runpath into libphp4.so
8918 Open   Fails when linking
9063 Open   Configure gives errors regarding Payflow Pro
9078 Open   php] make install
9085 Feedback   tar file is corrupted in your web site
9179 Open   refresh error
9239 Open   configure tests incorrectly for IPv6
9287 Open   Stronghold only start one process  when using DSO PHP4 with OCI8 
support
9448 Open   It does not works / -cpath   Look for php.ini file in this 
directory
9711 Open   Fatal Error while trying to install
9773 Open   Configure hangs
9856 Open   Missing run path in shared object library
10178 Open   Configuration of extensions
10239 Open   file MSVCIRT.DLL connected to missing export MSVCRT.DLL: ??_U@YAPAXI@Z
10339 Open   PHP with OCI8 crashes apache
10370 Open   ceil/fabs/getmntest undefined symbol
10391 Feedback   regardless of having pdflib 3.03, pdflib extension requires at least 
pdflib 3.x
10407 Open   incorrect call of apxs from Apache 2
10414 Open   mysql+charset gb2312
10424 Open   apache crash with segmentation fault at end of phpinfo() function 
call.
10554 Assigned   IISConfig - MSCOMCTL.OCX is not correctly registered.
10589 Critical   buildconf not compatible with Gnu Libtool 1.4
10598 Open   Windows Protocol  ini file placement
10696 Feedback   missing dll
10799 Open   fails to compile with mysql's libraries
10811 Feedback   
10826 Open   
===[*Languages/Translation]===
9392 Open   htmlspecial chars  htmlentities do not handle double byte 
charactersets
9524 Open   htmlentities do not translate corretly
===[*Programming Data Structures]=
10633 Open   settype(.., double) not work as expected(or documented)
10752 Open   infinite loops prevents pages from loading
===[*Regular Expressions]=
6680 Open   regexps (ereg*) ignores locale settings
7231 Open   REG_ECOLLATE bug?
9919 Open   problem with umlauts, the modifier i and \b
10111 Open   e modifier alters string extraction in preg_replace
10154 Open   Function ereg array results
10314 Open   split() function is'nt stable
===[*Session related]=
3793 Analyzed   session.gc_maxlifetime does not work
6121 

[PHP-DEV] Bug #8865 Updated: App launching with hotkeys delayed

2001-05-12 Thread derick

ID: 8865
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Apache related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Can you please try it with 4.0.5, or preferrable php-4.0.6dev ?

Previous Comments:
---

[2001-05-12 10:53:48] [EMAIL PROTECTED]
Sure does! I haven't tried php 4.0.5-dev on this, but 4.0.4 pl1 does. I still think it 
must be related to bug 8864 (which died as I didn't give any prompt feedback, but is 
also real).

It's not a Win95 issue only, it also happens on Win98 (haven't tried Win Me).

---

[2001-05-11 21:07:42] [EMAIL PROTECTED]
Does this still happen?

--Jani


---

[2001-01-23 12:28:42] [EMAIL PROTECTED]
With PHP as module, several second delay (totally freezing windows) when launching 
applications using Windows' hot-keys. (Seems related to bug 8864)

This tried with PHP 4.0.1 up to 4.0.5dev.

---



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


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




Re: [PHP-DEV] Fork() in php?

2001-05-12 Thread Zeev Suraski

At 04:05 12/5/2001, Wez Furlong wrote:
I know that there might be some bad interactions with apache if you fork,
but if you allow PHP to spot that it forked and call _exit() instead of
returning into the SAPI, you should be OK?

Not really, the parent has to somehow call wait() on the child, otherwise 
you'd get zombie processes...
Generally, implementing that sort of stuff within the Apache framework is a 
bit of asking for trouble :I

Zeev


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




[PHP-DEV] Bug #10830: Cannot bind() a socket to a specific port in FreeBSD

2001-05-12 Thread drw

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.3-STABLE
PHP version:  4.0.5
PHP Bug Type: Sockets related
Bug description:  Cannot bind() a socket to a specific port in FreeBSD

Operating in CGI mode, trying the Simple TCP/IP Server script at 
http://www.php.net/manual/en/html/ref.sockets.html

bind($sock,$address,$port) fails with Invalid argument.

bind($sock,$address) gives a parameter count error, but manages to bind the socket to 
the next available port anyway.

Reproducable in 12-May snapshot.  This may affect other BSD unices also, however it is 
verified as working properly under Linux.



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



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




Re: [PHP-DEV] Latest CVS on Linux

2001-05-12 Thread Sebastian Bergmann

Wez Furlong wrote:
 I'm using SuSE 7.0 and I had a similar problem.

  Sascha fixed this issue (at least for me it works now) in CVS.

-- 
 sebastian bergmann[EMAIL PROTECTED]
   http://www.sebastian-bergmann.de

 bonn.phpug.de | www.php.net | www.phpOpenTracker.de | www.titanchat.de

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




[PHP-DEV] Libtool installations

2001-05-12 Thread Sascha Schumann

Hi,

I've removed ltconfig from cvs which should make it easier to
notice whether your libtool installation is broken.

If configure complains about not being able to find ltconfig,
it is a clear indication that aclocal has used the libtool.m4
of libtool 1.3.x to build aclocal.m4.  That is usually the
result of installing libtool with another prefix than
automake.

Running the following sequence of commands should cure that
(adapt to OS-specific commands as necessary):

a=`which aclocal`; b=`which libtool`; \
cp `dirname $b`/../share/aclocal/libtool.m4 \
`dirname $a`/../share/aclocal/

- Sascha Experience IRCG
  http://schumann.cx/http://schumann.cx/ircg


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




Re: [PHP-DEV] Bug #10829: call_user_func() - Bug

2001-05-12 Thread Sterling Hughes

Thies C. Arntzen wrote:

 On Sat, May 12, 2001 at 02:23:44PM -, [EMAIL PROTECTED] wrote:
 
From: [EMAIL PROTECTED]
Operating system: Win2K, Solaris
PHP version:  4.0.5
PHP Bug Type: Scripting Engine problem
Bug description:  call_user_func() - Bug

Hi,

I have found the following bug with the function call_user_func():

If the user function you are trying to call with 'call_user_func' requires any of 
its parameters to be passed by reference, PHP issues a warning stating that the 
function doesn't exist.

Example:

?php
function testme($param) {
 var_dump($param);
}

$func = testme;
$param = array(1, 2);

call_user_func($func, $param);

?

Result:

br
bWarning/b:  Unable to call testme() - function does not exist in bt.php/b 
on line b1/bbr

 
 if you take out the  in the testme argument list it works -
 even weirder.
 


Actually, it doesn't seem that wierd to me ;)

the call_user_func() expects an array of parameters, therefore, the 
correct code would look like:

$func = testme;
$param = array(1, 2);

call_user_func($func, array($param));

But instead the code passes a constant value 1 to the first argument, 
and 1 cannot be passed by reference.  The error generated is kinda a 
bug, call_user_func() should emit a more general error message, but 
otherwise its not a real bug.

-Sterling






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




Re: [PHP-DEV] Latest CVS on Linux

2001-05-12 Thread Sascha Schumann

On Sat, 12 May 2001, Sebastian Bergmann wrote:

 Wez Furlong wrote:
  I'm using SuSE 7.0 and I had a similar problem.

   Sascha fixed this issue (at least for me it works now) in CVS.

Uh?  Your installation was busted.

- Sascha Experience IRCG
  http://schumann.cx/http://schumann.cx/ircg


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




Re: [PHP-DEV] Latest CVS on Linux

2001-05-12 Thread Sebastian Bergmann

Sascha Schumann wrote:
 Uh?  Your installation was busted.

  I was refering to the 'unary operator expected' errors.

-- 
 sebastian bergmann[EMAIL PROTECTED]
   http://www.sebastian-bergmann.de

 bonn.phpug.de | www.php.net | www.phpOpenTracker.de | www.titanchat.de

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




Re: [PHP-DEV] Latest CVS on Linux

2001-05-12 Thread Sascha Schumann

On Sat, 12 May 2001, Sebastian Bergmann wrote:

 Sascha Schumann wrote:
  Uh?  Your installation was busted.

   I was refering to the 'unary operator expected' errors.

..which was an effect of your broken installation, as
ltmain.sh and ltconfig/libtool.m4 were incompatible, and
hence produced spurious errors.

- Sascha Experience IRCG
  http://schumann.cx/http://schumann.cx/ircg


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




Re: [PHP-DEV] Latest CVS on Linux

2001-05-12 Thread Sebastian Bergmann

Sascha Schumann wrote:
I was refering to the 'unary operator expected' errors.
 
 ..which was an effect of your broken installation, as
 ltmain.sh and ltconfig/libtool.m4 were incompatible, and
 hence produced spurious errors.

  Oh, and I thought the only effect of my busted libtool-1.4
installation was the 'ltconfig not found' issue.

  Pardon me,
Sebastian *eot*

-- 
 sebastian bergmann[EMAIL PROTECTED]
   http://www.sebastian-bergmann.de

 bonn.phpug.de | www.php.net | www.phpOpenTracker.de | www.titanchat.de

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




[PHP-DEV] Re: [PHP-CVS] cvs: php4 /win32 php4dllts.dsp

2001-05-12 Thread Sebastian Bergmann

Sebastian Bergmann wrote:
 -# ** DO NOT EDIT **
 +# ** NICHT BEARBEITEN **

  Shit, I only have the german edition of MS Visual Studio. I'm going to
'fix' this later as I gotta run now.

-- 
 sebastian bergmann[EMAIL PROTECTED]
   http://www.sebastian-bergmann.de

 bonn.phpug.de | www.php.net | www.phpOpenTracker.de | www.titanchat.de

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




Re: [PHP-DEV] Update of bundled packages

2001-05-12 Thread Sebastian Bergmann

Alexander Bokovoy wrote:
Another issue is the bundled mysql client library. phpinfo() 
  currently shows 3.23.32 as its API version. Is this up-to-date? 
 Latest version is 3.32.36 I think.

  Is an upgrade of the libmysql client that comes with php4 needed?

-- 
 sebastian bergmann[EMAIL PROTECTED]
   http://www.sebastian-bergmann.de

 bonn.phpug.de | www.php.net | www.phpOpenTracker.de | www.titanchat.de

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




[PHP-DEV] Bug #10672 Updated: uodbc.* should be odbc.* in php.ini

2001-05-12 Thread kalowsky

ID: 10672
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Documentation problem
Operating system: 
PHP Version: 4.0.4
Assigned To: 
Comments:

fixed in CVS

Previous Comments:
---

[2001-05-04 13:05:37] [EMAIL PROTECTED]
In trying to tweak my ODBC connection use, I was trying to limit the number of 
max_links.  I could change the number in php.ini, but didn't see the change in 
phpinfo() output.  I changed

uodbc.max_links = -1
to
uodbc.max_links = 10

Then, looking at the phpinfo() output, I saw the variable was actually called 
odbc.max_links, so changing the line to:

odbc.max_links = 10

did the trick.   Your documentation also specifies the parameter as uodbc.  This 
could be an artifact of me using libiodbc, instead of unixODBC, not sure. 

The uodbc - odbc name change effects all the odbc variables (allow_persistent, 
check_persistent, etc)


---



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


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




[PHP-DEV] Bug #7458 Updated: FATAL: emalloc(): Unable to allocate -11773805 bytes

2001-05-12 Thread cynic

ID: 7458
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Mail related
Operating system: 
PHP Version: 4.0.2
Assigned To: 
Comments:

I must've f***ed up. Too many browser windows, I guess. Sorry.

Previous Comments:
---

[2001-05-11 21:41:21] [EMAIL PROTECTED]
I can't see how this is duplicate of #7447.


---

[2001-01-12 17:41:34] [EMAIL PROTECTED]
dupe of #7447

---

[2000-10-25 14:11:58] [EMAIL PROTECTED]
desc :
using the mail() function in a php scrit, the parser connects to the mail server (i 
see on my control panel of that mail server), then don't send anything and stop : i 
get that message on my browser :
FATAL: emalloc(): Unable to allocate -11773805 bytes 

i've FTP and GD 1.8 DLL loaded

my mailserver is Internet Anywhere Mail Server 3.2.1 (www.tnsoft.co)

IT happend suddenly after 3 hours of test, and now it's 100% reproduction : never get 
the script to work again. nothing changed in my config between the last OK reload and 
the first non-OK.

After a reboot, it always says :
FATAL: emalloc(): Unable to allocate -11773805 bytes 

i can't figure out what it could be.

djdd [EMAIL PROTECTED]

---



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


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




[PHP-DEV] Bug #5698 Updated: Non internal MySQL support won't ./configure nicely on Debian...

2001-05-12 Thread cardinal

ID: 5698
Updated by: cardinal
Reported By: [EMAIL PROTECTED]
Old-Status: Analyzed
Status: Closed
Bug Type: Feature/Change Request
Operating system: 
PHP Version: 4.0.1pl2
Assigned To: 
Comments:

Checking lib and lib/mysql was added before 4.0.1 was released, according to the CVS 
tag.

Previous Comments:
---

[2000-08-17 11:55:15] [EMAIL PROTECTED]
I think the way to solve this isn't adding 2 configure options. The only difference 
between this installation and any other standard mysql installation is --

Headers:
[MYSQL]/include/mysql
Libraries:
[MYSQL]/lib

The standard installations (from a tarball, etc) install to:

Headers:
[MYSQL]/include/mysql
Libraries:
[MYSQL]/lib/mysql

So the appropriate solution is to check for MySQL libraries within lib/ and lib/mysql 
instead of just the latter.

---

[2000-07-24 21:12:30] [EMAIL PROTECTED]
Seems to be an OS specific Feature/Change Request

---

[2000-07-20 14:48:23] [EMAIL PROTECTED]
There should really be a way to supply different paths of the MySQL headers and 
libraries... if you have the Debian mysql packages ./configure 
--with-mysql=something can't be done as you can then only find either the headers OR 
the libs... (example: /usr/lib/libmysqlclient.so and /usr/include/mysql/mysql.h)

It'd be really nice to be able to supply --with-mysql-includes= and 
--with-mysql-libraries= or something like that... so you don't have to create symlinks 
all over your system...

Thanks in advance...

---



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


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




[PHP-DEV] Bug #6277 Updated: make parse_str() returning arrays

2001-05-12 Thread cardinal

ID: 6277
Updated by: cardinal
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Closed
Bug Type: Feature/Change Request
Operating system: 
PHP Version: 4.0 Latest CVS (21/08/2000)
Assigned To: 
Comments:

6276 is closed, closing this duplicate.

Previous Comments:
---

[2000-08-21 11:55:10] [EMAIL PROTECTED]
of #6276 (great mind think alike :)

---

[2000-08-21 11:50:26] [EMAIL PROTECTED]
for the archive:
make parse_str() returning arrays post 4.0.2



---



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


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




[PHP-DEV] Bug #10053 Updated: Insert sentence error

2001-05-12 Thread phanto

ID: 10053
Updated by: phanto
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: COM related
Operating system: 
PHP Version: 4.0.4
Assigned To: 
Comments:

no response

Previous Comments:
---

[2001-05-07 12:46:12] [EMAIL PROTECTED]
Does this problem persist with PHP 4.0.6-dev? There have been a lot of changes to 
ext/com recently, including improtant fixes after the PHP 4.0.5 release that will be 
included in PHP 4.0.6.


---

[2001-03-29 09:47:19] [EMAIL PROTECTED]
$oConn = new COM(ADODB.Connection);

// Data Base: ORACLE 8.0

// insert query: it works fine!!!

insert into Pact (nid,name,Apell1,Apell2,Sexo,NHisto,FNac) values 
(10040,'qwrwfcdf','qeqwe','qewqwe','Hombre','121217',to_date('12/12/1999','MM-DD-'))



// insert query: it does not works: php error memory

insert into Pet 
(NID,NPet,NPac,Diagnostico,FPet,Medico,Servicio,FPetFin,nidPass,obsPet,obsInf,codSer,itt)
 
   values
   (10060,'56',10040,3,
to_date('29-03-2001','DD-MM-'),
to_date('12-1-2001','DD-MM-,
 '',
 'ttt',
 'urgencias ',
 'vv')
 

If i copy this query (generated by my php code), and paste into a SQL editor that work 
for make queries into data bases
and i execute it, it works fine. 

Maybe a problem of lenght?.
I hope i was wrong.



---



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


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




[PHP-DEV] Bug #8076 Updated: Array === argv

2001-05-12 Thread cardinal

ID: 8076
Updated by: cardinal
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating system: 
PHP Version: 4.0.3pl1
Assigned To: 
Comments:

Use call_user_func_array

Previous Comments:
---

[2000-12-02 01:23:45] [EMAIL PROTECTED]
In perl, I am able to pass an array to a function.  When doing so, each of the array's 
indices apear to be scalar values to the function.

When passing the equivalent form of an assicitave array to perl (hash array), the 
values passed to the function apear to alternate between keys and values.

I am looking for this functionality in PHP, but must resort to constructing an eval() 
statement instead.

So what I'm suggesting is a language construct, perhaps as follows:  

array_as_argv() - which would alternate between keys and values.
array_keys_as_argv() - which would only pass the keys
array_values_as_argv() - which would only pass the values

This makes me think there might be a need for obj_as_argv(), but who knows?

See Bug id #5350

---



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


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




[PHP-DEV] Bug #9696 Updated: Error in ODBC to Connect Progress Database

2001-05-12 Thread kalowsky

ID: 9696
Updated by: kalowsky
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: ODBC related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

no user feedback.  considered fixed.  if untrue, please
reopen the bug.

Previous Comments:
---

[2001-04-22 23:14:02] [EMAIL PROTECTED]
multiple parts.

1) have you tried this with any of the 4.0.5RCs?

2) have you tried using odbc_num_rows to identify how many 
rows you have returned?  and with that looping through your 
odbc_fetch_row using an row specifier?  

---

[2001-03-12 03:43:38] [EMAIL PROTECTED]
There is an error to via an ODBC driver, INTERSOLV DataDirect
Connect ODBC PROGRESS Driver for Microsoft Windows 95 and 
Microsoft Windows NT, Version 3.11, to use Progress Database.

PHP Version:  4.0.4pl1
OS:   Windows 2000 5.00.2195
ODBC Version: 3.520.4403.2
ODBC Progress Driver: INTERSOLV DataDirect Connect ODBC 
  PROGRESS Driver for Microsoft Win
  dows 95 and Microsoft Windows NT,
  Version 3.11


PHP.INI
_
..

odbc.allow_persistent   =   ON
odbc.check_persistent   =   ON
odbc.max_persistent =   -1  
odbc.max_links  =   -1
odbc.defaultlrl =   4096
odbc.defaultbinmode =   1   

..
_



The script are following, and mark the state in some step.
_

?php

$dsn = TEST;
$uid = test;
$pwd = test;

# ODBC DSN Config


$lid = odbc_connect($dsn,$uid,$pwd);

# Connect to DSN. OK.


$sql = select part from mstr where part like 'VB%';

$rid = odbc_do($lid,$sql);

# Do the query. OK


header(content-type:text/html;charset=iso8859-1);

echo table border=1n;
while (odbc_fetch_row($rid)){
$pt = odbc_result($rid,1);
echo trtd$pt/td/trn;
}
echo /table;

# Here, odbc_fetch_row() always is TRUE. I must use the STOP of
# the browser to stop. And the Value of $pt is or NULL.

odbc_close($lid);

?

__


There output HTML Source is following:

__


tabletrthpt_part/th/tr
trtd/td/tr
trtd/td/tr
trtd/td/tr
trtd/td/tr
trtd/td/tr
trtd/td/tr
trtd/td/tr

___


But, the same process on Perl is OK.

The Perl Script is following:


#!perl
print (Content-type: text/htmlnn);

use Win32::ODBC;

$DSN = DSN=test;UID=test;PWD=test;

$data = new Win32::ODBC($DSN);
if (!$data-Connection) {
print $db_connect_error;
Win32::ODBC::DumpError;
die;
}

$sql = select part from mstr where part like 'VB%';

if ($data-Sql($sql)) {
print $sql_error;
Win32::ODBC::DumpError;
}

@field = $data-FieldNames;
$sum = @field;

print table border=1ntr;
for ($i=0; $i$sum; $i++) {
print td$field[$i]/td;
}
print /trn;

while ($data - FetchRow) {
print tr;
@da=$data-Data;
for ($i=0; $i$sum; $i++) {
print td$da[$i]/td;
}
print /trn;
}

print /tablenn;

$data-Close;


---



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


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




Re: [PHP-DEV] Update of bundled packages

2001-05-12 Thread Andi Gutmans

At 08:24 PM 5/12/2001 +0200, Sebastian Bergmann wrote:
Alexander Bokovoy wrote:
 Another issue is the bundled mysql client library. phpinfo()
   currently shows 3.23.32 as its API version. Is this up-to-date?
  Latest version is 3.32.36 I think.

   Is an upgrade of the libmysql client that comes with php4 needed?

I emailed Tim from the MySQL team a couple of times. There are two issues 
that need to be resolved. One is a build fix (I think) one of the PHP 
developers committed to the libmysql directory. This should obviously be 
sync'ed with the MySQL team as they upgrade the client when needed. The 
second issue is a missing configure directive which can break compilations 
of MySQL on AIX (and possibly also other platforms).
I think Tim was ill for a while so he probably didn't get around to it.
Monty, Tim, can you please let us know what the status of these two issues 
is? (I mailed Tim about them).

Thanks,
Andi


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




[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/xml/expat expat.dsw expat.mak winconfig.h/win32 php4dllts.dsp

2001-05-12 Thread Sebastian Bergmann

Daniel Beulshausen wrote:
   Log:
   hopefully fix win32 build, untested

  I was two seconds away of commiting exactly the same patch :-)

  But it doesn't fix it completely:

wddx.obj : error LNK2001: Unresolved external symbol _php_XML_ParserFree
wddx.obj : error LNK2001: Unresolved external symbol _php_XML_Parse
wddx.obj : error LNK2001: Unresolved external symbol
_php_XML_SetCharacte
rDataHandler
wddx.obj : error LNK2001: Unresolved external symbol
_php_XML_SetElementH
andler
wddx.obj : error LNK2001: Unresolved external symbol
_php_XML_SetUserData
wddx.obj : error LNK2001: Unresolved external symbol
_php_XML_ParserCreat
e

-- 
 sebastian bergmann[EMAIL PROTECTED]
   http://www.sebastian-bergmann.de

 bonn.phpug.de | www.php.net | www.phpOpenTracker.de | www.titanchat.de

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




[PHP-DEV] Bug #10831: PHP website is broken!

2001-05-12 Thread zaphod

From: [EMAIL PROTECTED]
Operating system: 
PHP version:  4.0.5
PHP Bug Type: Reproducible crash
Bug description:  PHP website is broken!

Hey!
 
 Puhleze add a simple text link that takes us straight to the
english *annotated* manuals. I am french, but I use english docs
like 80% of your audience. I want to simply go to the annotated
list of functions  libraries as the search engine is not facile nor
can i simply bookmark it because i work in many places

It would not be hard, and I would not mind a banner ad if it was
necessary to justify. 

Your new design is clean but i must say less useful, much harder
to find things on.


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



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




[PHP-DEV] call_user_*()

2001-05-12 Thread Sterling Hughes

Howdy all,
 I've been going through the call_user_*() functions in 
basic_functions.c and just a couple of notes/things I found odd.

   1) With a aforementioned bug, thies was right, the following code
   fails, but it shouldn't:

   ?php
   function get_reference_as_arg($param)
   {
   var_dump($param);
   }

   $name  = get_reference_as_arg;
   $param1 = array(1, 2);

   call_user_func($name, $param1);
   ?

   Fails.

   Whereas, replacing the call_user_func above with the following:

   call_user_func($name, array($param1));

   Works fine (2-D array gets passed).

   2) I've already fixed this in my local version, however, if the
   call_user_*() functions fail, the error: Couldn't find function is
   displayed.  This is incorrect.  call_user_function_ex() can fail for
   other reasons, making the message incorrect.

   3) call_user_func() and call_user_method() both accept the
   array($obj, method) syntax.  Its seems to me that the
   call_user_method*() are therefore repetitive.


Therefore, I'd suggest that call_user_function()  
call_user_function_ex() (Zend API) need to be more descriptive with 
their return values.  The problem is not only apparent in this 
situation, but also in other places I have often wished for better error 
reporting.

Also, since the call_user_method*() functions are repetitive, we should 
probably nuke them at one point (and for now, have an E_NOTICE message 
saying that these functions are outdated, use the array($obj, method) 
syntax).

Thoughts?

-Sterling


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




Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/xml/expat expat.dsw expat.mak winconfig.h/win32 php4dllts.dsp

2001-05-12 Thread Daniel Beulshausen

At 22:08 12.05.2001 +0200, Sebastian Bergmann wrote:
Daniel Beulshausen wrote:
Log:
hopefully fix win32 build, untested

   I was two seconds away of commiting exactly the same patch :-)

   But it doesn't fix it completely:

um, i can compile just fine...
did you updated everything?

daniel

/*--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.de


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




[PHP-DEV] Bug #10832: memory overruns in php_rshutdown_session_globals

2001-05-12 Thread wez

From: [EMAIL PROTECTED]
Operating system: SuSE 7.0 i386
PHP version:  4.0 Latest CVS (2001-05-12)
PHP Bug Type: *Session related
Bug description:  memory overruns in php_rshutdown_session_globals

I'm really puzzled by this one; at first I thought it was a bug in my extension, but 
after running apache under gdb I found the problem in the sessions module.

It's hard to describe and I can't reproduce it with a simple script :-(

During the call to php_rshutdown_session_globals, zend reports a memory overrun while 
calling zend_hash_destroy(PS(vars));

Sometimes it's a little overrun, but other times it's enough to segfault.

I'm using a user level session handler which works against mysql.  I tried switching 
to mm but I get a segfault every time when using mm :-(

I believe this is the cause of the random loss of a session variable that I 
mentioned last week on php-dev.

I have no idea what's causing it; if there is anything I can provide to help, let me 
know.

My configure line is:

./configure \
--with-apxs \
--disable-pear \
--enable-debug \
--enable-sigchild \
--enable-calendar \
--enable-ftp \
--with-ldap \
--with-mysql=/usr \
--enable-shmop \
--enable-sysvsem \
--enable-sysvshm \
--with-zlib \
--enable-inline-optimization \
--with-iconv \
--with-bz2 \
--with-openssl \
--enable-bcmath \
--enable-ctype \
--with-imap \
--with-pspell \
--enable-yp \
--with-jpeg-dir \
--with-png-dir \
--with-freetype-dir \
--with-gd \
--with-mhash \
--enable-mailparse \
--enable-mbstring \
--with-cybercash=/usr/local/mck-3.2.0.3-linux \
--with-savi=/home/CLIENTWEB/sophosantivirus/sav_if \
--enable-php-streams \
--enable-mbregex \
--enable-memory-usage-info \
$@

(The non-standard extensions are not being used in the scripts with problems).

I've removed mm support from my build because it didn't help at all.

--Wez.


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



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




Re: [PHP-DEV] Bug #10832: memory overruns in php_rshutdown_session_globals

2001-05-12 Thread Sascha Schumann

On 12 May 2001 [EMAIL PROTECTED] wrote:

 From: [EMAIL PROTECTED]
 Operating system: SuSE 7.0 i386
 PHP version:  4.0 Latest CVS (2001-05-12)
 PHP Bug Type: *Session related
 Bug description:  memory overruns in php_rshutdown_session_globals

 I'm really puzzled by this one; at first I thought it was a bug in my extension, but 
after running apache under gdb I found the problem in the sessions module.

Since when do those occur?

- Sascha Experience IRCG
  http://schumann.cx/http://schumann.cx/ircg


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




Re: [PHP-DEV] Bug #10832: memory overruns in php_rshutdown_session_globals

2001-05-12 Thread Wez Furlong

On 2001-05-12 21:40:14, Sascha Schumann [EMAIL PROTECTED] wrote:
 On 12 May 2001 [EMAIL PROTECTED] wrote:
 
  From: [EMAIL PROTECTED]
  Operating system: SuSE 7.0 i386
  PHP version:  4.0 Latest CVS (2001-05-12)
  PHP Bug Type: *Session related
  Bug description:  memory overruns in php_rshutdown_session_globals
 
  I'm really puzzled by this one; at first I thought it was a bug in my
extension, but after running apache under gdb I found the problem in the
sessions module.
 
 Since when do those occur?

I think I've been at this for 6 months, and noticing the problems for the
last 4 months.

Like I said, I thought it was my extension, so I wasn't paying too much
attention :-)

Hope that helps pin it down.

--Wez.



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




Re: [PHP-DEV] Bug #10829: call_user_func() - Bug

2001-05-12 Thread Sterling Hughes

Sterling Hughes wrote:

 Thies C. Arntzen wrote:
 
 On Sat, May 12, 2001 at 02:23:44PM -, [EMAIL PROTECTED] wrote:

 From: [EMAIL PROTECTED]
 Operating system: Win2K, Solaris
 PHP version:  4.0.5
 PHP Bug Type: Scripting Engine problem
 Bug description:  call_user_func() - Bug

 Hi,

 I have found the following bug with the function call_user_func():

 If the user function you are trying to call with 'call_user_func' 
 requires any of its parameters to be passed by reference, PHP issues 
 a warning stating that the function doesn't exist.

 Example:

 ?php
 function testme($param) {
 var_dump($param);
 }

 $func = testme;
 $param = array(1, 2);

 call_user_func($func, $param);

 ?

 Result:

 br
 bWarning/b:  Unable to call testme() - function does not exist in 
 bt.php/b on line b1/bbr


 if you take out the  in the testme argument list it works -
 even weirder.

 
 
 Actually, it doesn't seem that wierd to me ;)
 
 the call_user_func() expects an array of parameters, therefore, the 
 correct code would look like:
 
 $func = testme;
 $param = array(1, 2);
 
 call_user_func($func, array($param));
 
 But instead the code passes a constant value 1 to the first argument, 
 and 1 cannot be passed by reference.  The error generated is kinda a 
 bug, call_user_func() should emit a more general error message, but 
 otherwise its not a real bug.


Never mind, I take this back ;)))

call_user_func  call_user_func_array() got confused in head.

Take a look at the call_user_*() thread ;)

-Sterling

 




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




Re: [PHP-DEV] Update of bundled packages

2001-05-12 Thread Alexander Bokovoy

On Sat, May 12, 2001 at 08:24:16PM +0200, Sebastian Bergmann wrote:
 Alexander Bokovoy wrote:
 Another issue is the bundled mysql client library. phpinfo() 
   currently shows 3.23.32 as its API version. Is this up-to-date? 
  Latest version is 3.32.36 I think.
 
   Is an upgrade of the libmysql client that comes with php4 needed?
Let's wait an answer from MySQL team. From my point, upgrade is preferable
but not neccessary needed, there were mostly bug-fixes at server side.
-- 
Sincerely yours, Alexander Bokovoy 
  The Midgard Project| ALT  Linux  Team | Minsk Linux Users Group
 www.midgard-project.org | www.altlinux.ru  |www.minsk-lug.net 
-- You won't skid if you stay in a rut.
-- Frank Hubbard

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




[PHP-DEV] Bug #10833: Hyperlink tag a when split on multiple lines, session ids are not propagated

2001-05-12 Thread admin

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.5
PHP Bug Type: *Session related
Bug description:  Hyperlink tag lt;agt; when split on multiple lines, session ids 
are not propagated

This applicable for browsers that don't allow cookies:

The following is not working:
a class=subMenu
href=?php if (!isset($currentMenu))
echo $smUrlRefs[$key];
else echo ../ . $smUrlRefs[$key]; ?
Menu /a

But if href is on the same line as a tag, it works:
a class=subMenu href=?php if (!isset($currentMenu))   
 echo
$smUrlRefs[$key];
else echo ../ . $smUrlRefs[$key]; ?
Menu /a




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



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




Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/xml/expat expat.dswexpat.makwinconfig.h/win32 php4dllts.dsp

2001-05-12 Thread Sebastian Bergmann

Daniel Beulshausen wrote:
 did you updated everything?

  Yes - and no. After a new 'cvs co php4' it worked finally :-)

-- 
 sebastian bergmann[EMAIL PROTECTED]
   http://www.sebastian-bergmann.de

 bonn.phpug.de | www.php.net | www.phpOpenTracker.de | www.titanchat.de

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




[PHP-DEV] streams support for interbase

2001-05-12 Thread Wez Furlong

Hi,

Could someone with interbase test this patch that provides streams
support?

I would like to know the outcome of doing a regular compile (with no
streams support) and a compile with --enable-php-streams before I commit.

I'm just being overly cautious...

--Wez.



Index: ext/interbase/interbase.c
===
RCS file: /repository/php4/ext/interbase/interbase.c,v
retrieving revision 1.54
diff -u -r1.54 interbase.c
--- ext/interbase/interbase.c   2001/05/02 22:41:09 1.54
+++ ext/interbase/interbase.c   2001/05/12 21:52:59
@@ -2876,6 +2876,8 @@
char bl_data[IBASE_BLOB_SEG]; /* FIXME? blob_seg_size parameter? */
FILE *fp;
IBLS_FETCH();
+   void * what;
+   int type;
 
RESET_ERRMSG;
 
@@ -2903,8 +2905,12 @@
RETURN_FALSE;
}
 
-   ZEND_FETCH_RESOURCE(fp, FILE *, file_arg, -1, File-Handle, 
php_file_le_fopen());
+   what = zend_fetch_resource(arg1, -1, File-Handle, type, 2, 
+php_file_le_fopen(), php_file_le_stream());
+   ZEND_VERIFY_RESOURCE(what);
 
+   if (type == php_file_le_fopen())
+   fp = (FILE*)what;
+   
ib_blob.link = ib_link-link;
ib_blob.trans_handle = ib_link-trans[trans_n];
ib_blob.bl_handle = NULL;
@@ -2917,6 +2923,21 @@
}
 
size = 0;
+
+#if HAVE_PHP_STREAM
+   if (type == php_file_le_stream())   {
+   while(b = php_stream_read((php_stream*)what, bl_data, 1, 
+sizeof(bl_data))  0)  {
+   if (isc_put_segment(IB_STATUS, ib_blob.bl_handle, b, 
+bl_data)) {
+   _php_ibase_error();
+   RETURN_FALSE;
+   }
+   size += b;
+
+   }
+   }
+   else{
+#endif
+   /* Can't see much use for the issock stuff here, it should be nuked --Wez */
while (issock?(b=SOCK_FREAD(bl_data,sizeof(bl_data),socketd)):(b = 
fread(bl_data, 1, sizeof(bl_data), fp))  0) {
if (isc_put_segment(IB_STATUS, ib_blob.bl_handle, b, bl_data)) {
_php_ibase_error();
@@ -2924,6 +2945,10 @@
}
size += b;
}
+   
+#if HAVE_PHP_STREAM
+   }
+#endif

if (isc_close_blob(IB_STATUS, ib_blob.bl_handle)) {
_php_ibase_error();





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


[PHP-DEV] Bug #10834: PHP will crash if you execute a double-include, which go through 2 directories

2001-05-12 Thread info

From: [EMAIL PROTECTED]
Operating system: Windows, Linux
PHP version:  4.0.5
PHP Bug Type: Reproducible crash
Bug description:  PHP will crash if you execute a double-include, which go through 2 
directories

To reproduce it, create a php file (content doesn't matter), then make a directory and 
change into it. Create a second php file including the first one, make another 
directory and write a php file with an include to the second file into it. When you 
start this file, PHP begins to consume all available CPU und RAM resources. The 
consequence is a crash of the whole machine running the httpd- or php-process. The 
memory limiting function in PHP doesn't take effect in this case.

Regards,

Daniel Fuehrer


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



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




[PHP-DEV] Bug #10831 Updated: PHP website is broken!

2001-05-12 Thread jmoore

ID: 10831
Updated by: jmoore
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Reproducible crash
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

try http://www.php.net/manual/en/ or just http://www.php.net/function

- James

Previous Comments:
---

[2001-05-12 16:17:13] [EMAIL PROTECTED]
Hey!
 
 Puhleze add a simple text link that takes us straight to the
english *annotated* manuals. I am french, but I use english docs
like 80% of your audience. I want to simply go to the annotated
list of functions  libraries as the search engine is not facile nor
can i simply bookmark it because i work in many places

It would not be hard, and I would not mind a banner ad if it was
necessary to justify. 

Your new design is clean but i must say less useful, much harder
to find things on.

---



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


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




Re: [PHP-DEV] call_user_*()

2001-05-12 Thread Andrei Zmievski

At 03:28 PM 5/12/01 -0400, Sterling Hughes wrote:
Also, since the call_user_method*() functions are repetitive, we should 
probably nuke them at one point (and for now, have an E_NOTICE message 
saying that these functions are outdated, use the array($obj, method) 
syntax).

Thoughts?

Yeah, let me look at it because I made some changes to those functions in 
the last months and I will get back to you probably tomorrow.

-Andrei


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




[PHP-DEV] Bug #10835: File Upload

2001-05-12 Thread fergiboy

From: [EMAIL PROTECTED]
Operating system: Windows 2k Server
PHP version:  4.0.5
PHP Bug Type: FTP related
Bug description:  File Upload

I created an upload script that will upload to my ftp server, the variable $file comes 
from a different file:
$a = stripslashes ($file);
$b = basename ($a);
$ftp_server = ftp_server;
$ftp_user_name = user;
$ftp_user_pass = password;
$dir = ftp;
$conn_id = ftp_connect($ftp_server); 
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); 
$cd = ftp_chdir ($conn_id, $dir);
$upload = ftp_put($conn_id, $b, $a, FTP_BINARY); 
if (!$upload) { 
echo bFtp upload has failed!/bbr;
} else {
echo Uploadedbr;
}
$discon = ftp_quit($conn_id); 
echo i$b/i;

This script will work most of the time, but when the file to be uploaded is located in 
certain folders the file will not upload.

I made one change to the php.ini file to allow uploads greater than 2 megs.


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



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




[PHP-DEV] Bug #10835 Updated: File Upload

2001-05-12 Thread fergiboy

ID: 10835
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: FTP related
Operating system: Windows 2k Server
PHP Version: 4.0.5
Description: File Upload

an example:
$file = C:\\whatever.doc
that whould make 
$a = C:\whatever.doc
that would make
$b = whatever.doc

The file will upload from C:\ but will not upload from the desktop.

Previous Comments:
---

[2001-05-12 19:19:42] [EMAIL PROTECTED]
I created an upload script that will upload to my ftp server, the variable $file comes 
from a different file:
$a = stripslashes ($file);
$b = basename ($a);
$ftp_server = ftp_server;
$ftp_user_name = user;
$ftp_user_pass = password;
$dir = ftp;
$conn_id = ftp_connect($ftp_server); 
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); 
$cd = ftp_chdir ($conn_id, $dir);
$upload = ftp_put($conn_id, $b, $a, FTP_BINARY); 
if (!$upload) { 
echo bFtp upload has failed!/bbr;
} else {
echo Uploadedbr;
}
$discon = ftp_quit($conn_id); 
echo i$b/i;

This script will work most of the time, but when the file to be uploaded is located in 
certain folders the file will not upload.

I made one change to the php.ini file to allow uploads greater than 2 megs.

---


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


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




[PHP-DEV] Bug #8865 Updated: App launching with hotkeys delayed

2001-05-12 Thread gvz

ID: 8865
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Apache related
Operating system: Windows 95b, 98
PHP Version: 4.0.4pl1
Description: App launching with hotkeys delayed

I just tried with 4.0.5, and it happens just the same. Also the condition I explained 
in bug 8864 still holds constant. 

More info:
-Win95 SR-2, Winsock 2 patch, IP (for ws2) patch, TCP (for ws2) patch, comdlg401 
patch, DCOM95 installed.
-Apache 1.3.12, no bells, no whistles, just out-of-the-box
-PHP 4.0.5 (binary download from php.net)
-NO extensions loaded, just plain PHP.
-Not related to any particular code, this is is a condition on windows itself: apache 
and php run beautifully. The trouble occurs for other apps when apache runs with the 
apache-php module.
-The slowing down of apps launched using hotkeys is NOT related to any particular 
application, but is a windows delay. The delay is for the launching (5-7 sec. delay 
with freeze-up), not for normal running once an app has been launched. If I get things 
running, everything works ok.
-No apparent relation to any other running app: I've tried shutting down everything 
(yhat is, only explorer running), and then launching apache with php as a module, and 
the condition persists just the same.

I'll try 4.0.6dev on a win98 box and report back.

Hope this helps.
Gonzalo.

Previous Comments:
---

[2001-05-12 12:49:46] [EMAIL PROTECTED]
Can you please try it with 4.0.5, or preferrable php-4.0.6dev ?

---

[2001-05-12 10:53:48] [EMAIL PROTECTED]
Sure does! I haven't tried php 4.0.5-dev on this, but 4.0.4 pl1 does. I still think it 
must be related to bug 8864 (which died as I didn't give any prompt feedback, but is 
also real).

It's not a Win95 issue only, it also happens on Win98 (haven't tried Win Me).

---

[2001-05-11 21:07:42] [EMAIL PROTECTED]
Does this still happen?

--Jani


---

[2001-01-23 12:28:42] [EMAIL PROTECTED]
With PHP as module, several second delay (totally freezing windows) when launching 
applications using Windows' hot-keys. (Seems related to bug 8864)

This tried with PHP 4.0.1 up to 4.0.5dev.

---


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


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




[PHP-DEV] Bug #10835 Updated: File Upload

2001-05-12 Thread derick

ID: 10835
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: FTP related
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Hello,

can you try if this has anything to do with spaces in filenames?
(so try C:\\Te st.doc).

If that's the case you need to escape your filename like this:
 $b = strreplace ( , \ , $b);

Previous Comments:
---

[2001-05-12 19:45:22] [EMAIL PROTECTED]
an example:
$file = C:\whatever.doc
that whould make 
$a = C:whatever.doc
that would make
$b = whatever.doc

The file will upload from C: but will not upload from the desktop.

---

[2001-05-12 19:19:42] [EMAIL PROTECTED]
I created an upload script that will upload to my ftp server, the variable $file comes 
from a different file:
$a = stripslashes ($file);
$b = basename ($a);
$ftp_server = ftp_server;
$ftp_user_name = user;
$ftp_user_pass = password;
$dir = ftp;
$conn_id = ftp_connect($ftp_server); 
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); 
$cd = ftp_chdir ($conn_id, $dir);
$upload = ftp_put($conn_id, $b, $a, FTP_BINARY); 
if (!$upload) { 
echo bFtp upload has failed!/bbr;
} else {
echo Uploadedbr;
}
$discon = ftp_quit($conn_id); 
echo i$b/i;

This script will work most of the time, but when the file to be uploaded is located in 
certain folders the file will not upload.

I made one change to the php.ini file to allow uploads greater than 2 megs.

---



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


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




Re: [PHP-DEV] call_user_*()

2001-05-12 Thread Stefan Livieratos


Sterling Hughes [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Howdy all,
  I've been going through the call_user_*() functions in
 basic_functions.c and just a couple of notes/things I found odd.

1) With a aforementioned bug, thies was right, the following code
fails, but it shouldn't:

?php
function get_reference_as_arg($param)
{
var_dump($param);
}

$name  = get_reference_as_arg;
$param1 = array(1, 2);

call_user_func($name, $param1);
?

Fails.

Whereas, replacing the call_user_func above with the following:

call_user_func($name, array($param1));

Well, I thought that the function call_user_func_array() is supposed to be
called this way. What good is it anyway? I suggest 'call_user_func_array'
should
be removed as it is not needed and also doesn't work with user functions
that
expect arguments by reference.

This script fails:

?php
function get_reference_as_arg($param)
{
   var_dump($param);
}

$name  = get_reference_as_arg;
$param1 = array(1, 2);

call_user_func_array($name, array($param1));
?

Regards,
Stefan Livieratos




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




Re: [PHP-DEV] Latest CVS on Linux

2001-05-12 Thread Joao Prado Maia


On Sat, 12 May 2001, Sebastian Bergmann wrote:

 Sascha Schumann wrote:
 I was refering to the 'unary operator expected' errors.
 
  ..which was an effect of your broken installation, as
  ltmain.sh and ltconfig/libtool.m4 were incompatible, and
  hence produced spurious errors.

   Oh, and I thought the only effect of my busted libtool-1.4
 installation was the 'ltconfig not found' issue.


I have a similar problem with the latest CVS (few minutes ago). When I run
the configure script, it spills out this following message:

Configuring libtool
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
./ltconfig: ./ltconfig: No such file or directory
configure: error: libtool configure failed

No idea whats wrong. If anyone needs more information on my configuration
or whatever, please let me know.

Cheers,
Joao

--
João Prado Maia [EMAIL PROTECTED]
http://phpbrasil.com - php com um jeitinho brasileiro


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




[PHP-DEV] Bug #10835 Updated: File Upload

2001-05-12 Thread fergiboy

ID: 10835
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: FTP related
Operating system: Windows 2k Server
PHP Version: 4.0.5
Description: File Upload

I added an echo $a and an echo $b.  I also some debug code to see if it was connection 
to the ftp server. The output is:
C:\Te st.doc
Te st.doc
Connected
Ftp upload has failed!

So 
$a=C:\Te st.doc
$b=Te st.doc
So it should upload the file as fallows:
$upload = ftp_put($conn_id, C:\Te st.doc, Te st.doc, FTP_BINARY); 

I added the code:
$b = str_replace ( , \ , $b);
to no avail :(

Previous Comments:
---

[2001-05-12 20:04:49] [EMAIL PROTECTED]
Hello,

can you try if this has anything to do with spaces in filenames?
(so try C:\Te st.doc).

If that's the case you need to escape your filename like this:
 $b = strreplace ( ,  , $b);

---

[2001-05-12 19:45:22] [EMAIL PROTECTED]
an example:
$file = C:\whatever.doc
that whould make 
$a = C:whatever.doc
that would make
$b = whatever.doc

The file will upload from C: but will not upload from the desktop.

---

[2001-05-12 19:19:42] [EMAIL PROTECTED]
I created an upload script that will upload to my ftp server, the variable $file comes 
from a different file:
$a = stripslashes ($file);
$b = basename ($a);
$ftp_server = ftp_server;
$ftp_user_name = user;
$ftp_user_pass = password;
$dir = ftp;
$conn_id = ftp_connect($ftp_server); 
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); 
$cd = ftp_chdir ($conn_id, $dir);
$upload = ftp_put($conn_id, $b, $a, FTP_BINARY); 
if (!$upload) { 
echo bFtp upload has failed!/bbr;
} else {
echo Uploadedbr;
}
$discon = ftp_quit($conn_id); 
echo i$b/i;

This script will work most of the time, but when the file to be uploaded is located in 
certain folders the file will not upload.

I made one change to the php.ini file to allow uploads greater than 2 megs.

---


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


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




[PHP-DEV] Bug #10836: German translation of chop()

2001-05-12 Thread j-f

From: [EMAIL PROTECTED]
Operating system: W2K
PHP version:  4.0.5
PHP Bug Type: Documentation problem
Bug description:  German translation of chop()


The german translation of chop() is bullshit...
trailing whitespaces is translated as führende Leerzeichen, which is just the 
oppsosite thing (leading whitespaces)! The example shown is pure phantasy...

Grant me a cvs account and I will repair this; I may help also translate some other 
things (en - de) - Hartmut?


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



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




[PHP-DEV] Bug #10837: The rand function doesn't work

2001-05-12 Thread huy91980

From: [EMAIL PROTECTED]
Operating system: Windows 2000 server
PHP version:  4.0.5
PHP Bug Type: *Function Specific
Bug description:  The rand function doesn't work

calling: rand(1, 50)-1 will always get 1 !! try it for your self..this bug is only in 
4.05  ..i imediately rolled back to 4.04pl1 and it works perfect again.

I didn't compile my module..downloaded the win32 build.


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



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




Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/xml/expat expat.dswexpat.makwinconfig.h/win32 php4dllts.dsp

2001-05-12 Thread Andi Gutmans

At 11:35 PM 5/12/2001 +0200, Sebastian Bergmann wrote:
Daniel Beulshausen wrote:
  did you updated everything?

   Yes - and no. After a new 'cvs co php4' it worked finally :-)

The same thing happened to me. I wonder why that is.
And I made sure with cvs diff that there is no difference between my 
version and the CVS.

Andi


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




Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/xml/expat expat.dswexpat.makwinconfig.h/win32 php4dllts.dsp

2001-05-12 Thread Andi Gutmans

Actually a completely fresh checkout still doesn't work for me.
It dies when compiling xmltok_impl.c.
By the way defining HAVE_LIBEXPAT2 in the .dsp seems to be not needed anymore.
Best to define HAVE_LIBEXPAT_BUNDLED for php_compat.h in config.w32.h.
I don't mind making the change but I prefer doing when I can get my 
environment to build again so that I can test it. Any ideas why it's not 
working?

Andi

At 07:10 AM 5/13/2001 +0300, Andi Gutmans wrote:
At 11:35 PM 5/12/2001 +0200, Sebastian Bergmann wrote:
Daniel Beulshausen wrote:
  did you updated everything?

   Yes - and no. After a new 'cvs co php4' it worked finally :-)

The same thing happened to me. I wonder why that is.
And I made sure with cvs diff that there is no difference between my 
version and the CVS.

Andi


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


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




[PHP-DEV] PHP modules ... ?

2001-05-12 Thread Harcharan Singh

Dear frenz,
I want to use functions in PHP in such a way that all functions will be
kept in a central location : funcs.php like perl's .pm module.
Then use this file and call whichever funtion I want by including this
file.
How can I do this ?
Bye,
Harry.


begin:vcard 
n:Mittu;Harcharan Singh
tel;home:+91-020-7126191
tel;work:+91-020-7292854
x-mozilla-html:TRUE
url:www.harcharansingh.com
org:Spidertech Software Pvt. Ltd.;Systems
version:2.1
email;internet:[EMAIL PROTECTED]
title:Senior Systems Consultant
adr;quoted-printable:;;MIET MANZIL, 271, Sector 2,=0D=0AIndrayani Nagar, Bhosari;Pune;Maharashtra;411026;India
fn:Harcharan Singh Mittu
end:vcard



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


[PHP-DEV] Bug #10836 Updated: German translation of chop()

2001-05-12 Thread eschmid

ID: 10836
Updated by: eschmid
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Documentation problem
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

No comment!

Previous Comments:
---

[2001-05-12 22:33:28] [EMAIL PROTECTED]

The german translation of chop() is bullshit...
trailing whitespaces is translated as führende Leerzeichen, which is just the 
oppsosite thing (leading whitespaces)! The example shown is pure phantasy...

Grant me a cvs account and I will repair this; I may help also translate some other 
things (en - de) - Hartmut?

---



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


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




[PHP-DEV] Bug #10836 Updated: German translation of chop()

2001-05-12 Thread eschmid

ID: 10836
Updated by: eschmid
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Documentation problem
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:

Forgotten to close.

Previous Comments:
---

[2001-05-13 01:12:01] [EMAIL PROTECTED]
No comment!

---

[2001-05-12 22:33:28] [EMAIL PROTECTED]

The german translation of chop() is bullshit...
trailing whitespaces is translated as führende Leerzeichen, which is just the 
oppsosite thing (leading whitespaces)! The example shown is pure phantasy...

Grant me a cvs account and I will repair this; I may help also translate some other 
things (en - de) - Hartmut?

---



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


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




Re: [PHP-DEV] call_user_*()

2001-05-12 Thread Sterling Hughes

Stefan Livieratos wrote:

 Sterling Hughes [EMAIL PROTECTED] schrieb im Newsbeitrag
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 
Howdy all,
 I've been going through the call_user_*() functions in
basic_functions.c and just a couple of notes/things I found odd.

   1) With a aforementioned bug, thies was right, the following code
   fails, but it shouldn't:

   ?php
   function get_reference_as_arg($param)
   {
   var_dump($param);
   }

   $name  = get_reference_as_arg;
   $param1 = array(1, 2);

   call_user_func($name, $param1);
   ?

   Fails.

   Whereas, replacing the call_user_func above with the following:

   call_user_func($name, array($param1));

 
 Well, I thought that the function call_user_func_array() is supposed to be
 called this way. What good is it anyway? I suggest 'call_user_func_array'
 should
 be removed as it is not needed and also doesn't work with user functions
 that
 expect arguments by reference.
 


Well it is needed...  If you need to decide how many arguments to pass 
to a function at execution time then the call_user_func_array() function 
is critical.

-Sterling


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




[PHP-DEV] Bug #10838: wierd problem concatenating global string vars

2001-05-12 Thread gearond

From: [EMAIL PROTECTED]
Operating system: linux
PHP version:  4.0.5
PHP Bug Type: Unknown/Other Function
Bug description:  wierd problem concatenating global string vars

the version is two back, but I would 
be hesitant to ask my ISP to change
to 4.0.5 after all the little problems 
I read about. Can you tell me if the following
is fixed in versions  4.0.3pl1 ?

If I do echo($HTTP_SERVER_VARS[SERVER_ADDR])
I get the expected server address ***WITHOUT A SLASH AT THE END***
eg. my.server.address
---
If I do echo($PHP_SELF)
I get the expeted URL relative the the server ***WITH  O-N-E  SLASH** at
beginning.
eg. /expected/url/relative/doc_name

---
If I do THIS:
  $this_page = http://; . $HTTP_SERVER_VARS[SERVER_ADDR] . $PHP_SELF;
  echo( $this_page );
I get, http://my.server.address//expected/url/relative/doc_name;

There is **ALWAYS** a double slash between the server address and the
doc path,
if the concatenation of those two variables occurs in the same
statement.

It works when used as an action for a form, but I don't think it should
do unexpected
results.

---
HOWEVER
If I do **THIS**:
  $this_page = http://;;
  $this_page .= $HTTP_SERVER_VARS[SERVER_ADDR];
  $this_page .= $PHP_SELF;
I get the correct results,
http://my.server.address/expected/url/relative/doc_name;

My provider is using PHP version 4.0.3pl1


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



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