[PHP-DEV] HELP HELP HELP

2002-08-02 Thread JJ

Hey


kinda newbie question here.

I am running apache 1.3.6 (tryed with 2 for that matter) and I can't run php
scripts properly, the scripts are interpreted fine but I can't pass any vars
from an html form, they just come out empty. I tried with GET and POST with
no luck. All seems to be fine in php.ini and in http.conf

I am running php as cgi.

any ideas? Help would be greatly appreciated.



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




[PHP-DEV] Bug #14776 Updated: httpd crashes with 4.1.1 (and 4.1.0) when safe-mode=on and header();

2002-01-14 Thread jj

ID: 14776
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Reproducible crash
Operating System: FreeBSD 4.4-stable
PHP Version: 4.1.1
New Comment:

which files were modified?
how can i get only these files from anonymous cvs?

thanx


Previous Comments:


[2002-01-14 08:46:24] [EMAIL PROTECTED]

I just fixed it in CVS
(atleast I cannot crash it here anymore)

Please check with latest CVS version.



[2002-01-14 08:15:21] [EMAIL PROTECTED]

there are a bunch of related bug reports. see

#14515
#14964
#14453
maybe #14389
maybe #14733



[2001-12-30 14:20:59] [EMAIL PROTECTED]

I'm running FreeBSD 4.4-stable, Apache 1.3.22 and PHP 4.1.1 (this bug
comes since 4.1.0, I've hoped it would be fixed in 4.1.1, but it
hasn't). (php 4.0.6 works without problems)

The httpd crashes ONLY when php.ini is running with SAFE-MODE ENABLED (
When safe-mode is OFF, it works flawlessly)!! the function seems to be
header()

Be SURE safe-mode is ON, and run this example :

?php
  if(!isset($HTTP_SERVER_VARS['PHP_AUTH_USER'])) {
header(WWW-Authenticate: Basic realm=\My Realm\);
header(HTTP/1.0 401 Unauthorized);
echo Text to send if user hits Cancel button\n;
exit;
  } else {
echo pHello {$HTTP_SERVER_VARS['PHP_AUTH_USER']} ./p;
echo pYou entered {$HTTP_SERVER_VARS['PHP_AUTH_PW']} as your
password./p;
  }
?

Here's a gdb backtrace

--
Starting program: /usr/local/apache/bin/httpd -X
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x28167a5a in memcpy () from /usr/lib/libc.so.4
(gdb) bt
#0  0x28167a5a in memcpy () from /usr/lib/libc.so.4
#1  0x4 in ?? ()
#2  0x281bbafe in _mem_block_check (ptr=0x2829b0e0, silent=1, 
__zend_filename=0x2829deb2 SAPI.c, __zend_lineno=505, 
__zend_orig_filename=0x0, __zend_orig_lineno=0) at
zend_alloc.c:659
#3  0x281ba994 in _efree (ptr=0x2829b0e0, __zend_filename=0x2829deb2
SAPI.c, 
__zend_lineno=505, __zend_orig_filename=0x0, __zend_orig_lineno=0)
at zend_alloc.c:224
#4  0x281f0024 in sapi_add_header_ex (
header_line=0x81495a4 'Z' repeats 41 times, \204Ì\217*, 
header_line_len=40, duplicate=1 '\001', replace=1 '\001') at
SAPI.c:505
#5  0x282472b0 in zif_header (ht=1, return_value=0x8141fa4,
this_ptr=0x0, 
return_value_used=0) at head.c:56
#6  0x281c81a3 in execute (op_array=0x8143ea4) at
./zend_execute.c:1590
#7  0x281d96a0 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at zend.c:814
#8  0x281ec311 in php_execute_script (primary_file=0xbfbff8ac) at
main.c:1307
#9  0x281e6f52 in apache_php_module_main (r=0x813e034,
display_source_mode=0)
at sapi_apache.c:90
#10 0x281e7e44 in send_php (r=0x813e034, display_source_mode=0, 
filename=0x813eadc /usr/home2/www-galeriadev/teste.php) at
mod_php4.c:575
#11 0x281e7eb7 in send_parsed_php (r=0x813e034) at mod_php4.c:590
#12 0x806b82d in ap_invoke_handler ()
#13 0x8080164 in process_request_internal ()
---Type return to continue, or q return to quit---
#14 0x80801ce in ap_process_request ()
#15 0x807713b in child_main ()
#16 0x80772fd in make_child ()
#17 0x8077476 in startup_children ()
#18 0x8077aa8 in standalone_main ()
#19 0x80782f8 in main ()
#20 0x804ef1d in _start ()
(gdb) 
--

