[PHP-DEV] Re: Weirdness, additional comment

2001-10-31 Thread Ivo

  By the way, did I mention a call to exit in the script I am sure the
  program flow should not go, WILL stop the unwanted effect (the second
  message in the database with the pageid field of 100), but WILL NOT EXIT
  THE PROGRAM WHOLE!  The rest of the program is still executed normally.
  Now, that can't be normal.
 That's what I experienced, too.
 I couldn't locate which line of my code causing this.
 I think if you move code blocks, PHP stops doing that.
 Hope you can find what kind of code cause this...

None of the PHP code should be the offending party in this, it clearly is
behavior that cannot be caused by bugs in the script. An exit is an exit, and
it should terminate the script immediately. It almost seems as if there are
multiple threads running the script. *shrugs*

Ivo


-- 
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 #13882: parent class isn`t correctly resolved when child class is included

2001-10-31 Thread sanya

From: [EMAIL PROTECTED]
Operating system: Windows
PHP version:  4.0.6
PHP Bug Type: Scripting Engine problem
Bug description:  parent class isn`t correctly resolved when child class is included

Code:

-- ClassA.php contents --
?php
class A
{
  function Test()
  {
echo A::Test\n;
  }
}
?

-- Test.php contents 
?php
include_once('ClassA.php');
class B extends A
{
  function Test()
  {
parent::Test();
  }
}

B::Test();
?

-
Try to execute Test.php - for example, type 
php.exe -q Test.php - i recieved application error 
message on this.

The problem seems to be in a buggy parent resove algorithm. 
On such a cases it incorrectly resolves 
parent - to class itself (it results in infinite recursion) 
or raises an exception (the memory coudn`t be read).

