[PHP-DEV] Bug #11793 Updated: file_exists() and friends

2001-06-29 Thread bf

ID: 11793
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Operating system: Redhat Linux
PHP Version: 4.0.6
Description: file_exists() and friends

This was not a PHP problem.

Previous Comments:
---

[2001-06-29 03:09:36] [EMAIL PROTECTED]
I'm having problem with file_exists(), is_file(), 
file_size() since the upgrade to 4.0.6. It does not work 
if I supply a variable as a filename. E.g.

file_exists( $var ); will return false even if the 
variable contains a correct path.

file_exists( "path/to/file.txt" ); works. 

Same for the is_file() and file_size();


---


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


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




[PHP-DEV] Bug #11793 Updated: file_exists() and friends

2001-06-29 Thread bf

ID: 11793
User Update by: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Operating system: Redhat Linux
PHP Version: 4.0.6
Description: file_exists() and friends



Previous Comments:
---

[2001-06-29 03:09:36] [EMAIL PROTECTED]
I'm having problem with file_exists(), is_file(), 
file_size() since the upgrade to 4.0.6. It does not work 
if I supply a variable as a filename. E.g.

file_exists( $var ); will return false even if the 
variable contains a correct path.

file_exists( "path/to/file.txt" ); works. 

Same for the is_file() and file_size();


---


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


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




[PHP-DEV] Bug #11793: file_exists() and friends

2001-06-29 Thread bf

From: [EMAIL PROTECTED]
Operating system: Redhat Linux
PHP version:  4.0.6
PHP Bug Type: Scripting Engine problem
Bug description:  file_exists() and friends

I'm having problem with file_exists(), is_file(), 
file_size() since the upgrade to 4.0.6. It does not work 
if I supply a variable as a filename. E.g.

file_exists( $var ); will return false even if the 
variable contains a correct path.

file_exists( "path/to/file.txt" ); works. 

Same for the is_file() and file_size();



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



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




[PHP-DEV] Bug #8672 Updated: Crash when returning a variable from function as argument

2001-05-16 Thread bf

ID: 8672
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Variables related
Operating system: Redhat Linux 6.2
PHP Version: 4.0.4
Description: Crash when returning a variable from function as argument

I can't reproduce this with 4.0.5. Seems to be fixed ;)


Previous Comments:
---

[2001-05-16 01:02:47] [EMAIL PROTECTED]
Does this happen with PHP 4.0.5 or not?

--Jani


---

[2001-04-28 14:45:15] [EMAIL PROTECTED]
Can you try to reprocude this when php 4.0.5 will be released next week? 

---

[2001-01-12 05:30:39] [EMAIL PROTECTED]
I had code like this:
$user = new eZUser( $session->variable("AuthenticatedUser" ) );

And I noticed now that this creates a segfault in php.

The workaround is changing the code to:

$val = $session->variable( "AuthenticatedUser" );
$user = new eZUser( $val );


The code worked with php-4.0.3pl1 and has worked with 
4.0.4, but it's reproduceable and I think it's a PHP bug.

The eZSession::variable() function returns a string value.

I've tested it with 4.0.4pl1 and the bug is still there.

---


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


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




[PHP-DEV] PHP 4.0 Bug #8672: Crash when returning a variable from function as argument

2001-01-12 Thread bf

From: [EMAIL PROTECTED]
Operating system: Redhat Linux 6.2
PHP version:  4.0.4
PHP Bug Type: Reproduceable crash
Bug description:  Crash when returning a variable from function as argument

I had code like this:
$user = new eZUser( $session->variable("AuthenticatedUser" ) );

And I noticed now that this creates a segfault in php.

The workaround is changing the code to:

$val = $session->variable( "AuthenticatedUser" );
$user = new eZUser( $val );


The code worked with php-4.0.3pl1 and has worked with 
4.0.4, but it's reproduceable and I think it's a PHP bug.

The eZSession::variable() function returns a string value.

I've tested it with 4.0.4pl1 and the bug is still there.


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



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




[PHP-DEV] PHP 4.0 Bug #8809: Cookieless session with Header redirects

2001-01-19 Thread bf

From: [EMAIL PROTECTED]
Operating system: All
PHP version:  4.0.4pl1
PHP Bug Type: Feature/Change Request
Bug description:  Cookieless session with Header redirects

I have code like:

session_start();
if ( !isset( $Foo ) )
{
session_register( "Foo" );
}
else
{
 print( $Foo );
}

Header( "Location: /index.php" );

This does not work with cookieless sessions because the session information is not 
added to the header() if it's a redirect. 

The header() should add the PHPSESSIONID variable to the redirection path if it 
contains "Location: " like it does with other URLS and forms.






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



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




[PHP-DEV] PHP 4.0 Bug #8809 Updated: Cookieless session with Header redirects

2001-01-23 Thread bf

ID: 8809
User Update by: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: Feature/Change Request
Bug Type: Scripting Engine problem
Description: Cookieless session with Header redirects

When PHP is compiled with --enable-trans-sid  http redirects with header() does not 
work with cookieless sessions. 

This must be a bug. 

Here is how I fixed it with php code. The header() function should handle this if 
--enable-trans-sid is compiled in:


function ezheader( $string )
{
$sid =& $GLOBALS["PHPSESSID"];

if ( isset( $sid ) )
{
$pos = strpos( $string, "?" );

if ( $pos )
{
$string = $string . "&PHPSESSID=$sid";
}
else
{
$string = $string . "?PHPSESSID=$sid";
}
}

header( $string );
}

This code will automatically append the session id if it exists and that enables 
cookieless sessions with header( "Location: " ) redirects.



Previous Comments:
---

[2001-01-19 14:44:53] [EMAIL PROTECTED]
I have code like:

session_start();
if ( !isset( $Foo ) )
{
session_register( "Foo" );
}
else
{
 print( $Foo );
}

Header( "Location: /index.php" );

This does not work with cookieless sessions because the session information is not 
added to the header() if it's a redirect. 

The header() should add the PHPSESSIONID variable to the redirection path if it 
contains "Location: " like it does with other URLS and forms.





---


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


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