If I you need any more information, just let me know.

Thanks
Fabio Vilan - Duwde
[EMAIL PROTECTED]





Edit this bug report at http://bugs.php.net/?id=14776edit=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 #14776 Updated: httpd crashes with 4.1.1 (and 4.1.0) when safe-mode=on and header();

2002-01-14 Thread jj

ID: 14776
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Reproducible crash
Operating System: FreeBSD 4.4-stable
PHP Version: 4.1.1
New Comment:

Ok, found it allready.
and this patch really works!
thanx


Previous Comments:


[2002-01-14 18:33:43] [EMAIL PROTECTED]

which files were modified?
how can i get only these files from anonymous cvs?

thanx



[2002-01-14 08:46:24] [EMAIL PROTECTED]

I just fixed it in CVS
(atleast I cannot crash it here anymore)

Please check with latest CVS version.



[2002-01-14 08:15:21] [EMAIL PROTECTED]

there are a bunch of related bug reports. see

#14515
#14964
#14453
maybe #14389
maybe #14733



[2001-12-30 14:20:59] [EMAIL PROTECTED]

I'm running FreeBSD 4.4-stable, Apache 1.3.22 and PHP 4.1.1 (this bug
comes since 4.1.0, I've hoped it would be fixed in 4.1.1, but it
hasn't). (php 4.0.6 works without problems)

The httpd crashes ONLY when php.ini is running with SAFE-MODE ENABLED (
When safe-mode is OFF, it works flawlessly)!! the function seems to be
header()

Be SURE safe-mode is ON, and run this example :

?php
  if(!isset($HTTP_SERVER_VARS['PHP_AUTH_USER'])) {
header(WWW-Authenticate: Basic realm=\My Realm\);
header(HTTP/1.0 401 Unauthorized);
echo Text to send if user hits Cancel button\n;
exit;
  } else {
echo pHello {$HTTP_SERVER_VARS['PHP_AUTH_USER']} ./p;
echo pYou entered {$HTTP_SERVER_VARS['PHP_AUTH_PW']} as your
password./p;
  }
?

Here's a gdb backtrace

--
Starting program: /usr/local/apache/bin/httpd -X
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x28167a5a in memcpy () from /usr/lib/libc.so.4
(gdb) bt
#0  0x28167a5a in memcpy () from /usr/lib/libc.so.4
#1  0x4 in ?? ()
#2  0x281bbafe in _mem_block_check (ptr=0x2829b0e0, silent=1, 
__zend_filename=0x2829deb2 SAPI.c, __zend_lineno=505, 
__zend_orig_filename=0x0, __zend_orig_lineno=0) at
zend_alloc.c:659
#3  0x281ba994 in _efree (ptr=0x2829b0e0, __zend_filename=0x2829deb2
SAPI.c, 
__zend_lineno=505, __zend_orig_filename=0x0, __zend_orig_lineno=0)
at zend_alloc.c:224
#4  0x281f0024 in sapi_add_header_ex (
header_line=0x81495a4 'Z' repeats 41 times, \204Ì\217*, 
header_line_len=40, duplicate=1 '\001', replace=1 '\001') at
SAPI.c:505
#5  0x282472b0 in zif_header (ht=1, return_value=0x8141fa4,
this_ptr=0x0, 
return_value_used=0) at head.c:56
#6  0x281c81a3 in execute (op_array=0x8143ea4) at
./zend_execute.c:1590
#7  0x281d96a0 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at zend.c:814
#8  0x281ec311 in php_execute_script (primary_file=0xbfbff8ac) at
main.c:1307
#9  0x281e6f52 in apache_php_module_main (r=0x813e034,
display_source_mode=0)
at sapi_apache.c:90
#10 0x281e7e44 in send_php (r=0x813e034, display_source_mode=0, 
filename=0x813eadc /usr/home2/www-galeriadev/teste.php) at
mod_php4.c:575
#11 0x281e7eb7 in send_parsed_php (r=0x813e034) at mod_php4.c:590
#12 0x806b82d in ap_invoke_handler ()
#13 0x8080164 in process_request_internal ()
---Type return to continue, or q return to quit---
#14 0x80801ce in ap_process_request ()
#15 0x807713b in child_main ()
#16 0x80772fd in make_child ()
#17 0x8077476 in startup_children ()
#18 0x8077aa8 in standalone_main ()
#19 0x80782f8 in main ()
#20 0x804ef1d in _start ()
(gdb) 
--