This problem can be solved by using real parent`s class 
name except parent::, or by doing all such includes on 
the same level -- if some class is included (by 
include, require, include_once, require_once), all their 
child classes must be included before the line where parent 
is included.

-- 
Edit bug report at: http://bugs.php.net/?id=13882edit=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 #13883: compilation module php4 avec apache

2001-10-31 Thread damie . mickael

From: [EMAIL PROTECTED]
Operating system: AIX 4.3
PHP version:  4.0.6
PHP Bug Type: *Web Server problem
Bug description:  compilation module php4 avec apache

En compilant Apache pour qu'il prenne en compte le module php, voilà ce que
j'obtiens
Merci 
Creating Makefile in src
 + configured for IBM AIX 4.3 platform
 + setting C compiler to cc
 + setting C pre-processor to cc -E
 + checking for system header files
 + adding selected modules
o php4_module uses ConfigStart/End
 + checking sizeof various data types
 + doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed.  The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

cd ..; cc  -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__
-DAIX_BIND_PROCESSOR -qnogenpcomp -qnousepcomp -I/apache/p
hp-4.0.6 -I/apache/php-4.0.6/main -I/apache/php-4.0.6/main
-I/apache/php-4.0.6/Zend -I/apache/php-4.0.6/Zend -I/apache/php-4.0.6
/TSRM -I/apache/php-4.0.6/TSRM -I/apache/php-4.0.6 -DUSE_EXPAT
-I./lib/expat-lite -DNO_DL_NEEDED `./apaci`   -lm -lpthread  -o h
elpers/dummy helpers/dummy.c   -R/usr/informix/lib -R/usr/informix/lib/esql
 -L/usr/informix/lib -L/usr/informix/lib/esql -Lmodu
les/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4   -lifos -lifgen
-lifsql -lifasf -lifos -lifgen -lifgls -ltli -l/netst
ub -lc -lmsaa -lbsd -ldl -lifglx -ldl -lcrypt -lbind -lm -ldl
ld: 0706-027 The -R /usr/informix/lib flag is ignored.
ld: 0706-027 The -R /usr/informix/lib/esql flag is ignored.
ld: 0706-006 Cannot find or open library file: -l /netstub
ld:open(): No such file or directory
make: The error code from the last command is 255.


Stop.
 Error Output for sanity check 
= End of Error Report =

 Aborting!
-- 
Edit bug report at: http://bugs.php.net/?id=13883edit=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 #13883 Updated: compilation module php4 avec apache

2001-10-31 Thread derick

ID: 13883
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: *Web Server problem
Operating System: AIX 4.3
PHP Version: 4.0.6
New Comment:

report in english please

Previous Comments:


[2001-10-31 05:09:34] [EMAIL PROTECTED]

En compilant Apache pour qu'il prenne en compte le module php, voilà ce que j'obtiens
Merci 
Creating Makefile in src
 + configured for IBM AIX 4.3 platform
 + setting C compiler to cc
 + setting C pre-processor to cc -E
 + checking for system header files
 + adding selected modules
o php4_module uses ConfigStart/End
 + checking sizeof various data types
 + doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed.  The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

cd ..; cc  -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ 
-DAIX_BIND_PROCESSOR -qnogenpcomp -qnousepcomp -I/apache/p
hp-4.0.6 -I/apache/php-4.0.6/main -I/apache/php-4.0.6/main -I/apache/php-4.0.6/Zend 
-I/apache/php-4.0.6/Zend -I/apache/php-4.0.6
/TSRM -I/apache/php-4.0.6/TSRM -I/apache/php-4.0.6 -DUSE_EXPAT -I./lib/expat-lite 
-DNO_DL_NEEDED `./apaci`   -lm -lpthread  -o h
elpers/dummy helpers/dummy.c   -R/usr/informix/lib -R/usr/informix/lib/esql  
-L/usr/informix/lib -L/usr/informix/lib/esql -Lmodu
les/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4   -lifos -lifgen -lifsql 
-lifasf -lifos -lifgen -lifgls -ltli -l/netst
ub -lc -lmsaa -lbsd -ldl -lifglx -ldl -lcrypt -lbind -lm -ldl
ld: 0706-027 The -R /usr/informix/lib flag is ignored.
ld: 0706-027 The -R /usr/informix/lib/esql flag is ignored.
ld: 0706-006 Cannot find or open library file: -l /netstub
ld:open(): No such file or directory
make: The error code from the last command is 255.


Stop.
 Error Output for sanity check 
= End of Error Report =

 Aborting!





Edit this bug report at http://bugs.php.net/?id=13883edit=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 #13873 Updated: wddx_*() functions only handle ascii

2001-10-31 Thread johan

ID: 13873
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: WDDX related
Operating System: Linux
PHP Version: 4.0.6
New Comment:

No, it still doesn't work here. I got the latest (oct 31) snap from snaps.php.net:

  # ./configure --with-xml --enable-wddx
  # make
  # ./php wddx_test.php
  X-Powered-By: PHP/4.2.0-dev
  Content-type: text/html

  xyz???

wddx_test.php contains the one-liner submitted in my original report:
  print wddx_deserialize(wddx_serialize_value(xyzåäö));

/Johan


Previous Comments:


[2001-10-30 18:15:32] [EMAIL PROTECTED]

Works fine for me with latest CVS. Try a snapshot from
http://snaps.php.net/

--Jani




[2001-10-30 11:01:23] [EMAIL PROTECTED]

It seems that the wddx_*() functions only handle US-ASCII, although I see a referense 
to ISO-8859-1 and UTF-8 in the source:

   print wddx_deserialize(wddx_serialize_value(xyzåäö));

produces:

   xyz???







Edit this bug report at http://bugs.php.net/?id=13873edit=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 #13883 Updated: compilation module php4 avec apache

2001-10-31 Thread damie . mickael

ID: 13883
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: *Web Server problem
Operating System: AIX 4.3
PHP Version: 4.0.6
New Comment:

when i compilating apache for it take php_modules. i have this error.

Thanks

Previous Comments:


[2001-10-31 05:23:17] [EMAIL PROTECTED]

report in english please



[2001-10-31 05:09:34] [EMAIL PROTECTED]

En compilant Apache pour qu'il prenne en compte le module php, voilà ce que j'obtiens
Merci 
Creating Makefile in src
 + configured for IBM AIX 4.3 platform
 + setting C compiler to cc
 + setting C pre-processor to cc -E
 + checking for system header files
 + adding selected modules
o php4_module uses ConfigStart/End
 + checking sizeof various data types
 + doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed.  The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

cd ..; cc  -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ 
-DAIX_BIND_PROCESSOR -qnogenpcomp -qnousepcomp -I/apache/p
hp-4.0.6 -I/apache/php-4.0.6/main -I/apache/php-4.0.6/main -I/apache/php-4.0.6/Zend 
-I/apache/php-4.0.6/Zend -I/apache/php-4.0.6
/TSRM -I/apache/php-4.0.6/TSRM -I/apache/php-4.0.6 -DUSE_EXPAT -I./lib/expat-lite 
-DNO_DL_NEEDED `./apaci`   -lm -lpthread  -o h
elpers/dummy helpers/dummy.c   -R/usr/informix/lib -R/usr/informix/lib/esql  
-L/usr/informix/lib -L/usr/informix/lib/esql -Lmodu
les/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4   -lifos -lifgen -lifsql 
-lifasf -lifos -lifgen -lifgls -ltli -l/netst
ub -lc -lmsaa -lbsd -ldl -lifglx -ldl -lcrypt -lbind -lm -ldl
ld: 0706-027 The -R /usr/informix/lib flag is ignored.
ld: 0706-027 The -R /usr/informix/lib/esql flag is ignored.
ld: 0706-006 Cannot find or open library file: -l /netstub
ld:open(): No such file or directory
make: The error code from the last command is 255.


Stop.
 Error Output for sanity check 
= End of Error Report =

 Aborting!





Edit this bug report at http://bugs.php.net/?id=13883edit=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 #13868 Updated: Unable to find ftpbuf 1 in ....

2001-10-31 Thread j . parree

ID: 13868
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: FTP related
Operating System: Suse 7.1  -  oldwotan 2.4.3 #1
PHP Version: 4.0.4pl1
New Comment:

A working example:
This example should download an html-file.

?

class ftpimport{

function GetViaFTP(){
$FTPDataHost= 212.227.140.167;
$FTPDataUser= anonymous;
$FTPDataPass= [EMAIL PROTECTED];
$docName= index.html;

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);
if($ftpConn  $ftpLogin){
$fp = fopen($docName, w);
echo ftp conn :  . $ftpConn . br;
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
error;
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1-GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2-GetViaFTP();// this causes the problem

?

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);



Previous Comments:


[2001-10-30 18:05:33] [EMAIL PROTECTED]

Please add a SHORT but complete and self-containing script
that uses some public ftp server. And with which this can
be reproduced. 

--Jani




[2001-10-30 07:14:44] [EMAIL PROTECTED]

We are getting the following undocumented error:

Warning: Unable to find ftpbuf 1 in 
/usr/local/httpd/htdocs/sportshop/admin/modules/porter/class/classProductImport.php on 
line 18
(Line:  if(!ftp_fget($ftpLogin, trim($docName), $fp, FTP_BINARY)); )


This script is also beeing called from another script
on the same mashine, and there it works.

(We could nor get any information from search engines
or any of the php-mailing lists.)
-
In script (part of a class):

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);
if($ftpConn  $ftpLogin){
$fp = fopen($tmpDataDir . / . trim($docName), w);
echo ftp conn :  . $ftpConn . br;
if(!ftp_fget($ftpLogin, trim($docName), $fp, FTP_BINARY));
fclose($fp);
}


-
- modules in php ... :

'./configure' 
'--prefix=/usr' 
'--bindir=/usr/bin' 
'--libdir=/usr/lib' 
'--with-config-file-path=/etc' 
'--with-exec-dir=%{libdir}/php/bin' 
'--with-pgsql=/usr' 
'--with-mysql=/usr' 
'--with-gd=yes' 
'--with-tiff-dir=/usr' 
'--with-jpeg-dir=/usr' 
'--with-png-dir=/usr' 
'--with-xpm-dir=/usr/X11R6' 
'--with-pdflib=/usr' 
'--with-ldap=yes' 
'--with-imap=yes' 
'--with-imap-ssl' 
'--with-zlib=yes' 
'--with-bz2' 
'--with-xml' 
'--with-ttf' 
'--with-t1lib' 
'--with-mcal=/usr/include/mcal/' 
'--with-sablot' '--with-readline' 
'--with-ftp' 
'--with-ndbm' 
'--with-gdbm' 
'--with-mcrypt' 
'--with-gettext' 
'--with-curl' 
'--with-mm' 
'--with-gd=yes' 
'--with-qtdom=/usr/lib/qt-2.2.1/' 
'--enable-versioning' 
'--enable-yp' 
'--enable-bcmath' 
'--enable-trans-sid' 
'--enable-inline-optimization' 
'--enable-track-vars' 
'--enable-magic-quotes' 
'--enable-safe-mode' 
'--enable-sockets' 
'--enable-sysvsem' 
'--enable-sysvshm' 
'--enable-shmop' 
'--enable-calendar' 
'--enable-exif' 
'--enable-ftp' 
'--enable-memory-limit' 
'--enable-wddx' 
'--enable-filepro' 
'--enable-dbase' 
'--enable-ctype' 
'--enable-debug' 
'--enable-force-cgi-redirect' 
'--enable-discard-path' 
'--enable-sigchild' 
'--enable-gd-imgstrttf' 
'--with-openssl' 
'--with-swf=./dist/' 
'--with-apxs=/usr/sbin/apxs' 
'i386-suse-linux-gnu'


-
Other information:

- Total script processing time = 0.03413258889
- FTP-Settings on the remotehost were checked !





Edit this bug report at http://bugs.php.net/?id=13868edit=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 #13868 Updated: Unable to find ftpbuf 1 in ....

2001-10-31 Thread j . parree

ID: 13868
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: FTP related
Operating System: Suse 7.1  -  oldwotan 2.4.3 #1
PHP Version: 4.0.4pl1
New Comment:

A working example:
This example should download an html-file.

?

class ftpimport{

function GetViaFTP(){
$FTPDataHost= 212.227.140.167;
$FTPDataUser= anonymous;
$FTPDataPass= [EMAIL PROTECTED];
$docName= index.html;

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);
if($ftpConn  $ftpLogin){
$fp = fopen($docName, w);
echo ftp conn :  . $ftpConn . br;
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
error;
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1-GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2-GetViaFTP();// this causes the problem

?

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);



Previous Comments:


[2001-10-31 06:13:56] [EMAIL PROTECTED]

A working example:
This example should download an html-file.

?

class ftpimport{

function GetViaFTP(){
$FTPDataHost= 212.227.140.167;
$FTPDataUser= anonymous;
$FTPDataPass= [EMAIL PROTECTED];
$docName= index.html;

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);
if($ftpConn  $ftpLogin){
$fp = fopen($docName, w);
echo ftp conn :  . $ftpConn . br;
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
error;
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1-GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2-GetViaFTP();// this causes the problem

?

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);





[2001-10-30 18:05:33] [EMAIL PROTECTED]

Please add a SHORT but complete and self-containing script
that uses some public ftp server. And with which this can
be reproduced. 

--Jani




[2001-10-30 07:14:44] [EMAIL PROTECTED]

We are getting the following undocumented error:

Warning: Unable to find ftpbuf 1 in 
/usr/local/httpd/htdocs/sportshop/admin/modules/porter/class/classProductImport.php on 
line 18
(Line:  if(!ftp_fget($ftpLogin, trim($docName), $fp, FTP_BINARY)); )


This script is also beeing called from another script
on the same mashine, and there it works.

(We could nor get any information from search engines
or any of the php-mailing lists.)
-
In script (part of a class):

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);
if($ftpConn  $ftpLogin){
$fp = fopen($tmpDataDir . / . trim($docName), w);
echo ftp conn :  . $ftpConn . br;
if(!ftp_fget($ftpLogin, trim($docName), $fp, FTP_BINARY));
fclose($fp);
}


-
- modules in php ... :

'./configure' 
'--prefix=/usr' 
'--bindir=/usr/bin' 
'--libdir=/usr/lib' 
'--with-config-file-path=/etc' 
'--with-exec-dir=%{libdir}/php/bin' 
'--with-pgsql=/usr' 
'--with-mysql=/usr' 
'--with-gd=yes' 
'--with-tiff-dir=/usr' 
'--with-jpeg-dir=/usr' 
'--with-png-dir=/usr' 
'--with-xpm-dir=/usr/X11R6' 
'--with-pdflib=/usr' 
'--with-ldap=yes' 
'--with-imap=yes' 
'--with-imap-ssl' 
'--with-zlib=yes' 
'--with-bz2' 
'--with-xml' 
'--with-ttf' 
'--with-t1lib' 
'--with-mcal=/usr/include/mcal/' 
'--with-sablot' '--with-readline' 
'--with-ftp' 
'--with-ndbm' 
'--with-gdbm' 
'--with-mcrypt' 
'--with-gettext' 
'--with-curl' 
'--with-mm' 
'--with-gd=yes' 
'--with-qtdom=/usr/lib/qt-2.2.1/' 
'--enable-versioning' 
'--enable-yp' 
'--enable-bcmath' 
'--enable-trans-sid' 

[PHP-DEV] Bug #13868 Updated: Unable to find ftpbuf 1 in ....

2001-10-31 Thread j . parree

ID: 13868
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: FTP related
Operating System: Suse 7.1  -  oldwotan 2.4.3 #1
PHP Version: 4.0.4pl1
New Comment:

A working example:
This example should download an html-file.

?

class ftpimport{

function GetViaFTP(){
$FTPDataHost= 212.227.140.167;
$FTPDataUser= anonymous;
$FTPDataPass= [EMAIL PROTECTED];
$docName= index.html;

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);
if($ftpConn  $ftpLogin){
$fp = fopen($docName, w);
echo ftp conn :  . $ftpConn . br;
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
error;
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1-GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2-GetViaFTP();// this causes the problem

?

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);



Previous Comments:


[2001-10-31 06:15:39] [EMAIL PROTECTED]

A working example:
This example should download an html-file.

?

class ftpimport{

function GetViaFTP(){
$FTPDataHost= 212.227.140.167;
$FTPDataUser= anonymous;
$FTPDataPass= [EMAIL PROTECTED];
$docName= index.html;

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);
if($ftpConn  $ftpLogin){
$fp = fopen($docName, w);
echo ftp conn :  . $ftpConn . br;
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
error;
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1-GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2-GetViaFTP();// this causes the problem

?

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);





[2001-10-31 06:13:56] [EMAIL PROTECTED]

A working example:
This example should download an html-file.

?

class ftpimport{

function GetViaFTP(){
$FTPDataHost= 212.227.140.167;
$FTPDataUser= anonymous;
$FTPDataPass= [EMAIL PROTECTED];
$docName= index.html;

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);
if($ftpConn  $ftpLogin){
$fp = fopen($docName, w);
echo ftp conn :  . $ftpConn . br;
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
error;
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1-GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2-GetViaFTP();// this causes the problem

?

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);





[2001-10-30 18:05:33] [EMAIL PROTECTED]

Please add a SHORT but complete and self-containing script
that uses some public ftp server. And with which this can
be reproduced. 

--Jani




[2001-10-30 07:14:44] [EMAIL PROTECTED]

We are getting the following undocumented error:

Warning: Unable to find ftpbuf 1 in 
/usr/local/httpd/htdocs/sportshop/admin/modules/porter/class/classProductImport.php on 
line 18
(Line:  if(!ftp_fget($ftpLogin, trim($docName), $fp, FTP_BINARY)); )


This script is also beeing called from another script
on the same mashine, and there it 

[PHP-DEV] Bug #13868 Updated: Unable to find ftpbuf 1 in ....

2001-10-31 Thread j . parree

ID: 13868
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: FTP related
Operating System: Suse 7.1  -  oldwotan 2.4.3 #1
PHP Version: 4.0.4pl1
New Comment:

Your site has some strange loading problems.
Sorry, for posting this for three times.

Previous Comments:


[2001-10-31 06:16:19] [EMAIL PROTECTED]

A working example:
This example should download an html-file.

?

class ftpimport{

function GetViaFTP(){
$FTPDataHost= 212.227.140.167;
$FTPDataUser= anonymous;
$FTPDataPass= [EMAIL PROTECTED];
$docName= index.html;

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);
if($ftpConn  $ftpLogin){
$fp = fopen($docName, w);
echo ftp conn :  . $ftpConn . br;
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
error;
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1-GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2-GetViaFTP();// this causes the problem

?

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);





[2001-10-31 06:15:39] [EMAIL PROTECTED]

A working example:
This example should download an html-file.

?

class ftpimport{

function GetViaFTP(){
$FTPDataHost= 212.227.140.167;
$FTPDataUser= anonymous;
$FTPDataPass= [EMAIL PROTECTED];
$docName= index.html;

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);
if($ftpConn  $ftpLogin){
$fp = fopen($docName, w);
echo ftp conn :  . $ftpConn . br;
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
error;
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1-GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2-GetViaFTP();// this causes the problem

?

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);





[2001-10-31 06:13:56] [EMAIL PROTECTED]

A working example:
This example should download an html-file.

?

class ftpimport{

function GetViaFTP(){
$FTPDataHost= 212.227.140.167;
$FTPDataUser= anonymous;
$FTPDataPass= [EMAIL PROTECTED];
$docName= index.html;

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);
if($ftpConn  $ftpLogin){
$fp = fopen($docName, w);
echo ftp conn :  . $ftpConn . br;
if(!ftp_fget($ftpLogin, $fp, trim($docName), FTP_BINARY)) echo 
error;
fclose($fp);
}
ftp_quit($ftpLogin);
}
}

$newImport1 = new ftpimport; // this works
$newImport1-GetViaFTP();// this works

$newImport2 = new ftpimport; // this causes the problem
$newImport2-GetViaFTP();// this causes the problem

?

A solution would be:

$ftpLogin = ftp_login(ftp_connect($FTPDataHost), $FTPDataUser, $FTPDataPass);


Instead of:

$ftpConn = ftp_connect($FTPDataHost);
$ftpLogin = ftp_login($ftpConn, $FTPDataUser, $FTPDataPass);





[2001-10-30 18:05:33] [EMAIL PROTECTED]

Please add a SHORT but complete and self-containing script
that uses some public ftp server. And with which this can
be reproduced. 

--Jani




[2001-10-30 07:14:44] [EMAIL PROTECTED]

We are getting the following undocumented error:

Warning: Unable to find ftpbuf 1 in 

[PHP-DEV] Bug #13884: Arrays does not work good in objects

2001-10-31 Thread starky

From: [EMAIL PROTECTED]
Operating system: Win98
PHP version:  4.0.5
PHP Bug Type: Class/Object related
Bug description:  Arrays does not work good in objects

?
 class test{
  var $items;
  function test1(){
   $this-$items['foo']='test';   
  }
 }
 $test=new test;
 $test-test1();
 echo $test-$items['bar'];
?
last line will output test
-- 
Edit bug report at: http://bugs.php.net/?id=13884edit=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 #13885: gmdate(r); adds timezone instead of 'GMT'.

2001-10-31 Thread root

From: [EMAIL PROTECTED]
Operating system: Windows 2000 SP2
PHP version:  4.0.6
PHP Bug Type: Date/time related
Bug description:  gmdate(r); adds timezone instead of 'GMT'.

The 'r' format string doesn't work as expected:

print(date(r, 1));

Prints: Thu, 1 Jan 1970 01:00:01 +0100

print(gmdate(r,1));

Prints: Thu, 1 Jan 1970 00:00:01 +0100

I think the '+0100' should've been 'GMT'.

(Done on a system with GMT+1)
-- 
Edit bug report at: http://bugs.php.net/?id=13885edit=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 #13885 Updated: gmdate(r); adds timezone instead of 'GMT'.

2001-10-31 Thread rasmus

ID: 13885
Updated by: rasmus
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Date/time related
Operating System: Windows 2000 SP2
PHP Version: 4.0.6
New Comment:

I must be missing something here.  date('r') is intended to display an RFC822 date 
string.  Section 5.1 of RFC822 clearly states that +0100 is a perfectly valid way to 
represent the timezone.  So how is this function not working as expected? 

Previous Comments:


[2001-10-31 06:45:57] [EMAIL PROTECTED]

The 'r' format string doesn't work as expected:

print(date(r, 1));

Prints: Thu, 1 Jan 1970 01:00:01 +0100

print(gmdate(r,1));

Prints: Thu, 1 Jan 1970 00:00:01 +0100

I think the '+0100' should've been 'GMT'.

(Done on a system with GMT+1)





Edit this bug report at http://bugs.php.net/?id=13885edit=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 #13885 Updated: gmdate(r); adds timezone instead of 'GMT'.

2001-10-31 Thread root

ID: 13885
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Date/time related
Operating System: Windows 2000 SP2
PHP Version: 4.0.6
New Comment:

print(date(r, 1));
Prints: Thu, 1 Jan 1970 01:00:01 +0100

This is correct, the local timezone is GMT+1.

print(gmdate(r,1));
Prints: Thu, 1 Jan 1970 00:00:01 +0100

This is wrong, it outputs the GMT date  time, but with the timezone +0100 instead 
of GMT. Thus equaling a date of Wed, 31 Dec 1969 23:00:01 GMT, which is obviously 
not 1 second after the start of the unix epoch.

Previous Comments:


[2001-10-31 07:00:49] [EMAIL PROTECTED]

I must be missing something here.  date('r') is intended to display an RFC822 date 
string.  Section 5.1 of RFC822 clearly states that +0100 is a perfectly valid way to 
represent the timezone.  So how is this function not working as expected? 



[2001-10-31 06:45:57] [EMAIL PROTECTED]

The 'r' format string doesn't work as expected:

print(date(r, 1));

Prints: Thu, 1 Jan 1970 01:00:01 +0100

print(gmdate(r,1));

Prints: Thu, 1 Jan 1970 00:00:01 +0100

I think the '+0100' should've been 'GMT'.

(Done on a system with GMT+1)





Edit this bug report at http://bugs.php.net/?id=13885edit=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 #13886: PHP crashes on calling a shell based program without a total search path

2001-10-31 Thread edo

From: [EMAIL PROTECTED]
Operating system: Windows 98
PHP version:  4.0.6
PHP Bug Type: Reproducible crash
Bug description:  PHP crashes on calling a shell based program without a total search 
path

Whe I execute the script below direct from the command line (e.g.c:\php
crash.php), php crashes.
1.) the command echo `perl -h`; is executed, it displays the 'help desk'
from perl correctly
2.) the command echo `c:\\command.com /C echo hallo`; is executed this
runs and display hello, but
3.) the command echo `echo hallo`; displays ...Warning unable to
execute... but shows the windows Application crash Dialog, after closing
this Dialog the script terminate, without execute more lines.

Best regards
Ekkehard Domning
-=-=-=- Script contents -=-=-=-
?php
// This works
echo `perl -h`;
// This too
echo `c:\\command.com /C echo hallo`;

// This crashes
echo `echo hallo`;

?
-=-=-=- Script contents end-=-=-=-
-=-=-=- Script Output -=-=-=-
[...]
hallo
br
bWarning/b:  Unable to execute 'echo hallo' in bcrash.php/b on line
b10/bbr
-=-=-=- Script Output end-=-=-=-

-=-=-=- Windows Application Error Dialogbox  -=-=-=-
PHP verursachte einen Fehler durch eine ungültige Seite
in Modul KERNEL32.DLL bei 0177:bff7b983.
Register:
EAX=0020 CS=0177 EIP=bff7b983 EFLGS=00010202
EBX=7802347e SS=017f ESP=0063f7e4 EBP=0063f820
ECX=7803ad88 DS=017f ESI=0020 FS=4caf
EDX=00790550 ES=017f EDI= GS=
Bytes bei CS:EIP:
80 3e 04 74 0f 33 c0 50 50 50 68 05 00 00 c0 e8 
Stapelwerte:
0065d800 780101e8 0020 780234a9   0065d800 7802347e
78001409 1010 0063f614 0063fe28 7800e492 780342a8   
-=-=-=- Windows Application Error Dialogbox  end-=-=-=-

-- 
Edit bug report at: http://bugs.php.net/?id=13886edit=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 #13885 Updated: gmdate(r); adds timezone instead of 'GMT'.

2001-10-31 Thread rasmus

ID: 13885
Updated by: rasmus
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Date/time related
Operating System: Windows 2000 SP2
PHP Version: 4.0.6
New Comment:

Ah, ok.  Too early in the morning here.  Looks like a Windows-specific issue as your 
test displays this on my Linux box:
Wed, 31 Dec 1969 16:00:01 -0800
Thu,  1 Jan 1970 00:00:01 +


Previous Comments:


[2001-10-31 07:11:04] [EMAIL PROTECTED]

print(date(r, 1));
Prints: Thu, 1 Jan 1970 01:00:01 +0100

This is correct, the local timezone is GMT+1.

print(gmdate(r,1));
Prints: Thu, 1 Jan 1970 00:00:01 +0100

This is wrong, it outputs the GMT date  time, but with the timezone +0100 instead 
of GMT. Thus equaling a date of Wed, 31 Dec 1969 23:00:01 GMT, which is obviously 
not 1 second after the start of the unix epoch.



[2001-10-31 07:00:49] [EMAIL PROTECTED]

I must be missing something here.  date('r') is intended to display an RFC822 date 
string.  Section 5.1 of RFC822 clearly states that +0100 is a perfectly valid way to 
represent the timezone.  So how is this function not working as expected? 



[2001-10-31 06:45:57] [EMAIL PROTECTED]

The 'r' format string doesn't work as expected:

print(date(r, 1));

Prints: Thu, 1 Jan 1970 01:00:01 +0100

print(gmdate(r,1));

Prints: Thu, 1 Jan 1970 00:00:01 +0100

I think the '+0100' should've been 'GMT'.

(Done on a system with GMT+1)





Edit this bug report at http://bugs.php.net/?id=13885edit=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-LANG] Feature or bug?

2001-10-31 Thread Jeroen van Wolffelaar
Yasuo wrote:
 PHP does not report any errors for too many parameters for user
 defined functions, both normal function and class method :(

 Is PHP designed not to report error for this?
 Too many parameters for a function is obvious error and any
 language MUST report error for this, unless variable length of
 parameters is allowed. IMO

php.lang is for language documumentation. Use php-dev for this kind of
issues.

And yes, that is intended. You need it when you do you own argument
handling:
function printall()
{
foreach (function_get_args() as $arg) {
echo "$arg\n";
}
}

--Jeroen


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


Re: [PHP-DEV] Re: Bug #13700: Database Abstraction API

2001-10-31 Thread Manuel Lemos

Hello,

Pierre-Alain Joye wrote:
 
 Hello,
 
 Not really an expert in both pear or metabase (just tests experiences). imho one 
thing is sure, both got advantage and feel with a completly different approach 
(philosophy ?) of an db abstraction layer.
 There is many ways to create an abstractions layer, every way will be usefull for a 
need and completly useless for another one. Just a question of what people will do, 
got many choices increases the global goals of php.
 And I just think you will better to discuss the real goals of your own philisophy 
and how to make it better. The way of Mine is better, your not just makes no sense 
(in dev-ml ;). I just read a few weeks ago another thread from Manuel and Markus; I 
don't remember any question about the goals, approachs or definitions of What is a 
real Abstraction Layer ? and for which use ?.
 Maybe you will better start at this point ? And will follow the threads with all my 
attention.

What I think is that an abstraction package is only useful if it
provides full database independence for the applications that use it.

If you use an abstraction package and you still have to deal with
database specific ways of doing things, you'd better not use a
abstraction package because you will still have to port your application
to run with different databases and the abstraction package may even add
some runtime overhead.

Metabase API provides as much database independence to applications as
possible. It supports a rich data type set that covers almost all types
that databases use, including large objects (BLOBs/CLOBs), sequences,
transactions, direct/prepared queries, retrieving ranges of rows of
select queries result and of course database schema management.

What is missing? Stored procedures. If you really want to take the
maximum of performance of a database, you need to use stored procedures
as much as you can. These will be handled in a special way but also in a
database independent manner.

Stored procedures are not available in all databases and those that have
them have their own procedure language. The plan is to use
Meta-programming to generate stored procedures code for each database
using an high level meta-language that abstracts a common set of stored
procedures commands.

The meta-language compiler will be able to generate stored procedures
for all popular databases: PostgreSQL, Oracle, MS SQL server, etc... For
databases that do not support stored procedures, the compiler can
generate normal PHP code that uses Metabase to reproduce the store
procedure behaviour on the database client side. As a matter of fact,
since it will use Metabase, these client side procedures can be used
even with databases that support stored procedures.

This will be a subject that I will be addressing in my talk in the PHP
Conference next week in Frankfurt. If you are nearby Germany, just get
there to learn about it. For now more information about Meta-programming
is available at http://www.meta-language.net/ but I am not mentioning
anything about database procedure meta-language there yet.

Regards,
Manuel Lemos

-- 
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 #12952 Updated: Output buffering misbehaving

2001-10-31 Thread ryan_sokol

ID: 12952
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Output Control
Operating System: RedHat 7.2
PHP Version: 4.0.6
New Comment:

Yes, snapshot php4-200110301200 fixed this problem.  When will the next stable release 
come out?

Previous Comments:


[2001-10-30 19:07:33] [EMAIL PROTECTED]

Does this happen with latest CVS snapshot from 
http://snaps.php.net/ ?




[2001-10-30 16:40:02] [EMAIL PROTECTED]

Almost forgot, I also get this in my Apache error_log:

[Tue Oct 30 15:36:56 2001] [notice] child pid 4831 exit signal Segmentation fault (11)



[2001-10-30 15:35:30] [EMAIL PROTECTED]

Changed the bug type, OS, and Summary.  

After unsuccessfully trying to get a backtrace (got a Segmentation Fault and Document 
contains no data, but could not generate a core file nor force a crash on httpd in 
gdb), I have concluded that this has to do with the 
--enable-trans-sid option AND ob_end_flush() on PHP 4.0.6.  When I compile PHP WITHOUT 
the --enable-trans-sid, I have no problems (except I need the trans-sid for my 
sessions).  But when I recompile PHP WITH --enable-trans-sid, I get the Segmentation 
Fault and Document contains no data errors.

I think this is related to Bug# 12180. Again, the code (see above) did not change from 
PHP 4.0.4pl1 to PHP 4.0.6, but the result of execution did.



[2001-10-26 18:06:58] [EMAIL PROTECTED]

Note:  The function sessionResume() simply checks if a session exists for the user and 
continues it if it does or starts a new one if it doesn't.



[2001-08-24 17:24:36] [EMAIL PROTECTED]

Here's my configure line:
'./configure' '-with-apxs' '--enable-track-vars' '--disable-debug' '--enable-sysvshm' 
'-enable-sysvsem' '-enable-trans-sid'

I have been running PHP 4.0.4pl1 with no problems for about 5 months and tried to move 
to PHP 4.0.6.  The code below produced an undisplayable page in 4.0.6 but works fine 
in 4.0.4pl1:
///
ob_start();
if (sessionResume() == false)
{
  // some error handling code here  
include error.fre;
return;
}
else
{
   // some more logic here
   if($loginTo != '') // means would rather go to another page, probably from bookmark
   header(Location:  . $loginTo . PHPSESS= . session_id());
else
include member-home.fre;

}
ob_end_flush();
///

What happens when I run this code is IE gives me a Page cannot be displayed screen.  
I am positive this has something to do with 4.0.6 because I had 4.0.4pl1 installed, 
then upgraded to 4.0.6 and got the error, and then downgraded back to 4.0.4pl1 (where 
it worked properly again) without changing one line of code or anything in php.ini.

Sorry I can't offer any suggestions, but let me know if I can help track this one down.





Edit this bug report at http://bugs.php.net/?id=12952edit=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 #12952 Updated: Output buffering misbehaving

2001-10-31 Thread derick

ID: 12952
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Output Control
Operating System: RedHat 7.2
PHP Version: 4.0.6
New Comment:

As soon as we think it's ready.

Previous Comments:


[2001-10-31 10:05:13] [EMAIL PROTECTED]

Yes, snapshot php4-200110301200 fixed this problem.  When will the next stable release 
come out?



[2001-10-30 19:07:33] [EMAIL PROTECTED]

Does this happen with latest CVS snapshot from 
http://snaps.php.net/ ?




[2001-10-30 16:40:02] [EMAIL PROTECTED]

Almost forgot, I also get this in my Apache error_log:

[Tue Oct 30 15:36:56 2001] [notice] child pid 4831 exit signal Segmentation fault (11)



[2001-10-30 15:35:30] [EMAIL PROTECTED]

Changed the bug type, OS, and Summary.  

After unsuccessfully trying to get a backtrace (got a Segmentation Fault and Document 
contains no data, but could not generate a core file nor force a crash on httpd in 
gdb), I have concluded that this has to do with the 
--enable-trans-sid option AND ob_end_flush() on PHP 4.0.6.  When I compile PHP WITHOUT 
the --enable-trans-sid, I have no problems (except I need the trans-sid for my 
sessions).  But when I recompile PHP WITH --enable-trans-sid, I get the Segmentation 
Fault and Document contains no data errors.

I think this is related to Bug# 12180. Again, the code (see above) did not change from 
PHP 4.0.4pl1 to PHP 4.0.6, but the result of execution did.



[2001-10-26 18:06:58] [EMAIL PROTECTED]

Note:  The function sessionResume() simply checks if a session exists for the user and 
continues it if it does or starts a new one if it doesn't.



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


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


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




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

2001-10-31 Thread mark . gebhart

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



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


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




[PHP-DEV] CVS Account Request: vicviper

2001-10-31 Thread Shinhyun MIN

^^; Be happy~

-- 
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 #13888: Date + October

2001-10-31 Thread pmartinez

From: [EMAIL PROTECTED]
Operating system: Red Hat 6.2
PHP version:  4.0.4pl1
PHP Bug Type: Date/time related
Bug description:  Date + October

I have a problem with date() function;

In my PC, Today is 31-October-2001.
I would like to obtain precedent month and next month with this clause:

$month_before = date('m', 
mktime(0,0,0,date(m)-1,date(d),date(Y)));

$month_next = date('m',  mktime(0,0,0,date(m)+1,date(d),date(Y)));

Surprisingly, I get this result:
$month_before is equal to 10
$month_next is equal to 12

This error just ocurrs this day 31-10-2001. Another day is ok.

I don't understand it !!!

Can anyone help me ??
-- 
Edit bug report at: http://bugs.php.net/?id=13888edit=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 #13888 Updated: Date + October

2001-10-31 Thread cnewbill

ID: 13888
Updated by: cnewbill
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Bogus
Bug Type: Date/time related
Operating System: Red Hat 6.2
PHP Version: 4.0.4pl1
New Comment:

There is no Novemeber 31st, this is why it is returning December; it skips to the 
equivalent day which would be the 1st of Dec. Same with Septemeber.

This is desired behavior.

-Chris


Previous Comments:


[2001-10-31 12:07:52] [EMAIL PROTECTED]

might be daylight saving time related?

it's always better to use mktime(12,0,0,...
instead of mktime(0,0,0,... 
when you care about date only but not time ...



[2001-10-31 11:57:25] [EMAIL PROTECTED]

I have a problem with date() function;

In my PC, Today is 31-October-2001.
I would like to obtain precedent month and next month with this clause:

$month_before = date('m',  mktime(0,0,0,date(m)-1,date(d),date(Y)));

$month_next = date('m',  mktime(0,0,0,date(m)+1,date(d),date(Y)));

Surprisingly, I get this result:
$month_before is equal to 10
$month_next is equal to 12

This error just ocurrs this day 31-10-2001. Another day is ok.

I don't understand it !!!

Can anyone help me ??





Edit this bug report at http://bugs.php.net/?id=13888edit=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 #13888 Updated: Date + October

2001-10-31 Thread hholzgra

ID: 13888
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Date/time related
Operating System: Red Hat 6.2
PHP Version: 4.0.4pl1
New Comment:

might be daylight saving time related?

it's always better to use mktime(12,0,0,...
instead of mktime(0,0,0,... 
when you care about date only but not time ...

Previous Comments:


[2001-10-31 11:57:25] [EMAIL PROTECTED]

I have a problem with date() function;

In my PC, Today is 31-October-2001.
I would like to obtain precedent month and next month with this clause:

$month_before = date('m',  mktime(0,0,0,date(m)-1,date(d),date(Y)));

$month_next = date('m',  mktime(0,0,0,date(m)+1,date(d),date(Y)));

Surprisingly, I get this result:
$month_before is equal to 10
$month_next is equal to 12

This error just ocurrs this day 31-10-2001. Another day is ok.

I don't understand it !!!

Can anyone help me ??





Edit this bug report at http://bugs.php.net/?id=13888edit=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 #13888 Updated: Date + October

2001-10-31 Thread pmartinez

ID: 13888
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Date/time related
Operating System: Red Hat 6.2
PHP Version: 4.0.4pl1
New Comment:

I'm disagree with cnewbill.

For example in 30 Apr, next was 01 May, and in 30 Jun next was 01 Jul.

Why in october doesn't it work?

Previous Comments:


[2001-10-31 12:11:16] [EMAIL PROTECTED]

There is no Novemeber 31st, this is why it is returning December; it skips to the 
equivalent day which would be the 1st of Dec. Same with Septemeber.

This is desired behavior.

-Chris




[2001-10-31 12:07:52] [EMAIL PROTECTED]

might be daylight saving time related?

it's always better to use mktime(12,0,0,...
instead of mktime(0,0,0,... 
when you care about date only but not time ...



[2001-10-31 11:57:25] [EMAIL PROTECTED]

I have a problem with date() function;

In my PC, Today is 31-October-2001.
I would like to obtain precedent month and next month with this clause:

$month_before = date('m',  mktime(0,0,0,date(m)-1,date(d),date(Y)));

$month_next = date('m',  mktime(0,0,0,date(m)+1,date(d),date(Y)));

Surprisingly, I get this result:
$month_before is equal to 10
$month_next is equal to 12

This error just ocurrs this day 31-10-2001. Another day is ok.

I don't understand it !!!

Can anyone help me ??





Edit this bug report at http://bugs.php.net/?id=13888edit=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 #13889: FORM variables not passed with php.ini-optimized

2001-10-31 Thread jdousa

From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.0.6
PHP Bug Type: PHP options/info functions
Bug description:  FORM variables not passed with php.ini-optimized

FORM variables are not passed when php.ini-optimized is used for
C:\WINNT\php.ini.

The workaround is to use php.ini-dist instead.
-- 
Edit bug report at: http://bugs.php.net/?id=13889edit=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 #13888 Updated: Date + October

2001-10-31 Thread cnewbill

ID: 13888
Updated by: cnewbill
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Date/time related
Operating System: Red Hat 6.2
PHP Version: 4.0.4pl1
New Comment:

Again same result and same reason.  What does April 30th and June 30th have to do with 
your problem??

Last I checked the calendar works like this

So you're telling me that 9/31 isn't the same calendar day as October 1st and 
Novemember 31st isn't the same calendar day as Dec 1st??

Sept   Oct  Nov  Dec
30 1 2 3 ... 31 1 2 3 ... 30 1 2 3

?php

print May\n;
print Before: .date(m, mktime(0,0,0,(5-1),31,2001)).\n;
print After: .date(m, mktime(0,0,0,(5+1),31,2001)). \n;

print October\n;
print Before: .date(m, mktime(0,0,0,(10-1),31,2001)).\n;
print After: .date(m, mktime(0,0,0,(10+1),31,2001)). \n;

?

[cnewbill@storm cnewbill]$ php -q t.php
May
Before: 05
After: 07
October
Before: 10
After: 12

-Chris

Previous Comments:


[2001-10-31 12:26:45] [EMAIL PROTECTED]

I'm disagree with cnewbill.

For example in 30 Apr, next was 01 May, and in 30 Jun next was 01 Jul.

Why in october doesn't it work?



[2001-10-31 12:11:16] [EMAIL PROTECTED]

There is no Novemeber 31st, this is why it is returning December; it skips to the 
equivalent day which would be the 1st of Dec. Same with Septemeber.

This is desired behavior.

-Chris




[2001-10-31 12:07:52] [EMAIL PROTECTED]

might be daylight saving time related?

it's always better to use mktime(12,0,0,...
instead of mktime(0,0,0,... 
when you care about date only but not time ...



[2001-10-31 11:57:25] [EMAIL PROTECTED]

I have a problem with date() function;

In my PC, Today is 31-October-2001.
I would like to obtain precedent month and next month with this clause:

$month_before = date('m',  mktime(0,0,0,date(m)-1,date(d),date(Y)));

$month_next = date('m',  mktime(0,0,0,date(m)+1,date(d),date(Y)));

Surprisingly, I get this result:
$month_before is equal to 10
$month_next is equal to 12

This error just ocurrs this day 31-10-2001. Another day is ok.

I don't understand it !!!

Can anyone help me ??





Edit this bug report at http://bugs.php.net/?id=13888edit=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 #13884 Updated: Arrays does not work good in objects

2001-10-31 Thread cnewbill

ID: 13884
Updated by: cnewbill
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Class/Object related
Operating System: Win98
PHP Version: 4.0.6
New Comment:

RTFM
http://www.php.net/manual/en/language.oop.php

HINT: You should not be using a $

WRONG : $this-$items['foo']='test';
RIGHT : $this-items['foo']='test';

WRONG : echo $test-$items['bar']; (unless you had a global items array with 
items['bar'] = items['foo'])
RIGHT : echo $test-items['bar'];

-Chris

Previous Comments:


[2001-10-31 06:17:50] [EMAIL PROTECTED]

?
 class test{
  var $items;
  function test1(){
   $this-$items['foo']='test';   
  }
 }
 $test=new test;
 $test-test1();
 echo $test-$items['bar'];
?
last line will output test





Edit this bug report at http://bugs.php.net/?id=13884edit=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 #13889 Updated: FORM variables not passed with php.ini-optimized

2001-10-31 Thread derick

ID: 13889
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: PHP options/info functions
Operating System: Windows 2000
PHP Version: 4.0.6
New Comment:

Probably not a bug. Ask for support questions on the [EMAIL PROTECTED] 
mailinglist.

Previous Comments:


[2001-10-31 12:28:40] [EMAIL PROTECTED]

FORM variables are not passed when php.ini-optimized is used for C:\WINNT\php.ini.

The workaround is to use php.ini-dist instead.





Edit this bug report at http://bugs.php.net/?id=13889edit=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 #13891: bug in sapi/apache/mod_php4.c

2001-10-31 Thread christophschaefer

From: [EMAIL PROTECTED]
Operating system: Digital Unix 4.0D
PHP version:  4.0.5
PHP Bug Type: Compile Failure
Bug description:  bug in sapi/apache/mod_php4.c

/*  r-connection-ap_auth_type = Basic;*/
r-connection-auth_type =Basic;

.../sapi/apache/mod_php4.c line 402

the record reference to 'ap_auth_type' is not a vaild member. should be
only 'auth_type'.

i changed it. works.

cheers
christoph
-- 
Edit bug report at: http://bugs.php.net/?id=13891edit=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 #3777 Updated: Dbase_create fails to recognize array of arrays

2001-10-31 Thread sniper

ID: 3777
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: dBase related
Operating System: Solaris 2.7
PHP Version: 4.0b4pl1
New Comment:

Works fine with latest CVS.

--Jani


Previous Comments:


[2001-02-10 15:57:17] [EMAIL PROTECTED]

fixing version number in report.



[2000-03-08 20:28:28] [EMAIL PROTECTED]

under 4.0b4p1  for apachemodules and standalone binary
dbase_create fails with message
 second parameter must be array of arrays in ... 

this same fcn runs under 3.0.15
and runs correctly under linux rh6.1 with 4.0b4p1

compiler was gcc 2.95.2

flags were



scripts was
?php

$dcfile = '/tables/ave/datacat/datacat.dbf';

$dbfdef = array (
 array ('DATASRC','C',100,0),
 array ('DATALIMIT','C',250,0),
 array ('DATACLLCT','C',250,0),
 array ('DATADESCR','C',250,0),
 array ('DATANAME','C',80,0),
 array ('LEGEND_SRC','C',80,0),
  array ('CATEGORY','C',30,0),
  array ('SCRIPT','C',80,0)
);

$dbf = dbase_create ($dcfile, $dbfdef);
if ( !$dbf ) { echo unable to create file!!!br/body/html; exit; }

?
 








Edit this bug report at http://bugs.php.net/?id=3777edit=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 #13882 Updated: parent class isn`t correctly resolved when child class is included

