[PHP-DEV] Metadata, active properties, garbage collection

2001-10-06 Thread Emiliano

A few questions on Zend internals:

Is it possible to add (opaque, as far as the PHP script will be
concerned) data to object of internal class from C? Preferably, this
data would not even be visible to the script.

I see the class declaration struct has functions that seem to be
related to getting and setting properties. How would I use these to
create 'active' attributes?

When the refcount of a value drops to 0, when is it garbage collected?
Can I hook into that (from C) to clear up related resources?

Emile



-- 
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] php4.0.7-rc3: output buffering and deflate mode

2001-10-06 Thread Loïc

Hi Lists!

I've faced some annoying problems with ob_gzhandler used
as the handler of the ob_start function and Galeon or Moz.
0.9.4 if HTTP compression mode is set to deflate only. In this
case php returns a blank page to the browser (and no error in
the Apache log)!

The test script I use to face this problem is just the basic example
from the ob-gzhandler page in the manual.

My server config is :
- Apache 1.3.20 on Win98-SE;
- php-4.0.7-rc3 loaded as an Apache module;
- php.ini is the recommended one except pathes and two extensions
   loaded: php_bz2.dll and php_zlib.dll.

I noticed that commenting out the zlib extension in the php.ini file fixed
the problem but that's not a convenient solution, isn't it?

Kind regards,
Loïc

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



-- 
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: fread doesn't read from udp sockets

2001-10-06 Thread trh

From: [EMAIL PROTECTED]
Operating system: Windows 2k/Linux
PHP version:  4.0.6
PHP Bug Type: Filesystem function related
Bug description:  fread doesn't read from udp sockets

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 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 #13572 Updated: fread doesn't read from udp sockets

2001-10-06 Thread mfischer

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

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

- markus

Previous Comments:


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




Re: [PHP-DEV] zend_compare co

2001-10-06 Thread Andi Gutmans

At 01:40 AM 10/6/2001 +0200, [EMAIL PROTECTED] wrote:
Can you trust on the compare functions to return either -1, 0 or 1? I don't
think so... but since that assumption is made in various locations in PHP4,
it maybe is true?

I think Zend's internal compare functions where normalized a while ago.


Similar question for zend booleans, can you trust the lval to be either 0 or
1, or not?

Yes, booleans should be 0 or 1.

All of this doesn't meant here aren't bugs someplace :) However, I think in 
general if you want to write a robust function which relies on these things 
you're best off relying on the 0 being false and all the rest being true.

Andi


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




[PHP-DEV] Bug #13572 Updated: fread doesn't read from udp sockets

2001-10-06 Thread trh

ID: 13572
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Filesystem function related
Operating System: Windows 2k/Linux
PHP Version: 4.0.6
New Comment:

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




Previous Comments:


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




Re: [PHP-DEV] Re: Security e-mail address

2001-10-06 Thread James Moore

we were going to set up [EMAIL PROTECTED] at one point with a closed list of
recieptients.. mainly core devs and a few QA People who can check out if it
is a security problem or not.

Dont think this ever happen. Perhaps it would be an idea though

- James
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Jani Taskinen [EMAIL PROTECTED]
Cc: Flavio Veloso [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Saturday, October 06, 2001 2:21 AM
Subject: [PHP-DEV] Re: Security e-mail address


 Oh Jani, relax.  He wanted somewhere non-public.  php-dev is archived
 everywhere as is [EMAIL PROTECTED]  group@ is the only non-archived
 address.  If there is a real problem we will most definitely forward it to
 php-dev, but if someone asks for a private contact address I give the only
 one we have.  Most of these are false alarms anyway.

 -Rasmus

 On Sat, 6 Oct 2001, Jani Taskinen wrote:

 
  What's wrong with php-dev? IIRC the [EMAIL PROTECTED] handles
  only administration of the site and stuff..
  There can't be anything that fatal that all the people
  subscribed to php-dev shouldn't see. Or has PHP suddenly
  changed into closed-source?
 
  --Jani
 
 
 
  On Fri, 5 Oct 2001, Rasmus Lerdorf wrote:
 
  use [EMAIL PROTECTED] please
  
  On Fri, 5 Oct 2001, Flavio Veloso wrote:
  
   Hi Webmaster.
  
   Is there any mail address that can be used to discuss security issues
   related to PHP?
  
   We know that we could use your bug tracking system to report
problems,
   but it doesn't seem appropriate to disclose a security bug before PHP
   developers have a chance to look at it.
  
   We are a Linux and network security research company that lives in
   Brazil. Maybe we have discovered a problem which has some security
   implications. We are not completely sure if it's a bug in PHP (and
how
   to solve it, even if it isn't), and would like to share it with the
   PHP people privately.
  
   BTW, sorry to bother you with this, but your mail address was the
only
   one I could find on the www.php.net website.
  
  
  
 


 --
 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] Re: Security e-mail address

2001-10-06 Thread Hojtsy Gabor

 we were going to set up [EMAIL PROTECTED] at one point with a closed list
of
 recieptients.. mainly core devs and a few QA People who can check out if
it
 is a security problem or not.

 Dont think this ever happen. Perhaps it would be an idea though

+1

Goba


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