If I you need any more information, just let me know.

Thanks
Fabio Vilan - Duwde
[EMAIL PROTECTED]





Edit this bug report at http://bugs.php.net/?id=14776edit=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 #14864: Object and sessions, no way!

2002-01-04 Thread jj

From: [EMAIL PROTECTED]
Operating system: Linux Slackware and Cobalt Raq4
PHP version:  4.1.1
PHP Bug Type: Reproducible crash
Bug description:  Object and sessions, no way!

FIRST OUTPUT:
New object
REFRESH BROWSER:
Fatal error: The script tried to execute a method or access a property of
an incomplete object. Please ensure that the class definition binladen of
the object you are trying to operate on was loaded _before_ the session was
started in test.php on line 16

Note: The class is defined before the session start!

?php
class BinLaden{
var $wow;
function BinLaden($Parola){
$this-wow=$Parola;
}
}

session_start();

if(!isset($wa)) {
$wa = new BinLaden(Hello Word);
session_register('wa');
print New objectbr;
} else {
echo($wa-cazz);
print Object from sessionbr;
}

?
-- 
Edit bug report at: http://bugs.php.net/?id=14864edit=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 #14864 Updated: Object and sessions, no way!

2002-01-04 Thread jj

ID: 14864
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating System: Linux Slackware and Cobalt Raq4
PHP Version: 4.1.1
New Comment:

mispelled while restyling the code for you :-)

?php
class BinLaden{
var $wow;
function BinLaden($Parola){
$this-wow=$Parola;
}
}

session_start();

if(!isset($wa)) {
$wa = new BinLaden(Hello Word);
session_register('wa');
print New objectbr;
} else {
echo($wa-wow); // THIS LINE WAS MISPELLED
print Object from sessionbr;
}

?

Previous Comments:


[2002-01-04 20:24:37] [EMAIL PROTECTED]

FIRST OUTPUT:
New object
REFRESH BROWSER:
Fatal error: The script tried to execute a method or access a property
of an incomplete object. Please ensure that the class definition
binladen of the object you are trying to operate on was loaded _before_
the session was started in test.php on line 16

Note: The class is defined before the session start!

?php
class BinLaden{
var $wow;
function BinLaden($Parola){
$this-wow=$Parola;
}
}

session_start();

if(!isset($wa)) {
$wa = new BinLaden(Hello Word);
session_register('wa');
print New objectbr;
} else {
echo($wa-cazz);
print Object from sessionbr;
}

?





Edit this bug report at http://bugs.php.net/?id=14864edit=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 #14864 Updated: Object and sessions, no way!

2002-01-04 Thread jj

ID: 14864
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Bogus
Status: Open
Bug Type: Reproducible crash
Operating System: Linux Slackware and Cobalt Raq4
PHP Version: 4.1.1
New Comment:

Quite strange, I've just copied the php.ini-dist on the php.ini I had
and now it works.
Maybe when installed 4.1.1 I've forgotten to upgrade my php.ini that was
4.0.6

Could you imagine what could have been the cause of it ?

Thanks
J


Previous Comments:


[2002-01-04 20:36:57] [EMAIL PROTECTED]

firstly, this isn't a reproduceable crash, since the engine didn't
crash.

Secondly, the code you show here WORKS.

I suggest you look at your code again, and debug it properly.





[2002-01-04 20:27:57] [EMAIL PROTECTED]

mispelled while restyling the code for you :-)

?php
class BinLaden{
var $wow;
function BinLaden($Parola){
$this-wow=$Parola;
}
}

session_start();

if(!isset($wa)) {
$wa = new BinLaden(Hello Word);
session_register('wa');
print New objectbr;
} else {
echo($wa-wow); // THIS LINE WAS MISPELLED
print Object from sessionbr;
}