2001-10-31 Thread sniper

ID: 13882
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Windows
PHP Version: 4.0.6
New Comment:

Works fine here with latest CVS. Try the latest dev build from:

http://www.php4win.com/

--Jani


Previous Comments:


[2001-10-31 04:28:22] [EMAIL PROTECTED]

Code:

-- ClassA.php contents --
?php
class A
{
  function Test()
  {
echo A::Test\n;
  }
}
?

-- Test.php contents 
?php
include_once('ClassA.php');
class B extends A
{
  function Test()
  {
parent::Test();
  }
}

B::Test();
?

-
Try to execute Test.php - for example, type 
php.exe -q Test.php - i recieved application error 
message on this.

The problem seems to be in a buggy parent resove algorithm. 
On such a cases it incorrectly resolves 
parent - to class itself (it results in infinite recursion) 
or raises an exception (the memory coudn`t be read).

This problem can be solved by using real parent`s class 
name except parent::, or by doing all such includes on 
the same level -- if some class is included (by 
include, require, include_once, require_once), all their 
child classes must be included before the line where parent 
is included.






Edit this bug report at http://bugs.php.net/?id=13882edit=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 #13873 Updated: wddx_*() functions only handle ascii

2001-10-31 Thread sniper

ID: 13873
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: WDDX related
Operating System: Linux
PHP Version: 4.0.6
New Comment:

What are your:

- linux distribution
- configure line for PHP

--Jani


Previous Comments:


[2001-10-31 05:41:33] [EMAIL PROTECTED]

No, it still doesn't work here. I got the latest (oct 31) snap from snaps.php.net:

  # ./configure --with-xml --enable-wddx
  # make
  # ./php wddx_test.php
  X-Powered-By: PHP/4.2.0-dev
  Content-type: text/html

  xyz???

wddx_test.php contains the one-liner submitted in my original report:
  print wddx_deserialize(wddx_serialize_value(xyzåäö));

/Johan




[2001-10-30 18:15:32] [EMAIL PROTECTED]

Works fine for me with latest CVS. Try a snapshot from
http://snaps.php.net/

--Jani




[2001-10-30 11:01:23] [EMAIL PROTECTED]

It seems that the wddx_*() functions only handle US-ASCII, although I see a referense 
to ISO-8859-1 and UTF-8 in the source:

   print wddx_deserialize(wddx_serialize_value(xyzåäö));

produces:

   xyz???







Edit this bug report at http://bugs.php.net/?id=13873edit=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 #13636 Updated: configure doesn't find librecode

2001-10-31 Thread sniper

ID: 13636
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Recode related
Operating System: FreeBSD 4.1-RELEASE
PHP Version: 4.0.6
New Comment:

What does 'ldd librecode.so' output?
What version of recode is this?
How was it compiled?

--Jani


Previous Comments:


[2001-10-11 21:01:00] [EMAIL PROTECTED]

config.log says:

[...]
configure:44401: checking for recode support
configure:44483: gcc -o conftest -g -O2  -DSUPPORT_UTF8  -L/usr/local/lib conftest.c 
-lgd -lcrypt -lm  -lrecode 15
/usr/local/lib/librecode.so: undefined reference to `error'
configure: failed program was:
#line 44472 configure
#include confdefs.h

char *program_name;

int main() {

recode_format_table();

; return 0; }

what does this mean?



[2001-10-11 13:30:40] [EMAIL PROTECTED]

Check config.log for possible error why the linking 
failed. It's not likely to be recode which fails here.

--Jani




[2001-10-10 23:23:14] [EMAIL PROTECTED]

recode is installed from ports in /usr/local/

contents of /usr/local/lib:
librecode.a
librecode.so
librecode.so.3

contents of /usr/local/include:
recode.h
recodext.h

./configure --with-recode --with-mysql --with-apache=../apache_1.3.20 --with-gd 
--enable-track-vars

says:

[...]
checking for recode support... yes
configure: error: I cannot link librecode (-L/usr/local/lib -lrecode). Is it 
installed?






Edit this bug report at http://bugs.php.net/?id=13636edit=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 #13572 Updated: fread doesn't read from udp sockets

2001-10-31 Thread sniper

ID: 13572
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Sockets related
Operating System: Windows 2k/Linux
PHP Version: 4.0.6
New Comment:

You didn't try the example script from the manual.
Please try it. And what 'similar c program' are you
referring to? Are the sources somewhere available to see?


--Jani


Previous Comments:


[2001-10-07 09:26:10] [EMAIL PROTECTED]

i tried now:
  $fp=fsockopen(udp://10.0.0.2, $mudport, $errno,$errstr);

  socket_set_timeout($fp, 3);

  if($fp)
  {
   echo con: okbr;
   fwrite($fp, $query_string);
   echo fread($fp, 100);
   fclose($fp);
  }

result is, that php still does not receive an answer from the request (php4.0.7rc3 
compiled as cgi for linux)

tcpdump proves, that there was an answer:
15:22:30.654252 10.0.0.1.1062  10.0.0.2.4246: udp 39
15:22:30.661213 10.0.0.2.4246  10.0.0.1.4246: udp 126





[2001-10-06 20:20:45] [EMAIL PROTECTED]

Does the example UDP script on the manual page for fsockopen() work for you? It does 
for me so I doubt this is a bug..

--Jani





[2001-10-06 04:31:49] [EMAIL PROTECTED]

i used fsockopen(udp://$host, $port )
socket_set_blocking($fp, FALSE)






[2001-10-06 04:26:18] [EMAIL PROTECTED]

In 4.0.7 a new socket has been introduced. Did you used it?

- markus



[2001-10-06 04:04:24] [EMAIL PROTECTED]

socket's set to non-blocking, opened at port  udp

 $start=time();
 while((time()-$start)2)
 {
  $res=fread($fp2, 100);
  echo $res\n;
 }

no answer from udp socket... a similar c program works

btw: in php4.0.7rc3 the problem isn't fixed






Edit this bug report at http://bugs.php.net/?id=13572edit=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 #13891 Updated: bug in sapi/apache/mod_php4.c

2001-10-31 Thread sniper

ID: 13891
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Compile Failure
Operating System: Digital Unix 4.0D
PHP Version: 4.0.5
New Comment:

Works fine with latest CVS. Try the snapshot from http://snaps.php.net/

And what is the problem/error you get if this is not changed? What version of Apache 
do you have?

--Jani


Previous Comments:


[2001-10-31 18:07:11] [EMAIL PROTECTED]

/*  r-connection-ap_auth_type = Basic;*/
r-connection-auth_type =Basic;

.../sapi/apache/mod_php4.c line 402

the record reference to 'ap_auth_type' is not a vaild member. should be only 
'auth_type'.

i changed it. works.

cheers
christoph





Edit this bug report at http://bugs.php.net/?id=13891edit=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 #13892: too many number of parameters

2001-10-31 Thread yasuo_ohgaki

From: [EMAIL PROTECTED]
Operating system: any
PHP version:  4.0.6
PHP Bug Type: Feature/Change Request
Bug description:  too many number of parameters

Currently, it seems PHP is designed NOT to report errors for too many
paramaters for user defined functions.

... for variable length paramters. Raise error without ..., for
example.

function foo($var1, $var2, ...)

assert(count(function_get_args()) = 3);
or like can be used to check num of paramters, but module functions checks
num of parameters. User functions are better to behave the same way by
default. IMHO.
-- 
Edit bug report at: http://bugs.php.net/?id=13892edit=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 #13883 Updated: compilation module php4 avec apache

2001-10-31 Thread sniper

ID: 13883
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Bogus
Status: Feedback
Old Bug Type: *Web Server problem
Bug Type: Compile Failure
Operating System: AIX 4.3
PHP Version: 4.0.6
New Comment:

Please try the latest CVS snapshot from http://snaps.php.net/

--Jani


Previous Comments:


[2001-10-31 05:42:09] [EMAIL PROTECTED]

when i compilating apache for it take php_modules. i have this error.

Thanks



[2001-10-31 05:23:17] [EMAIL PROTECTED]

report in english please



[2001-10-31 05:09:34] [EMAIL PROTECTED]

En compilant Apache pour qu'il prenne en compte le module php, voilà ce que j'obtiens
Merci 
Creating Makefile in src
 + configured for IBM AIX 4.3 platform
 + setting C compiler to cc
 + setting C pre-processor to cc -E
 + checking for system header files
 + adding selected modules
o php4_module uses ConfigStart/End
 + checking sizeof various data types
 + doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed.  The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

cd ..; cc  -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__ 
-DAIX_BIND_PROCESSOR -qnogenpcomp -qnousepcomp -I/apache/p
hp-4.0.6 -I/apache/php-4.0.6/main -I/apache/php-4.0.6/main -I/apache/php-4.0.6/Zend 
-I/apache/php-4.0.6/Zend -I/apache/php-4.0.6
/TSRM -I/apache/php-4.0.6/TSRM -I/apache/php-4.0.6 -DUSE_EXPAT -I./lib/expat-lite 
-DNO_DL_NEEDED `./apaci`   -lm -lpthread  -o h
elpers/dummy helpers/dummy.c   -R/usr/informix/lib -R/usr/informix/lib/esql  
-L/usr/informix/lib -L/usr/informix/lib/esql -Lmodu
les/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4   -lifos -lifgen -lifsql 
-lifasf -lifos -lifgen -lifgls -ltli -l/netst
ub -lc -lmsaa -lbsd -ldl -lifglx -ldl -lcrypt -lbind -lm -ldl
ld: 0706-027 The -R /usr/informix/lib flag is ignored.
ld: 0706-027 The -R /usr/informix/lib/esql flag is ignored.
ld: 0706-006 Cannot find or open library file: -l /netstub
ld:open(): No such file or directory
make: The error code from the last command is 255.


Stop.
 Error Output for sanity check 
= End of Error Report =

 Aborting!





Edit this bug report at http://bugs.php.net/?id=13883edit=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 #12522 Updated: start apache, php4 /usr/local/apache/libexec/libphp4.so: unresolved external

2001-10-31 Thread sniper

ID: 12522
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Dynamic loading
Operating System: hp-ux 11
PHP Version: 4.0.6
New Comment:

What are the full error messages? You only pasted parts of them.
And what is your LD_LIBRARY_PATH set to?
Where are the oci libs installed?
And what was the configure line used for configuring PHP ?

--Jani



Previous Comments:


[2001-10-30 23:30:35] [EMAIL PROTECTED]

hi 
I do have LD_LIBRARY_PATH .




[2001-10-30 22:57:58] [EMAIL PROTECTED]

Do you have the path to the oracle libs in your LD_LIBRARY_PATH ?




[2001-08-01 17:45:19] [EMAIL PROTECTED]

i added php4 with oci8 to apache1.3.19 when i am resatrting apache i am getting an 
error message 
/usr/lib/dld.sl: unresolved symbol: (OCI functions) from 
/usr/local/apache/libexec/libphp4.so
/usr/local/apache/libexec/libphp4.so: unresolved external

And i am not able starting the apache webserver.





Edit this bug report at http://bugs.php.net/?id=12522edit=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 #13893: win32_apache_mod_ssl + php = crash

2001-10-31 Thread jyrgen

From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.0.6
PHP Bug Type: Reproducible crash
Bug description:  win32_apache_mod_ssl + php = crash

Hi!

there seems to be a conflict in attaching together:
os : w2k

Apache/1.3.22
PHP/4.0.6
mod_ssl/2.8.5
OpenSSL/0.9.6b

the error message :
 --
[Thu Nov 01 02:36:51 2001] [warn] Loaded DSO
c:/www/php/sapi/php4apache.dll
uses plain Apache 1.3 API, this module might crash under EAPI! (please
recompile it with -DEAPI)

Apache/1.3.22 (Win32) PHP/4.0.6 mod_ssl/2.8.5 OpenSSL/0.9.6b running...
 --
  immidiate crash
 --
 
 shows that php's library uses so called API interface and mod-ssl
apache
compilation expects EAPI compiled version ...

 any ideas how to get past apache generated errors and will be shut down
ok message ?

or how to get a -DEAPI compiled version of php-modules ...


if i try loading php as CGI it gave out error 400 
Invalid URI in request GET /index.php HTTP/1.0

there seems to be something unfittable for php in apache+mod_ssl for win32
...

any ideas / hints are welcomed ...




thanks in advance,
 Jürgen

-- 
Edit bug report at: http://bugs.php.net/?id=13893edit=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 #12522 Updated: start apache, php4 /usr/local/apache/libexec/libphp4.so: unresolved external

2001-10-31 Thread nadendlas

ID: 12522
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Dynamic loading
Operating System: hp-ux 11
PHP Version: 4.0.6
New Comment:


This is build in HP-UX 11 . apache. PHP4, ORACLE8.
And what is your LD_LIBRARY_PATH set to?
LD_LIBRARY_PATH = /opt/oracle/product/8.1.7/lib/
Where are the oci libs installed?
OCI8 Libs are in /opt/php-4.0.6/ext/oci8/And what was the configure line used for 
configuring PHP ?
./configure \
 --with-apxs=/opt/apache/bin/apxs \
 --with-oci8 \
 --enable-track-vars

-Srikanth

Previous Comments:


[2001-10-31 19:41:52] [EMAIL PROTECTED]

What are the full error messages? You only pasted parts of them.
And what is your LD_LIBRARY_PATH set to?
Where are the oci libs installed?
And what was the configure line used for configuring PHP ?

--Jani





[2001-10-30 23:30:35] [EMAIL PROTECTED]

hi 
I do have LD_LIBRARY_PATH .




[2001-10-30 22:57:58] [EMAIL PROTECTED]

Do you have the path to the oracle libs in your LD_LIBRARY_PATH ?




[2001-08-01 17:45:19] [EMAIL PROTECTED]

i added php4 with oci8 to apache1.3.19 when i am resatrting apache i am getting an 
error message 
/usr/lib/dld.sl: unresolved symbol: (OCI functions) from 
/usr/local/apache/libexec/libphp4.so
/usr/local/apache/libexec/libphp4.so: unresolved external

And i am not able starting the apache webserver.





Edit this bug report at http://bugs.php.net/?id=12522edit=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 #13893 Updated: win32_apache_mod_ssl + php = crash

2001-10-31 Thread jyrgen

ID: 13893
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating System: Windows 2000
PHP Version: 4.0.6
New Comment:


using php 4.0.8 gave :

-

Syntax error on line 196 of c:/server/apache/conf/httpd.conf: Cannot load 
c:/www/php/sapi/php4apache.dll into server: (127) The specified procedure could not be 
found:

-

and using php from commandline (and gave a file.php as a parameter) worked just fine 
...


it has made my head spin now for 2 days ... and i am ready to give up :)

Previous Comments:


[2001-10-31 19:50:01] [EMAIL PROTECTED]

Hi!

there seems to be a conflict in attaching together:
os : w2k

Apache/1.3.22
PHP/4.0.6
mod_ssl/2.8.5
OpenSSL/0.9.6b

the error message :
 --
[Thu Nov 01 02:36:51 2001] [warn] Loaded DSO c:/www/php/sapi/php4apache.dll
uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it 
with -DEAPI)

Apache/1.3.22 (Win32) PHP/4.0.6 mod_ssl/2.8.5 OpenSSL/0.9.6b running...
 --
  immidiate crash
 --
 
 shows that php's library uses so called API interface and mod-ssl apache
compilation expects EAPI compiled version ...

 any ideas how to get past apache generated errors and will be shut down
ok message ?

or how to get a -DEAPI compiled version of php-modules ...


if i try loading php as CGI it gave out error 400 
Invalid URI in request GET /index.php HTTP/1.0

there seems to be something unfittable for php in apache+mod_ssl for win32 ...

any ideas / hints are welcomed ...




thanks in advance,
 Jürgen






Edit this bug report at http://bugs.php.net/?id=13893edit=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 #13893 Updated: win32_apache_mod_ssl + php = crash

2001-10-31 Thread jyrgen

ID: 13893
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating System: Windows 2000
Old PHP Version: 4.0.6
PHP Version: 4.0.8
New Comment:

if u feel like looking at my server try - voice.phon.ioc.ee

there you can get the php.ini file ... if it gives you any help ... and a simple php 
file is there and a .txt extension-version aswell ...



Previous Comments:


[2001-10-31 20:28:34] [EMAIL PROTECTED]


using php 4.0.8 gave :

-

Syntax error on line 196 of c:/server/apache/conf/httpd.conf: Cannot load 
c:/www/php/sapi/php4apache.dll into server: (127) The specified procedure could not be 
found:

-

and using php from commandline (and gave a file.php as a parameter) worked just fine 
...


it has made my head spin now for 2 days ... and i am ready to give up :)



[2001-10-31 19:50:01] [EMAIL PROTECTED]

Hi!

there seems to be a conflict in attaching together:
os : w2k

Apache/1.3.22
PHP/4.0.6
mod_ssl/2.8.5
OpenSSL/0.9.6b

the error message :
 --
[Thu Nov 01 02:36:51 2001] [warn] Loaded DSO c:/www/php/sapi/php4apache.dll
uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it 
with -DEAPI)

Apache/1.3.22 (Win32) PHP/4.0.6 mod_ssl/2.8.5 OpenSSL/0.9.6b running...
 --
  immidiate crash
 --
 
 shows that php's library uses so called API interface and mod-ssl apache
compilation expects EAPI compiled version ...

 any ideas how to get past apache generated errors and will be shut down
ok message ?

or how to get a -DEAPI compiled version of php-modules ...


if i try loading php as CGI it gave out error 400 
Invalid URI in request GET /index.php HTTP/1.0

there seems to be something unfittable for php in apache+mod_ssl for win32 ...

any ideas / hints are welcomed ...




thanks in advance,
 Jürgen






Edit this bug report at http://bugs.php.net/?id=13893edit=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 #13889: FORM variables not passed with php.ini-optimized

2001-10-31 Thread Philip Olson

i am guessing this is a register_globals issue.  see:

 http://www.php.net/manual/en/configuration.php#ini.register-globals
 http://www.php.net/manual/en/security.registerglobals.php

regards,
Philip Olson

On 31 Oct 2001 [EMAIL PROTECTED] wrote:

 From: [EMAIL PROTECTED]
 Operating system: Windows 2000
 PHP version:  4.0.6
 PHP Bug Type: PHP options/info functions
 Bug description:  FORM variables not passed with php.ini-optimized
 
 FORM variables are not passed when php.ini-optimized is used for
 C:\WINNT\php.ini.
 
 The workaround is to use php.ini-dist instead.
 -- 
 Edit bug report at: http://bugs.php.net/?id=13889edit=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 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 #13889: FORM variables not passed with php.ini-optimized

2001-10-31 Thread J Do

Thanks, Philip. You're right. I've just verified it.

- Original Message - 
From: Philip Olson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, 31 October, 2001 7:26 PM
Subject: Re: [PHP-DEV] Bug #13889: FORM variables not passed with php.ini-optimized


 i am guessing this is a register_globals issue.  see:
 
  http://www.php.net/manual/en/configuration.php#ini.register-globals
  http://www.php.net/manual/en/security.registerglobals.php
 
 regards,
 Philip Olson
 
 On 31 Oct 2001 [EMAIL PROTECTED] wrote:
 
  From: [EMAIL PROTECTED]
  Operating system: Windows 2000
  PHP version:  4.0.6
  PHP Bug Type: PHP options/info functions
  Bug description:  FORM variables not passed with php.ini-optimized
  
  FORM variables are not passed when php.ini-optimized is used for
  C:\WINNT\php.ini.
  
  The workaround is to use php.ini-dist instead.
  -- 
  Edit bug report at: http://bugs.php.net/?id=13889edit=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]
 


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




[PHP-DEV] run php in commandline

2001-10-31 Thread JIM

hi all,
i want to know how i can feed a parameter into a php script in commandline?
eg.
php getdata.php apple orange

so, i want to get use of apple and orange...
any help pls!

jim



-- 
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 #13886 Updated: PHP crashes on calling a shell based program without a total search path

2001-10-31 Thread edo

ID: 13886
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Program Execution
Operating System: Windows 98
PHP Version: 4.0.6
New Comment:

It seems to work with 4.0.8! All three calls finished, without crash and with the 
correct responese.
Thanx!
Ekkehard

Previous Comments:


[2001-10-31 18:45:44] [EMAIL PROTECTED]

Does this happen with latest CVS snapshot build from
http://www.php4win.com/ ?

--Jani




[2001-10-31 07:14:23] [EMAIL PROTECTED]

Whe I execute the script below direct from the command line (e.g.c:\php crash.php), 
php crashes.
1.) the command echo `perl -h`; is executed, it displays the 'help desk' from perl 
correctly
2.) the command echo `c:\\command.com /C echo hallo`; is executed this runs and 
display hello, but
3.) the command echo `echo hallo`; displays ...Warning unable to execute... but 
shows the windows Application crash Dialog, after closing this Dialog the script 
terminate, without execute more lines.

Best regards
Ekkehard Domning
-=-=-=- Script contents -=-=-=-
?php
// This works
echo `perl -h`;
// This too
echo `c:\\command.com /C echo hallo`;

// This crashes
echo `echo hallo`;

?
-=-=-=- Script contents end-=-=-=-
-=-=-=- Script Output -=-=-=-
[...]
hallo
br
bWarning/b:  Unable to execute 'echo hallo' in bcrash.php/b on line 
b10/bbr
-=-=-=- Script Output end-=-=-=-

-=-=-=- Windows Application Error Dialogbox  -=-=-=-
PHP verursachte einen Fehler durch eine ungültige Seite
in Modul KERNEL32.DLL bei 0177:bff7b983.
Register:
EAX=0020 CS=0177 EIP=bff7b983 EFLGS=00010202
EBX=7802347e SS=017f ESP=0063f7e4 EBP=0063f820
ECX=7803ad88 DS=017f ESI=0020 FS=4caf
EDX=00790550 ES=017f EDI= GS=
Bytes bei CS:EIP:
80 3e 04 74 0f 33 c0 50 50 50 68 05 00 00 c0 e8 
Stapelwerte:
0065d800 780101e8 0020 780234a9   0065d800 7802347e 78001409 
1010 0063f614 0063fe28 7800e492 780342a8   
-=-=-=- Windows Application Error Dialogbox  end-=-=-=-






Edit this bug report at http://bugs.php.net/?id=13886edit=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] run php in commandline

2001-10-31 Thread Markus Fischer

You can: php -f getdata.php apple orange

-- 
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 #13886 Updated: PHP crashes on calling a shell based program without a total search path

2001-10-31 Thread sniper

ID: 13886
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Program Execution
Operating System: Windows 98
PHP Version: 4.0.6
New Comment:

Fixed - closed. 

Previous Comments:


[2001-11-01 02:45:17] [EMAIL PROTECTED]

It seems to work with 4.0.8! All three calls finished, without crash and with the 
correct responese.
Thanx!
Ekkehard



[2001-10-31 18:45:44] [EMAIL PROTECTED]

Does this happen with latest CVS snapshot build from
http://www.php4win.com/ ?

--Jani




[2001-10-31 07:14:23] [EMAIL PROTECTED]

Whe I execute the script below direct from the command line (e.g.c:\php crash.php), 
php crashes.
1.) the command echo `perl -h`; is executed, it displays the 'help desk' from perl 
correctly
2.) the command echo `c:\\command.com /C echo hallo`; is executed this runs and 
display hello, but
3.) the command echo `echo hallo`; displays ...Warning unable to execute... but 
shows the windows Application crash Dialog, after closing this Dialog the script 
terminate, without execute more lines.

Best regards
Ekkehard Domning
-=-=-=- Script contents -=-=-=-
?php
// This works
echo `perl -h`;
// This too
echo `c:\\command.com /C echo hallo`;

// This crashes
echo `echo hallo`;

?
-=-=-=- Script contents end-=-=-=-
-=-=-=- Script Output -=-=-=-
[...]
hallo
br
bWarning/b:  Unable to execute 'echo hallo' in bcrash.php/b on line 
b10/bbr
-=-=-=- Script Output end-=-=-=-

-=-=-=- Windows Application Error Dialogbox  -=-=-=-
PHP verursachte einen Fehler durch eine ungültige Seite
in Modul KERNEL32.DLL bei 0177:bff7b983.
Register:
EAX=0020 CS=0177 EIP=bff7b983 EFLGS=00010202
EBX=7802347e SS=017f ESP=0063f7e4 EBP=0063f820
ECX=7803ad88 DS=017f ESI=0020 FS=4caf
EDX=00790550 ES=017f EDI= GS=
Bytes bei CS:EIP:
80 3e 04 74 0f 33 c0 50 50 50 68 05 00 00 c0 e8 
Stapelwerte:
0065d800 780101e8 0020 780234a9   0065d800 7802347e 78001409 
1010 0063f614 0063fe28 7800e492 780342a8   
-=-=-=- Windows Application Error Dialogbox  end-=-=-=-






Edit this bug report at http://bugs.php.net/?id=13886edit=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] run php in commandline

2001-10-31 Thread JIM


i want to get the result like this,

apple is good_fruit...

with below command and code,

php getdata.php?$apple=good_fruit

code of getdata.php ,

?
echo apple is $apple...;
?

Markus Fischer [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D
:[EMAIL PROTECTED]
 You can: php -f getdata.php apple orange



-- 
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]