?



[2002-01-04 20:24:37] [EMAIL PROTECTED]

FIRST OUTPUT:
New object
REFRESH BROWSER:
Fatal error: The script tried to execute a method or access a property
of an incomplete object. Please ensure that the class definition
binladen of the object you are trying to operate on was loaded _before_
the session was started in test.php on line 16

Note: The class is defined before the session start!

?php
class BinLaden{
var $wow;
function BinLaden($Parola){
$this-wow=$Parola;
}
}

session_start();

if(!isset($wa)) {
$wa = new BinLaden(Hello Word);
session_register('wa');
print New objectbr;
} else {
echo($wa-cazz);
print Object from sessionbr;
}

?





Edit this bug report at http://bugs.php.net/?id=14864edit=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 #14864 Updated: Object and sessions, no way!

2002-01-04 Thread jj

ID: 14864
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Bogus
Status: Open
Old Bug Type: Session related
Bug Type: Reproducible crash
Operating System: Linux Slackware and Cobalt Raq4
PHP Version: 4.1.1
New Comment:

Just tell me, if U want, how to send you both php.ini.406 and
php.ini.411 files :-) otherwise close the bug :-)

J

Previous Comments:


[2002-01-04 20:49:53] [EMAIL PROTECTED]

maybe, but i doubt it.



[2002-01-04 20:46:17] [EMAIL PROTECTED]

Quite strange, I've just copied the php.ini-dist on the php.ini I had
and now it works.
Maybe when installed 4.1.1 I've forgotten to upgrade my php.ini that was
4.0.6

Could you imagine what could have been the cause of it ?

Thanks
J




[2002-01-04 20:36:57] [EMAIL PROTECTED]

firstly, this isn't a reproduceable crash, since the engine didn't
crash.

Secondly, the code you show here WORKS.

I suggest you look at your code again, and debug it properly.





[2002-01-04 20:27:57] [EMAIL PROTECTED]

mispelled while restyling the code for you :-)

?php
class BinLaden{
var $wow;
function BinLaden($Parola){
$this-wow=$Parola;
}
}

session_start();

if(!isset($wa)) {
$wa = new BinLaden(Hello Word);
session_register('wa');
print New objectbr;
} else {
echo($wa-wow); // THIS LINE WAS MISPELLED
print Object from sessionbr;
}

?



[2002-01-04 20:24:37] [EMAIL PROTECTED]

FIRST OUTPUT:
New object
REFRESH BROWSER:
Fatal error: The script tried to execute a method or access a property
of an incomplete object. Please ensure that the class definition
binladen of the object you are trying to operate on was loaded _before_
the session was started in test.php on line 16

Note: The class is defined before the session start!

?php
class BinLaden{
var $wow;
function BinLaden($Parola){
$this-wow=$Parola;
}
}

session_start();

if(!isset($wa)) {
$wa = new BinLaden(Hello Word);
session_register('wa');
print New objectbr;
} else {
echo($wa-cazz);
print Object from sessionbr;
}

?





Edit this bug report at http://bugs.php.net/?id=14864edit=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 #14475 Updated: unlink($PHP_SELF) cause strange message

2001-12-13 Thread jj

ID: 14475
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Filesystem function related
Operating System: Linux Slackware and Cobalt Raq4
PHP Version: 4.0.6
New Comment:

chmod 777 uff.php then it gives the same error.
Infact I wouldn't suggest for a bug if I wasn't sure the permissions where correctly 
set.
However, even if permissions were not correclt set, the error message should have been 
different.

Ciao
Julien

Previous Comments:


[2001-12-13 06:18:12] [EMAIL PROTECTED]

This error is probably caused by incorrect permission. Check if your webserver has 
READ access to the file. If not, PHP can't open the file to parse it and it will die 
with this message. Reopen if this is not the case.



[2001-12-12 19:45:04] [EMAIL PROTECTED]

I've tryed to unlink the self .php file with:
unlink($PHP_SELF);

and got this warning:
Warning: Failed opening '/home/sites/site4/web/uff.php' for inclusion 
(include_path='') in Unknown on line 0

Obviously:
1) the file name was uff.php placed in the path '/home/sites/site4/web/
2) The page had no include statements.

uff.php
---
?php
 if ($login!=hello){ exit(Hello); }
?
Hello Word
?php
unlink($PHP_SELF);
?

Byez





Edit this bug report at http://bugs.php.net/?id=14475edit=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 #14475: unlink($PHP_SELF) cause strange message

2001-12-12 Thread jj

From: [EMAIL PROTECTED]
Operating system: Linux Slackware and Cobalt Raq4
PHP version:  4.0.6
PHP Bug Type: Filesystem function related
Bug description:  unlink($PHP_SELF) cause strange message

I've tryed to unlink the self .php file with:
unlink($PHP_SELF);

and got this warning:
Warning: Failed opening '/home/sites/site4/web/uff.php' for inclusion
(include_path='') in Unknown on line 0

Obviously:
1) the file name was uff.php placed in the path '/home/sites/site4/web/
2) The page had no include statements.

uff.php
---
?php
 if ($login!=hello){ exit(Hello); }
?
Hello Word
?php
unlink($PHP_SELF);
?

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


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




[PHP-DEV] PHP 4.0 Bug #9198 Updated: ocassional session blackouts

2001-02-10 Thread jj

ID: 9198
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: *Session related
Description: ocassional session blackouts

This is my session configuration:

session.save_handler  = files   ; handler used to store/retrieve data
session.save_path = /tmp; argument passed to save_handler
; in the case of files, this is the
; path where data files are stored
session.use_cookies   = 1   ; whether to use cookies
session.name  = PHPSESSID
; name of the session
; is used as cookie name
session.auto_start= 1   ; initialize session on request startup
session.cookie_lifetime   = 0   ; lifetime in seconds of cookie
; or if 0, until browser is restarted
session.cookie_path   = /   ; the path the cookie is valid for
session.cookie_domain = ; the domain the cookie is valid for
session.serialize_handler = php ; handler used to serialize data
; php is the standard serializer of PHP
session.gc_probability= 1   ; percentual probability that the
; 'garbage collection' process is started
; on every session initialization
session.gc_maxlifetime= 1440; after this number of seconds, stored
; data will be seen as 'garbage' and
; cleaned up by the gc process
session.referer_check = ; check HTTP Referer to invalidate
; externally stored URLs containing ids
session.entropy_length= 0   ; how many bytes to read from the file
session.entropy_file  = ; specified here to create the session id
; session.entropy_length= 16
; session.entropy_file  = /dev/urandom
session.cache_limiter = nocache ; set to {nocache,private,public} to
; determine HTTP caching aspects
session.cache_expire  = 180 ; document expires after n minutes
session.use_trans_sid = 1   ; use transient sid support if enabled
; by compiling with --enable-trans-sid


Previous Comments:
---

[2001-02-09 18:09:10] [EMAIL PROTECTED]
Can you include the [Session] section from your php.ini file?

---

[2001-02-09 18:02:13] [EMAIL PROTECTED]
My application used to run PHPLIB for the sake of session variables. After migrating 
to PHP4, I made it use the PHP4 integreted session support (using cookies) and it 
seems to be working fine for most of the time.
Nevertheless, it will ocassionally loose the infromation contained within the session 
and get all active users disconnected and unable to log in again for a while.
I cannot say when it is going to happen again (it is unpredictable) but the fact is 
that it happens...

Thanks in advance,
Jakub Jermar



---


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


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




[PHP-DEV] PHP 4.0 Bug #9198: ocassional session blackouts

2001-02-09 Thread jj

From: [EMAIL PROTECTED]
Operating system: Debian/GNU Linux 2.2
PHP version:  4.0.0
PHP Bug Type: *Session related
Bug description:  ocassional session blackouts

My application used to run PHPLIB for the sake of session variables. After migrating 
to PHP4, I made it use the PHP4 integreted session support (using cookies) and it 
seems to be working fine for most of the time.
Nevertheless, it will ocassionally loose the infromation contained within the session 
and get all active users disconnected and unable to log in again for a while.
I cannot say when it is going to happen again (it is unpredictable) but the fact is 
that it happens...

Thanks in advance,
Jakub Jermar




-- 
Edit Bug report at: http://bugs.php.net/?id=9198edit=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]