[PHP-DEV] CVS Account Request: decorj

2003-01-05 Thread Andre Vasconcelos Roque
Translating the PHP manual to Portuguese (Brazil)

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




Re: [PHP-DEV] PHP5 Packages

2002-07-09 Thread Andre Gildemeister

Zeev Suraski wrote:
> Basically, the Zend Engine 2 will allow the use of nested classes.  So, 
> classes will be able to contain other classes, as well as constants in 
> addition to variables and methods.  They are not called 
> packages.  Currently there aren't any new keywords for loading such 
> classes, because essentially, they're just like the existing classes (will 
> be used using include/require).  There's an import statement that's going 
> to help users bring methods from classes (or nested classes) to the global 
> scope.

Ok, then I misunderstood something in this context

Best regards
-Andre Gildemeister


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




[PHP-DEV] PHP5 Packages

2002-07-09 Thread Andre Gildemeister

hi,

in PHP5 it shall be possible to integrate own extensions (written in PHP),
called "Packages". a package consists of functions and classes, encapsulated in
an namespace. to make the package-elements available in an program, the package
must still integrate in the source code.
for a while I heard about keywords: import, use or share to integrated the
packages...

does one know more about this?

Best regards
-Andre Gildemeister



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




Re: [PHP-DEV] Memory Leaks /w nested classes

2002-06-10 Thread Andre Christ

Hi Brad,

"Brad Lafountain" <[EMAIL PROTECTED]> wrote
> I use parent members all the time.. w/zend1

well, that's what I wanted to do until I discovered these entrys in my log
file when php is compiled --enable-debug. Do you have these mem leaks as
well ?

Greets,
André




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




[PHP-DEV] Memory Leaks /w nested classes

2002-06-10 Thread Andre Christ

Hi,

working with php's oop implementation I got some memory leaks. The behaviour
can be reproduced
with the following script:

Bar = new CBar();
$this->Bar->Parent = $this;
  }
}

$Super = new CSuper();
?>

php 4.2.1 --enable-debug

zend_hash.c(260) :  Freeing 0x0821000C (39 bytes),
script=/home/ach/usr/htdocs/devel/oop.php
Last leak repeated 1 time
./zend_execute.c(470) :  Freeing 0x0820FFAC (44 bytes),
script=/home/ach/usr/htdocs/devel/oop.php
zend_variables.c(126) : Actual location (location was relayed)
./zend_execute.c(467) :  Freeing 0x0820FF6C (12 bytes),
script=/home/ach/usr/htdocs/devel/oop.php
zend_API.c(596) :  Freeing 0x0820FE54 (44 bytes),
script=/home/ach/usr/htdocs/devel/oop.php
zend_API.c(584) : Actual location (location was relayed)
zend_hash.c(176) :  Freeing 0x0820FB34 (32 bytes),
script=/home/ach/usr/htdocs/devel/oop.php
Last leak repeated 1 time
./zend_execute.c(1948) :  Freeing 0x0820F844 (12 bytes),
script=/home/ach/usr/htdocs/devel/oop.php


Is there anything wrong with the code or is it a bug in php / Zend ?

Greets,
André




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




[PHP-DEV] Memory Leaks /w nested classes

2002-06-10 Thread Andre Christ

Hi,

working with php's oop implementation I got some memory leaks. The behaviour
can be reproduced
with the following script:

Bar = new CBar();
$this->Bar->Parent = $this;
  }
}

$Super = new CSuper();
?>

php 4.2.1 --enable-debug

zend_hash.c(260) :  Freeing 0x0821000C (39 bytes),
script=/home/ach/usr/htdocs/devel/oop.php
Last leak repeated 1 time
./zend_execute.c(470) :  Freeing 0x0820FFAC (44 bytes),
script=/home/ach/usr/htdocs/devel/oop.php
zend_variables.c(126) : Actual location (location was relayed)
./zend_execute.c(467) :  Freeing 0x0820FF6C (12 bytes),
script=/home/ach/usr/htdocs/devel/oop.php
zend_API.c(596) :  Freeing 0x0820FE54 (44 bytes),
script=/home/ach/usr/htdocs/devel/oop.php
zend_API.c(584) : Actual location (location was relayed)
zend_hash.c(176) :  Freeing 0x0820FB34 (32 bytes),
script=/home/ach/usr/htdocs/devel/oop.php
Last leak repeated 1 time
./zend_execute.c(1948) :  Freeing 0x0820F844 (12 bytes),
script=/home/ach/usr/htdocs/devel/oop.php


Is there anything wrong with the code or is it a bug in php / Zend ?

Greets,
André




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




[PHP-DEV] new as Parameter

2002-03-21 Thread Andre Christ

Hi,

I'd like to know if the following piece of code is compatible with php 4.0.0
higher:



Are there any bugs known of you pass new Class directly ?

Thanks in advance,
André




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




[PHP-DEV] register_globals within PHP 4.2

2002-02-03 Thread Andre Gildemeister

hi,

will the new register_globals be turned off within the PHP 4.2 by default?

Greetings & Thanks,
-Andre


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




[PHP-DEV] Bug #14222 Updated: PHP Crashes with weird output often

2002-01-21 Thread andre . krause

ID: 14222
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Apache related
Operating System: Windows XP Pro
PHP Version: 4.1.1
New Comment:

update to newest version ?
do you mean one in the cvs repository ? i tried everything: apache
1.3x, apache 2.0 beta and php version 4.05, 4.06, 3.x and 4.11 (the
latest official) --- and - i must run php as an apache-module because i
use gd-lib. besides - gd lib does not work correctly (gives jpegs with
only 16 colors) after version 4.05 of php. is this because now there is
an extra feature in gd-lib where you must provide bit-depth ? 

my resume: apache without php works fine, php in cgi-mode works fine --
so there must be an os-related bug in the interface wich allows using
the php-dll as an apache - module. maybe an buffer-problem?

i tried the following: i took a normal html-page, tried this with
apache --> works fine. then simply renamed it to *.php - strange
code-output - the normal html but fragmented with weird-passages, they
change after every reload.


Previous Comments:


[2002-01-19 21:52:17] [EMAIL PROTECTED]

Please update PHP version :)



[2002-01-19 14:37:34] [EMAIL PROTECTED]

I ALSO HAVE THIS PROBLEM !! I tried several combinations of apache (
1.3x, 2.0beta) and php (4.06, 4.11) and i get too this weird output.
and the output is irregular if i reload.
i have windows xp german too. this is defenitly a problem caused by
windows xp, scince my old configuration under winnt worked fine , but
after updating to xp some files fail. it looks like it depends on the
php file size, not on the code in the php file. example:
www.videofiles.de/andre/dmmain.php - try with netscape, as iexplorer
not even loads the page.
hope this problem gets fixed soon, as i cannot go back to nt neither
win2000

greetz from germany!!
(wish i could use linux...)



[2002-01-11 08:30:52] [EMAIL PROTECTED]

I've a similar probleme with Apache 3.2.22, PHP 4.1.0 and mysql. I
obtain a page correctly generated when i call it from localhost but it
seem that don't work on the net (Cannot display... or the source of
page is not correct some data from mysql database are mixed with the
source, and sometime there's a another HTTP-header in the middle of the
page.

I don't understand why because, if i call the page by the internet
address from the server it's work at 100%. I try the same page from a
another computer on the LAN, and it's seem work at 60%, sometime i met
the same mistakes that there was via internet.

So if you can help me !

Thx !



[2001-11-29 14:19:35] [EMAIL PROTECTED]

I set up my Computer new, this time with XP German (last time XP eng),
still have the problems, but not that hard than last time.
Just as info :)

btw when php 4.1.0 will be released now?



[2001-11-26 07:30:10] [EMAIL PROTECTED]

OK, its like i expected.
When you fill out a loop (any kind of one) with enough data it happens
(a overflow??)



  


















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=14222


Edit this bug report at http://bugs.php.net/?id=14222&edit=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 #14222 Updated: PHP Crashes with weird output often

2002-01-19 Thread andre . krause

ID: 14222
Comment by: [EMAIL PROTECTED]
Old Reported By: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Apache related
Operating System: Windows XP Pro
PHP Version: 4.0.6
New Comment:

I ALSO HAVE THIS PROBLEM !! I tried several combinations of apache (
1.3x, 2.0beta) and php (4.06, 4.11) and i get too this weird output.
and the output is irregular if i reload.
i have windows xp german too. this is defenitly a problem caused by
windows xp, scince my old configuration under winnt worked fine , but
after updating to xp some files fail. it looks like it depends on the
php file size, not on the code in the php file. example:
www.videofiles.de/andre/dmmain.php - try with netscape, as iexplorer
not even loads the page.
hope this problem gets fixed soon, as i cannot go back to nt neither
win2000

greetz from germany!!
(wish i could use linux...)


Previous Comments:


[2002-01-11 08:30:52] [EMAIL PROTECTED]

I've a similar probleme with Apache 3.2.22, PHP 4.1.0 and mysql. I
obtain a page correctly generated when i call it from localhost but it
seem that don't work on the net (Cannot display... or the source of
page is not correct some data from mysql database are mixed with the
source, and sometime there's a another HTTP-header in the middle of the
page.

I don't understand why because, if i call the page by the internet
address from the server it's work at 100%. I try the same page from a
another computer on the LAN, and it's seem work at 60%, sometime i met
the same mistakes that there was via internet.

So if you can help me !

Thx !



[2001-11-29 14:19:35] [EMAIL PROTECTED]

I set up my Computer new, this time with XP German (last time XP eng),
still have the problems, but not that hard than last time.
Just as info :)

btw when php 4.1.0 will be released now?



[2001-11-26 07:30:10] [EMAIL PROTECTED]

OK, its like i expected.
When you fill out a loop (any kind of one) with enough data it happens
(a overflow??)



  


















[2001-11-26 07:14:15] [EMAIL PROTECTED]

Its not reproduce able (thats why called weird)
specially the output is always diffrent and irregular...

i'll test it in the office (also with XP)



[2001-11-26 07:09:14] [EMAIL PROTECTED]

Please include a SHORT example script that can be used to
reproduce this. And also try PHP 4.1.0 (will be released
today/tomorrow)

--Jani




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


Edit this bug report at http://bugs.php.net/?id=14222&edit=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] ADT Extension

2002-01-13 Thread Andre Gildemeister

Hi,

At the moment, ADT still is under /adt (CVS). It looks so, as if this
wouldn't have been continued for longer time ago.
I know that sterling is the maintainer, so I would be interested in the
current development status...

In my opinion ADT should be moved into pear/PECL/, because ADT surely is not
part of the PHP Core Source. And this shall get as small as held possibly.
In addition, I would be very much interested in knowing whether there
already PHP example scripts for ADT?

I would be very pleased about an answer!

Best regards,
-Andre Gildemeister



-- 
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] track_vars deprecated?

2002-01-02 Thread Andre Gildemeister

hi,

one short question:)
is track_vars deprecated because of the new register_globals actually?

Best regards
 -Andre Gildemeister



-- 
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 #13154 Updated: ODBC query to Openingres 2.0 fail with scs_p_GetTblAttribs: DRV_DDTables failed

2002-01-02 Thread andre . felipe

ID: 13154
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Open
Bug Type: ODBC related
Operating System: Solaris 8
PHP Version: 4.0.6
Old Assigned To: ahill
Assigned To: 


Previous Comments:


[2001-12-28 06:10:42] [EMAIL PROTECTED]

No feedback. Closing.



[2001-12-07 13:11:40] [EMAIL PROTECTED]

We've not had any problems with your configuration - are you getting an error message?

Best regards,
Andrew Hill




[2001-12-07 12:25:32] [EMAIL PROTECTED]

Assigning this to Ahill as he knows the OpenLink software best.



[2001-09-05 14:57:19] [EMAIL PROTECTED]

No queries can be made with PHP 4 and Openlink ODBC to access OpenIngres.

Test program:
" ;
$odbc = odbc_connect("Desenv" , "notes", "notes", SQL_CUR_USE_IF_NEEDED   );
echo " ODBC_CONNECT return code: $odbc ";

$query = "select matrica from srhtb002";
$queryprep = odbc_prepare ($odbc, $query);   // This produces the error.
$result = odbc_execute($queryprep );
print "ok. result = $result";

$nextrow = odbc_fetch_row($result, 1);

if (! $nextrow ) {
 print "Nco achou nada...";
}
else {
print odbc_result($result , 1 );
print "";
print odbc_result($result , 2 );
}
?>

The configure line is:
./configure  --enable-track-vars --with-yp --with-apxs --with-oci8 
--with-iodbc=/software/openlink/odbcsdk






Edit this bug report at http://bugs.php.net/?id=13154&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 #13154 Updated: ODBC query to Openingres 2.0 fail with scs_p_GetTblAttribs: DRV_DDTables failed

2002-01-02 Thread andre . felipe

ID: 13154
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: ODBC related
Operating System: Solaris 8
PHP Version: 4.0.6
Old Assigned To: ahill
Assigned To: 
New Comment:

Hello Lobbin,
I didn't give any feedback just because I have no password to enter the system and 
issue my opinions.
The problem is still there, I have a case opened in OpenLink SW for a long time for 
this matter and
have sent to them every log
they asked to try to help in solving the problem.
This problem seems to be with Openlink driver, or else with the form that PHP 4.x uses 
it.
I'm sure its a compatibility problem between the two.

Happy new year,
André Felipe

Previous Comments:


[2001-12-28 06:10:42] [EMAIL PROTECTED]

No feedback. Closing.



[2001-12-07 13:11:40] [EMAIL PROTECTED]

We've not had any problems with your configuration - are you getting an error message?

Best regards,
Andrew Hill




[2001-12-07 12:25:32] [EMAIL PROTECTED]

Assigning this to Ahill as he knows the OpenLink software best.



[2001-09-05 14:57:19] [EMAIL PROTECTED]

No queries can be made with PHP 4 and Openlink ODBC to access OpenIngres.

Test program:
" ;
$odbc = odbc_connect("Desenv" , "notes", "notes", SQL_CUR_USE_IF_NEEDED   );
echo " ODBC_CONNECT return code: $odbc ";

$query = "select matrica from srhtb002";
$queryprep = odbc_prepare ($odbc, $query);   // This produces the error.
$result = odbc_execute($queryprep );
print "ok. result = $result";

$nextrow = odbc_fetch_row($result, 1);

if (! $nextrow ) {
 print "Nco achou nada...";
}
else {
print odbc_result($result , 1 );
print "";
print odbc_result($result , 2 );
}
?>

The configure line is:
./configure  --enable-track-vars --with-yp --with-apxs --with-oci8 
--with-iodbc=/software/openlink/odbcsdk






Edit this bug report at http://bugs.php.net/?id=13154&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] Re: Bug #13154 Updated: ODBC query to Openingres 2.0 fail with scs_p_GetTblAttribs: DRV_DDTables failed

2002-01-02 Thread Andre Felipe

Hello Lobbin,
I didn't give any feedback just because I have no password to enter the system and 
issue my opinions.
The problem is still there, I have a case opened in OpenLink SW for a long time for 
this matter and have sent to them every log
they asked to try to help in solving the problem.
This problem seems to be with Openlink driver, or else with the form that PHP 4.x uses 
it.
I'm sure its a compatibility problem between the two.

Happy new year,
André Felipe

Bug Database wrote:

> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at http://bugs.php.net/?id=13154&edit=2
>
> ID: 13154
> Updated by: lobbin
> Reported By: [EMAIL PROTECTED]
> Old Status: Feedback
> Status: Closed
> Bug Type: ODBC related
> Operating System: Solaris 8
> PHP Version: 4.0.6
> Assigned To: ahill
> New Comment:
>
> No feedback. Closing.
>
> Previous Comments:
> 
>
> [2001-12-07 13:11:40] [EMAIL PROTECTED]
>
> We've not had any problems with your configuration - are you getting an error 
>message?
>
> Best regards,
> Andrew Hill
>
> 
>
> [2001-12-07 12:25:32] [EMAIL PROTECTED]
>
> Assigning this to Ahill as he knows the OpenLink software best.
>
> 
>
> [2001-09-05 14:57:19] [EMAIL PROTECTED]
>
> No queries can be made with PHP 4 and Openlink ODBC to access OpenIngres.
>
> Test program:
> " ;
> $odbc = odbc_connect("Desenv" , "notes", "notes", SQL_CUR_USE_IF_NEEDED   );
> echo " ODBC_CONNECT return code: $odbc ";
>
> $query = "select matrica from srhtb002";
> $queryprep = odbc_prepare ($odbc, $query);   // This produces the error.
> $result = odbc_execute($queryprep );
> print "ok. result = $result";
>
> $nextrow = odbc_fetch_row($result, 1);
>
> if (! $nextrow ) {
>  print "Nco achou nada...";
> }
> else {
> print odbc_result($result , 1 );
> print "";
> print odbc_result($result , 2 );
> }
> ?>
>
> The configure line is:
> ./configure  --enable-track-vars --with-yp --with-apxs --with-oci8 
>--with-iodbc=/software/openlink/odbcsdk
>
> 

--
André Felipe M. Carvalho
Analista de Sistemas - Embrapa / DTI
[EMAIL PROTECTED]
http://www.embrapa.br
---
Os internautas escolheram a Embrapa como Top Cadê.
Veja o resultado!
http://www.topcade.com.br/ciencia/votacienciaMar2001.shtm



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




Re: [PHP-DEV] ext/pdf libarys

2001-12-10 Thread Andre Gildemeister

"Pierre-Alain Joye" <[EMAIL PROTECTED]> wrote:
> > I just have looked at the presentation slides to the pdf extension on
> > http://conf.php.net 11/27/2001 Paris PHP Forum PDF Overview (24 slides).
> > Clibpdf and FreePDFlib were called as opensource alternatives under
> > "introduction", but since is ClibPDF completly OpenSource without any
> > commercial license? [http://www.fastio.com/licensePlain.html]
> OpenSource does not mean Free Software (*gpl,bsd...).
> As far you look for a pdf library, take a look at the fpdf library
(http://fpdf.multimania.com/). This is a php library (means not an
extension) to generate pdf document.
>Not all pdf functionnalities are implemented, but it works really good.
ok, you`re right!

But where I can find the OpenSource Alternative "FreePDFLib" from Thomas
Szadel

-Andre




-- 
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] ext/pdf libarys

2001-12-09 Thread Andre Gildemeister

hi,

I just have looked at the presentation slides to the pdf extension on
http://conf.php.net 11/27/2001 Paris PHP Forum PDF Overview (24 slides).
Clibpdf and FreePDFlib were called as opensource alternatives under
"introduction", but since is ClibPDF completly OpenSource without any
commercial license? [http://www.fastio.com/licensePlain.html]

In addition, i would intereset where i can find the OpenSource Alternative
"FreePDFLib" from Thomas Szadel

best regards
-Andre



-- 
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: PHPDoc Future

2001-11-27 Thread Andre Gildemeister

Ulf Wendel wrote:

> PEAR needs a documentation tool, that's able to generate a basic
> framework (or a final document) to be used with the documentation system
> on php.net . This, and the whish to use the existing tools to generate
> PDF etc. based on DocBook, means that eigther the documentation tool
> needs to output DocBook directly or the XML output of the doc tool has
> to be transformed using XSLT.
yes, an standard documentation tool

> If you want me, I can try to write some kind of whitepaper draft what a
> PHPDoc tool should look like. It would take me about 10 days to do so.
> This paper could be discussed on the dev-lists or we start discussing
> right the way.
ok, a whitepaper would be mine solution consider to be the best.
after this, we could substantially discuss this on the dev-list.

-Andre



-- 
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: [PEAR-DEV] PHPDoc Development Status

2001-11-22 Thread Andre Gildemeister

"Martin Jansen" <[EMAIL PROTECTED]> wrote:
> I don't see a good reason for that.
>
What speaks in principle against this?

-Andre Gildemeister



-- 
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] PHPDoc Development Status

2001-11-22 Thread Andre Gildemeister

hi,

I have pursued the development of PHPDoc very interestedly.
After the incorporation into the CVS Repository: php4/pear/PHPDoc I have
heard nothing more new...

- in the meantime was something to heard about a rewrite in C, is that true?
- shouldn't PHPDoc become an official extension either? (ext/phpdoc)

comments etc. welcome.

-Andre Gildemeister



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

2001-11-18 Thread Andre Gildemeister

hi,

Since 6 or 7 Days I get no more mails from the zendengine2 mailinglist at
all.
Rest the mailinglist because of technical problems or do the protagonists
rest ;) ?

best regards
-Andre



-- 
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 #14064: Arrays defined as object properties treat defined constants differently.

2001-11-14 Thread andre

From: [EMAIL PROTECTED]
Operating system: i386-redhat-linux-gnu
PHP version:  4.0.6
PHP Bug Type: Class/Object related
Bug description:  Arrays defined as object properties treat defined constants 
differently.

It appears that using defined constants to index an array within a class
results in different behaviour than arrays defined without.

Within a class, the array treats the constant as a string literal, whereas
in a regular array definition, the constant is properly evaluated.

Which of the two is the "correct" behaviour, and why do they differ between
contexts?  Is there a way to get the results of Situation A in Situation
B?

--(snip)--

 'TEST1',
   TEST2 => 'TEST2',
   TEST3 => 'TEST3'
  );

print_r( $aTest );

#

// Situation B
class Test
{
   var $aTest2 = array(
  TEST1 => 'TEST1',
  TEST2 => 'TEST2',
  TEST3 => 'TEST3'
  );

}

$oTest = new Test;

print_r( $oTest );

?>
-- 
Edit bug report at: http://bugs.php.net/?id=14064&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] Echo vs in/out

2001-10-28 Thread Andre Næss

I'm currently in the middle of a discussion with some fellow PHP
developers regarding the speed of what we call in/out compared to
echo. With in/out we mean stuff like this:

// php code
?>
some html
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] Possibility of moving bugs to another list?

2001-10-02 Thread Andre Christ

Hi,

> I am sure I am probably rehashing an old issue that I wasn't around for,
> but I have noticed that it has been incredibly hard to follow
> php-dev (especially
> lately since I haven't had as much free time as I normally do). When of
> the things I noticed is that I commonly miss a php-dev post because of
> all the bug mailings. I did set up a filter in my mail client;
> however, IMO , if
> everyone is having to use a mail filter, wouldn't it be more logical to
> create a php-bugs list?
>
> What do you guys think?

I'd vote for that, as development discussions will get closer to the readers
focus.

Andre


-- 
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] In C, how do I access an associative array?

2001-09-25 Thread Andre Christ

Hi,

> How do I find all the keys and values out of that array in my extension? 
> Is there a way?

Have a look at the Zend API Documentation at http://www.zend.com/apidoc/ or
review implementations of other Extensions.

Greets,
Andre


-- 
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] 4.0.6 BUG with GCC 3.0.1

2001-09-20 Thread Andre Christ

Hi,

> > Indeed, binaries (including libs) compiled with gcc 3.x aren't 
> compatible to
> > binaries compiled with gcc 2.95. The behaviour you discovered cannot be
> > classified a php bug, it is rather a limitation of the new 
> compiler version.
> 
> I was under the impression that while your statement is true
> for libraries containing C++ code, the C ABI has not changed.
> Am I wrong?

Well, I'd like to review an article in the latest IX before I can judge
about that ...

Andre


-- 
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] 4.0.6 BUG with GCC 3.0.1

2001-09-19 Thread Andre Christ

Hi,

> Where can I get the source or binaries for 4.07? I think I've discovered a
> bug , but want to make sure with latest build. The bug has to do with Gnu
> GCC 3.0.1 libraries. It's incompatible! Trust me it is! And I
> even tried to
> trick PHP by creating a symbolic link referring to the older libraries, no
> such luck!

Indeed, binaries (including libs) compiled with gcc 3.x aren't compatible to
binaries compiled with gcc 2.95. The behaviour you discovered cannot be
classified a php bug, it is rather a limitation of the new compiler version.

Greets,
André


-- 
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] can't connect to LDAP Server

2001-09-11 Thread Andre Konopka

Hi,

I compiled PHP-4.06 with LDAP support (openldap-2.0.12) without any
problems, but I can't connect to my locally running LDAP server. slapd
and apache (apache_1.3.20) (with statically compiled PHP-Module) are
running on a HP-UX 11 box.

Here are my very simple two lines of code:


$ds=ldap_connect ("localhost");

print "connect result is ".$ds."";


If I try to show the results I got an error popup with

'Documents contained no data. Try again later, or contact the server's
administrator.'


If I comment out the 'connect' line the browser shows the line
'connect result is'

I started slapd with debugging level 65535 and I can see that there are
no connection requests from PHP.


Any idea?

Andre

-- 
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] SID without cookies - why sometimes automatic?

2001-09-11 Thread Andre Christ

Hi,

> Is there perhaps some configuration I can change on the web server? I
> obviously prefer the way the development machine works because it
> saves me
> having to go through every link adding SID, but my main priority is
> just to
> get both machines to work the same.

I'm not sure wether this topic belongs to the php-dev list ... Anyways,
there is a configuration directive in php.ini:

session.use_trans_sid = 1   ; use transient sid support if enabled
; by compiling with --enable-trans-sid

If use_trans_sid is active, the session id is appended to links
automatically. Caution: It has a remarkable impact on speed if the processed
page has a lot of links.

Greets,
Andre


-- 
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 #13154: ODBC query to Openingres 2.0 fail with scs_p_GetTblAttribs: DRV_DDTables failed

2001-09-05 Thread andre . felipe

From: [EMAIL PROTECTED]
Operating system: Solaris 8
PHP version:  4.0.6
PHP Bug Type: ODBC related
Bug description:  ODBC query to Openingres 2.0 fail with scs_p_GetTblAttribs: 
DRV_DDTables failed

No queries can be made with PHP 4 and Openlink ODBC to access OpenIngres.

Test program:
" ;
$odbc = odbc_connect("Desenv" , "notes", "notes", SQL_CUR_USE_IF_NEEDED  
);
echo " ODBC_CONNECT return code: $odbc ";

$query = "select matrica from srhtb002";
$queryprep = odbc_prepare ($odbc, $query);   // This produces the error.
$result = odbc_execute($queryprep );
print "ok. result = $result";

$nextrow = odbc_fetch_row($result, 1);

if (! $nextrow ) {
 print "Nco achou nada...";
}
else {
print odbc_result($result , 1 );
print "";
print odbc_result($result , 2 );
}
?>

The configure line is:
./configure  --enable-track-vars --with-yp --with-apxs --with-oci8
--with-iodbc=/software/openlink/odbcsdk

-- 
Edit bug report at: http://bugs.php.net/?id=13154&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] german umlauts!

2001-09-03 Thread Andre Lacour

strtoupper() & strtoulower() does not work with german umlauts (äöü/ÄÖÜ).


-- 
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] Re: [Zend Engine 2] substr changes

2001-07-02 Thread Andre Langhorst

> Just one thing I did want to point out - this has nothing to do with 
> Zend 3 or whatever.  I oppose this feature not because lack of time to 
> implement it or because it's difficult to implement, but because it 
> doesn't belong in PHP.  Personally, I wouldn't want to see it even in 
> PHP 7.0...


although disagreeing, I agree in completely skipping this then, as 
previously proposed...

what about operator overloading in exchange? ;)

andré

 



-- 
· André Langhorstt: +49 331 5811560 ·
· [EMAIL PROTECTED]  m: +49 173 9558736 ·
* PHP Quality Assurance  http://qa.php.net  *


-- 
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 #11715: Fatal Error

2001-06-27 Thread andre

From: [EMAIL PROTECTED]
Operating system: Windows 98
PHP version:  4.0.6
PHP Bug Type: InterBase related
Bug description:  Fatal Error

I work with Apache 1.3.20, Windows 98, Interbase 6.01 and
PHP 4.0.5 and it´s work fine.
I update to PHP 4.0.6 and it´s start a Fatal Error in
GDS32.dll...
Why???
Tank you...

André Rotband
Makesoft Informática
Brazil



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




Re: [PHP-DEV] possible bug zend_hash_sort(...)

2001-06-26 Thread Andre Langhorst

> Well, if the array was passed in from somewhere else and is usually more
> than one element, why would you clutter up your code checking every
> time for the one-element (or no element) case rather than assuming
> sort correctly handles all cases.


(just for the records) :)

*sorting* works in any case!!! according to the manual sorting actually 
is ok. the documentation says *nothing* about the keys (de facto, if you 
would weigh this behaviour against the documentation you would not be 
able to find a bug anyhow) it just is a kind of inconsistency. you only 
can treat this a bug looking at the C code, where a parameter for 
"renumbering" is given (renumbering is 0 for key-preserving sorting)

the current behaviour simply isn't defined and thus follows: you can 
infer anything from a wrong premise! inferring this being correct 
behaviour is equally legitimate inferring the contrary!

actually I think treating this as a bug makes sense, but this should not 
go in before 4.1 to avoid any confusion.

andré



-- 
· André Langhorstt: +49 331 5811560 ·
· [EMAIL PROTECTED]  m: +49 173 9558736 ·
* PHP Quality Assurance  http://qa.php.net  *


-- 
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] possible bug zend_hash_sort(...)

2001-06-26 Thread Andre Langhorst

Hi,
apparently php-users are fooled (bug 9633, private email to me) by zends 
sorting on one-element arrays. In fact we do nothing there.

 >  if (ht->nNumOfElements <= 1) {  /* Doesn't require sorting */
 > 
return SUCCESS;
 >  }

but zend_hash_sort is called with renumber=1 for sort() and the like. 
thus any array with size>1 will be renumbered except the one element 
array, that one is returned unchanged. shoudn't have renumbering an 
effect on one-element arrays even if there is nothing to sort?

POV 1)
One element, nothing to sort. Simply return it.
Problem: inconsistent behaviour

POV 2)
Renumber arrays with size>1, renumber all.
Problem: backwards compatibilty.

well, I am unsure. To not have the BC problem we should at least 
document this, because experience shows that people do expect that 
sort() acts similar on all arrays and renumbers even one-element arrays.

ok. why would you sort a one-element array? I wouldn't, but people 
apparently do and I can understand this kind of inconsistency assuming.

andré



· [EMAIL PROTECTED]  m: +49 173 9558736 ·
* PHP Quality Assurance  http://qa.php.net  *


-- 
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 #11540 Updated: Backslash and regular expressions

2001-06-20 Thread andre

ID: 11540
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Closed
Status: Bogus
Bug Type: *Regular Expressions
Operating system: 
PHP Version: 4.0.5
Assigned To: 
Comments:



Previous Comments:
---

[2001-06-20 03:02:45] [EMAIL PROTECTED]
I am told that I should put four backslahes in my pattern to make it match a single 
backslash.

This is good in static patterns. But my pattern is a variable string which I want to 
put in good pattern format using the fonction preg_quote.

But this function transforms one backslash in only two backshlashes (and not 4 !)... 
Thus, the only way to make my program work is to apply two times this function 
preg_quote.  This works, but this is not very nice, is it ?

So, isn't there a bug in function preg_quote ?

Thanks in advance,
Olivier Roos


---

[2001-06-18 11:53:03] [EMAIL PROTECTED]
Hello,

I have to write a program which replaces backslashes by slashes into HTML code. I 
would like to do this using regular expressions.

Unfortunately, there may be a problem in pattern matching as PHP does not seem to work 
properly as soon as I add some backslashes in my patterns...

Here is a small example which illustrates the problem:


The output of this program is the following:
XX
X\X
0

The '0' means that the preg_match failed... But the pattern of this preg_match was the 
string $test quoted by preg_quote to become a valid pattern... (as you can see on 
second line of the output).
So this preg_match should output '1', shouldn't it ??

Thanks in advance for any help or advice,
Olivier Roos


---



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


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




[PHP-DEV] Bug #11541 Updated: weird behaviour with references and foreach

2001-06-19 Thread andre

ID: 11541
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Feature/Change Request
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

no bug, closing

ps. this is PHP there won't be local variables like the ones you proposed in the near 
future I guess

Previous Comments:
---

[2001-06-18 14:29:54] [EMAIL PROTECTED]
well, maybe this behaviour is not so weird as I tought...
the problem I had, was that the line taking the reference
and the foreach-statement were far apart, and I'd really
like to have localized variables in the foreach, like
foreach($arr as (my $val))...

---

[2001-06-18 14:20:23] [EMAIL PROTECTED]
";

/* for some reason the following code magically kills
   an array value, or better, overwrites it with another one.
   might be related to bug #6417 */

$arr = array('a','b');
$ref =& $arr[0];

print_r($arr);
/* gives: Array ( [0] => a [1] => b ) */

foreach($arr as $ref);
print_r($arr);

/* gives: Array ( [0] => b [1] => b ) */
?>


---



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


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




[PHP-DEV] Corba & satellite

2001-06-18 Thread Andre Rabe



How do I install 
Satellite extentions?


[PHP-DEV] Re: [PEAR-CVS] cvs: pear /Net_Ping Ping.php package.xml

2001-05-22 Thread Andre Langhorst

Tomas V.V.Cox wrote:

> On Tuesday 22 May 2001 19:58, you wrote:
> 
>>>But please say somewhere that the class is experimental, so users won't
>>>use it and pear developers can help on improve it. The experimental dir
>>>is a quite good way of saying this for me.

+1

andré

-- 
· André Langhorstt: +49 331 5811560 ·
· [EMAIL PROTECTED]  m: +49 173 9558736 ·
* PHP Quality Assurance  http://qa.php.net  *


-- 
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] latest flame on php-dev

2001-05-22 Thread Andre Langhorst

guys,
we are not alone: http://bugzilla.mozilla.org/show_bug.cgi?id=82060 ;)

andré


-- 
· André Langhorstt: +49 331 5811560 ·
· [EMAIL PROTECTED]  m: +49 173 9558736 ·
* PHP Quality Assurance  http://qa.php.net  *


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




Re: [PHP-DEV] Lame support for win32 mail() function -rant

2001-05-22 Thread Andre Langhorst

> This guy is perfect. 100% pure genious, batteries included. "Please do
> something for me for free, and fast, or I will curse you and call you lazy
> dorks!". I love you, Joel. You made my day. Thank you *bow*.

this flame is almost as silly as the "jon" flame (but I liked Jon 
better, he was pretty smart transforming about anything into insults), 
here my input:

Rant reaction recommendation: offensive postings

1) do *not* reply after 3 subsequent offensive postings (reason: the 
offending subject is unlikely to be converted to normal behaviour)

then

2) stop the thread

remembering the "jon" flame? it took way to much time to read, ok. it 
was funny, but remember there are many people on the list who neither 
want to have fun nor want their inboxes spammed with rubbish

if you still want to reply, throw a dice and if you got "6" two times go 
to (3), otherwise go to (2)

3) if you *do* reply - do not offend, even people whose IQ is smaller 
than the reciprocal value of our bug count tend to spam the list more 
and more, send more and more unnecessary stuff, upset more and more people
but even if you do not offend, the recipient is likely to be offending 
anyway

andré




-- 
· André Langhorstt: +49 331 5811560 ·
· [EMAIL PROTECTED]  m: +49 173 9558736 ·
* PHP Quality Assurance  http://qa.php.net  *


-- 
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 #6342 Updated: Can't connect to Oracle DB via ODBC

2001-04-03 Thread andre

ID: 6342
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: ODBC related
Assigned To: 
Comments:

unable to verify, closed

Previous Comments:
---

[2001-04-02 17:03:40] [EMAIL PROTECTED]
is this still a valid bug, or has it been addressed in a recent release of php?

---

[2000-08-24 20:04:18] [EMAIL PROTECTED]
Hi,
I can't connect to any oracle databases using ODBC.
I get the following error when using the M$ oracle odbc drivers

Warning: SQL error: [Microsoft][ODBC driver for Oracle][Oracle]Error while trying to 
retrieve text for error ORA-12154, SQL state 08001 in SQLConnect in 
include/db_odbc.inc on line 30

And the following when using oracles odbc drivers
Warning: SQL error: [Oracle][ODBC][Ora]Error while trying to retrieve text for error 
ORA-12154 , SQL state 08004 in SQLConnect in include/db_odbc.inc on line 30

Any ideas?
I would try and connect via the Oracle Drivers directly but they haven't been included 
in any php4 releases yet and I don't know how to compile it. :)


---



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


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




[PHP-DEV] PHP 4.0 Bug #9566 Updated: error with switch() control structure syntax error reporting

2001-03-20 Thread andre

ID: 9566
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Reproduceable crash
Assigned To: 
Comments:



Previous Comments:
---

[2001-03-16 15:48:06] [EMAIL PROTECTED]
for me 4.0.4pl1 gives a parse error
on teh '"a:"' line

---

[2001-03-05 15:49:46] [EMAIL PROTECTED]

If there is a syntax error in my switch control structure, my script returns a message 
pop-up 'The server returned an invalid or unrecognized response.', 
It seems that the syntax of the switch control structure is not checked properly 
before processing the script. 
this is my invalid switch structure (missing a 'case' statement):
$varX = "a";
switch($varX){
  "a":
echo("a");
break;
  case "b":
echo("b");
break;
}

check it out!

---



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


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




[PHP-DEV] PHP 4.0 Bug #9783 Updated: dirname()

2001-03-19 Thread andre

ID: 9783
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Assigned
Bug Type: Filesystem function related
Assigned To: andre
Comments:

this seems to be a bug

Previous Comments:
---

[2001-03-16 06:44:10] [EMAIL PROTECTED]
echo dirname("c:/fuck/abc/");
prints out c:/fuck


---



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


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




[PHP-DEV] PHP 4.0 Bug #8935 Updated: A reference to 'this' can not be used in the constructor method for a class.

2001-03-09 Thread andre

ID: 8935
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Duplicate
Status: Closed
Bug Type: Class/Object related
Assigned To: 
Comments:



Previous Comments:
---

[2001-03-09 17:26:53] [EMAIL PROTECTED]
not really this is only a duplicate report for an already
fixed bug...

---

[2001-03-09 17:09:08] [EMAIL PROTECTED]
It's fixed -> closed.

--Jani


---

[2001-03-09 13:50:45] [EMAIL PROTECTED]
this has been fixed for months,
please use =& new instead of = new in this special case

---

[2001-02-24 14:14:09] [EMAIL PROTECTED]
Please see the 4.0.4 release change log a lot of things along this line were fixed.

James

---

[2001-01-26 09:37:16] [EMAIL PROTECTED]
The following script demonstrates the problem.

a=new A();
$this->a->Init();
echo "A val before calling change: ".$this->a->val."";
$this->a->bobj->ChangeA();
echo "A val after calling change (should be 3): ".$this->a->val."";
}
}

class A {
var $val=1;
var $bobj=null;

function A() {
   $this->bobj = new B();
}
function Init() {
   // Workaround it is safe to use a refernce to this outside the constuctor
   $this->bobj->Init(&$this);
}
function SetVal($v) {
$this->val=$v;
}
};

class B {
  var $aobj=null;
  function B() {
  }
  function Init(&$obj) {
 $this->aobj=&$obj;
  }
  function ChangeA() {
 $this->aobj->SetVal(3);
  }
};

class ContainerA1 {
var $a;
function ContainerA1() {
$this->a=new A1();
echo "A val before calling change: ".$this->a->val."";
$this->a->bobj->ChangeA();
echo "A val after calling change (should be 3): ".$this->a->val."";
}
}

// BUG
class A1 {
var $val=1;
var $bobj=null;

function A1() {
$this->bobj = new B();

// BUG. A reference of 'this' is NOT passed here as it seems but a copy!
// Hence the bobj will contain another copy of A1 and not the one we
// are just creating.
$this->bobj->Init(&$this);
}
function SetVal($v) {
$this->val=$v;
}
};

echo "Demonstration of 'this' bug.";
echo "Using class A (workaround)";
$c1=new ContainerA();

echo "Using class A1 (BUG)";
$c1=new ContainerA1();

?>

---

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


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


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




[PHP-DEV] PHP 4.0 Bug #8935 Updated: A reference to 'this' can not be used in the constructor method for a class.

2001-03-09 Thread andre

ID: 8935
Updated by: andre
Reported By: [EMAIL PROTECTED]
Status: Duplicate
Bug Type: Class/Object related
Assigned To: 
Comments:

I have added some notes to the documenation, as far as the
the site has been updated its documenatation check it out
"language.oop.newref.html" (http://snaps.php.net/manuals/)
it may take a day or two ...

Previous Comments:
---

[2001-03-09 17:26:53] [EMAIL PROTECTED]
not really this is only a duplicate report for an already
fixed bug...

---

[2001-03-09 17:09:08] [EMAIL PROTECTED]
It's fixed -> closed.

--Jani


---

[2001-03-09 13:50:45] [EMAIL PROTECTED]
this has been fixed for months,
please use =& new instead of = new in this special case

---

[2001-02-24 14:14:09] [EMAIL PROTECTED]
Please see the 4.0.4 release change log a lot of things along this line were fixed.

James

---

[2001-01-26 09:37:16] [EMAIL PROTECTED]
The following script demonstrates the problem.

a=new A();
$this->a->Init();
echo "A val before calling change: ".$this->a->val."";
$this->a->bobj->ChangeA();
echo "A val after calling change (should be 3): ".$this->a->val."";
}
}

class A {
var $val=1;
var $bobj=null;

function A() {
   $this->bobj = new B();
}
function Init() {
   // Workaround it is safe to use a refernce to this outside the constuctor
   $this->bobj->Init(&$this);
}
function SetVal($v) {
$this->val=$v;
}
};

class B {
  var $aobj=null;
  function B() {
  }
  function Init(&$obj) {
 $this->aobj=&$obj;
  }
  function ChangeA() {
 $this->aobj->SetVal(3);
  }
};

class ContainerA1 {
var $a;
function ContainerA1() {
$this->a=new A1();
echo "A val before calling change: ".$this->a->val."";
$this->a->bobj->ChangeA();
echo "A val after calling change (should be 3): ".$this->a->val."";
}
}

// BUG
class A1 {
var $val=1;
var $bobj=null;

function A1() {
$this->bobj = new B();

// BUG. A reference of 'this' is NOT passed here as it seems but a copy!
// Hence the bobj will contain another copy of A1 and not the one we
// are just creating.
$this->bobj->Init(&$this);
}
function SetVal($v) {
$this->val=$v;
}
};

echo "Demonstration of 'this' bug.";
echo "Using class A (workaround)";
$c1=new ContainerA();

echo "Using class A1 (BUG)";
$c1=new ContainerA1();

?>

---

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


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


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




[PHP-DEV] PHP 4.0 Bug #8935 Updated: A reference to 'this' can not be used in the constructor method for a class.

2001-03-09 Thread andre

ID: 8935
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Closed
Status: Duplicate
Bug Type: Class/Object related
Assigned To: 
Comments:

not really this is only a duplicate report for an already
fixed bug...

Previous Comments:
---

[2001-03-09 17:09:08] [EMAIL PROTECTED]
It's fixed -> closed.

--Jani


---

[2001-03-09 13:50:45] [EMAIL PROTECTED]
this has been fixed for months,
please use =& new instead of = new in this special case

---

[2001-02-24 14:14:09] [EMAIL PROTECTED]
Please see the 4.0.4 release change log a lot of things along this line were fixed.

James

---

[2001-01-26 09:37:16] [EMAIL PROTECTED]
The following script demonstrates the problem.

a=new A();
$this->a->Init();
echo "A val before calling change: ".$this->a->val."";
$this->a->bobj->ChangeA();
echo "A val after calling change (should be 3): ".$this->a->val."";
}
}

class A {
var $val=1;
var $bobj=null;

function A() {
   $this->bobj = new B();
}
function Init() {
   // Workaround it is safe to use a refernce to this outside the constuctor
   $this->bobj->Init(&$this);
}
function SetVal($v) {
$this->val=$v;
}
};

class B {
  var $aobj=null;
  function B() {
  }
  function Init(&$obj) {
 $this->aobj=&$obj;
  }
  function ChangeA() {
 $this->aobj->SetVal(3);
  }
};

class ContainerA1 {
var $a;
function ContainerA1() {
$this->a=new A1();
echo "A val before calling change: ".$this->a->val."";
$this->a->bobj->ChangeA();
echo "A val after calling change (should be 3): ".$this->a->val."";
}
}

// BUG
class A1 {
var $val=1;
var $bobj=null;

function A1() {
$this->bobj = new B();

// BUG. A reference of 'this' is NOT passed here as it seems but a copy!
// Hence the bobj will contain another copy of A1 and not the one we
// are just creating.
$this->bobj->Init(&$this);
}
function SetVal($v) {
$this->val=$v;
}
};

echo "Demonstration of 'this' bug.";
echo "Using class A (workaround)";
$c1=new ContainerA();

echo "Using class A1 (BUG)";
$c1=new ContainerA1();

?>

---



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


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




[PHP-DEV] PHP 4.0 Bug #8935 Updated: A reference to 'this' can not be used in the constructor method for a class.

2001-03-09 Thread andre

ID: 8935
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Duplicate
Bug Type: Class/Object related
Assigned To: 
Comments:

this has been fixed for months,
please use =& new instead of = new in this special case

Previous Comments:
---

[2001-02-24 14:14:09] [EMAIL PROTECTED]
Please see the 4.0.4 release change log a lot of things along this line were fixed.

James

---

[2001-01-26 09:37:16] [EMAIL PROTECTED]
The following script demonstrates the problem.

a=new A();
$this->a->Init();
echo "A val before calling change: ".$this->a->val."";
$this->a->bobj->ChangeA();
echo "A val after calling change (should be 3): ".$this->a->val."";
}
}

class A {
var $val=1;
var $bobj=null;

function A() {
   $this->bobj = new B();
}
function Init() {
   // Workaround it is safe to use a refernce to this outside the constuctor
   $this->bobj->Init(&$this);
}
function SetVal($v) {
$this->val=$v;
}
};

class B {
  var $aobj=null;
  function B() {
  }
  function Init(&$obj) {
 $this->aobj=&$obj;
  }
  function ChangeA() {
 $this->aobj->SetVal(3);
  }
};

class ContainerA1 {
var $a;
function ContainerA1() {
$this->a=new A1();
echo "A val before calling change: ".$this->a->val."";
$this->a->bobj->ChangeA();
echo "A val after calling change (should be 3): ".$this->a->val."";
}
}

// BUG
class A1 {
var $val=1;
var $bobj=null;

function A1() {
$this->bobj = new B();

// BUG. A reference of 'this' is NOT passed here as it seems but a copy!
// Hence the bobj will contain another copy of A1 and not the one we
// are just creating.
$this->bobj->Init(&$this);
}
function SetVal($v) {
$this->val=$v;
}
};

echo "Demonstration of 'this' bug.";
echo "Using class A (workaround)";
$c1=new ContainerA();

echo "Using class A1 (BUG)";
$c1=new ContainerA1();

?>

---



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


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




[PHP-DEV] PHP 4.0 Bug #9407 Updated: Memory Problem while using self referencing objects...

2001-03-09 Thread andre

ID: 9407
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Suspended
Bug Type: Performance problem
Assigned To: 
Comments:

cicrular/self references are known to leak memory, not sure
if this can be improved

Previous Comments:
---

[2001-02-22 12:09:20] [EMAIL PROTECTED]
-configure-
"./configure" 
"--with-apache=../apache_1.3.14" 
"--with-mysql" 
"--enable-sysvshm" 
"--enable-sysvsem" 
"--with-gd" 
"--enable-trans-sid" 
"--with-config-file-path=/etc/" 
"--enable-url-includes" 
"--enable-magic-quotes" 
"--enable-track-vars" 
"--enable-sockets" 
"--with-jpeg-dir=/root/jpeg-6b/" 
"--with-imap=/root/imap-2000b" 
-configure-

maybe i should mention, that
this problem happend with every other configuration i tested (other Servers) too


-sample-scripts-
-class-one-
foobar1 =& $foobar[0];
  $this->foobar2 =& $foobar[1];
 }
}
?>
-class-one-
-class-two-
some_other_class_but_not_class_one();  
 }
}
?>
-class-two-
-script--


-script--
-sample-scripts-

-problem-
Execute a set of scripts like this, uhm say 3000 times, youll notice that 
your free mem will get lower and lower...
i noticed that when my mem was full... not really cool...

i think this is a problem of the garbage collection, but im not sure...

any ideas?


Peter Petermann

---



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


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




[PHP-DEV] PHP 4.0 Bug #9633 Updated: sort() not working

2001-03-09 Thread andre

ID: 9633
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Unknown/Other Function
Assigned To: 
Comments:

bogus,
try using var_dump() on $tb to figure out what happens,
sort() is fine indeed...

Previous Comments:
---

[2001-03-08 13:43:59] [EMAIL PROTECTED]
I have an array with random number of elements. I analyse each value (by random 
selection) and unset it after. In one case, If I unset the first element of my array 
with 2 elements, sort function does not slide value of the second element to the first 
element. (sorry for my english). 

Exemple :

";
  unset ($tb[0]);
  echo "After unset: [0]=$tb[0] [1]=$tb[1] [2]=$tb[2]";
  sort ($tb);
  echo "After sort: [0]=$tb[0] [1]=$tb[1] [2]=$tb[2]";
  unset ($tb[0]);
  echo "After unset: [0]=$tb[0] [1]=$tb[1]";
  sort ($tb);
  echo "After sort: [0]=$tb[0] [1]=$tb[1]";
?>

I resolved this trouble by calling implode and explode functions.

---



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


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




[PHP-DEV] PHP 4.0 Bug #9653 Updated: don't work

2001-03-09 Thread andre

ID: 9653
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: *Install and Config
Assigned To: 
Comments:

please try out the binaries from www.php4win.de and look of
they work for you

Previous Comments:
---

[2001-03-09 09:02:07] [EMAIL PROTECTED]
I lived en Costa Rica and I speck Spanish.

  Please Help me, everybody speck Spanish, that my english don't good.

My Problem.

  I instaled en my NT 4.0 the versrion php-4_0_1pl2-win32, that work very good, but 
the next versions don't work, because the IIS don't recognize the PHP Modules.

 I want install the new version but i have a many problem.

 Please help me. 

Excuse me, my name is Eduardo Mena.




---



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


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




[PHP-DEV] PHP 4.0 Bug #9652 Updated: don't work

2001-03-09 Thread andre

ID: 9652
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: *Install and Config
Assigned To: 
Comments:



Previous Comments:
---

[2001-03-09 08:59:46] [EMAIL PROTECTED]
I lived en Costa Rica and I speck Spanish.

  Please Help me, everybody speck Spanish, that my english don't good.

My Problem.

  I instaled en my NT 4.0 the versrion php-4_0_1pl2-win32, that work very good, but 
the next versions don't work, because the IIS don't recognize the PHP Modules.

 I want install the new version but i have a many problem.

 Please help me. 



---



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


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




[PHP-DEV] PHP 4.0 Bug #9477 Updated: Object is destroyed before references all released

2001-03-08 Thread andre

ID: 9477
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Assigned To: 
Comments:

this all makes sense and generally you do NOT need to use
"=& new" your case included, this is due to PHPs nature and
this all has been discussed
search the archives (marc.theaimsgroup.com) for
"reference counting" and "this+constructor" or maybe "=&" to
understand when it required to use "=&" with new

there are some resources on reference counting in the manual
or at zend.com IRC

Previous Comments:
---

[2001-03-09 00:32:08] [EMAIL PROTECTED]
I retract this bug. I think the issue is that I was looking for pointer semantics in a 
language that does not support it but at the same time is not strongly typed so that 
what appears to be correct, does not in fact reset the reference but actually 
overwrites the original object by assignment.

Thank you all for your help. I now have a proper reference implementation of the 
subscriber/publisher pattern for PHP.

Hopefully, I'll be able to keep this all straight for any other patterns I conver to 
PHP.

Just out of curiosity, has ANYONE questioned the whole =& new construct's necessity in 
terms of why the semantics allows for = new as well??? When would you want to assign 
the a copy of the object you just created?

Any help would be appreciated.

---

[2001-03-08 20:55:49] [EMAIL PROTECTED]
bogusifying

apparently you do not know what you are doing here exactly,
please read "references explained" from the manual again...

/* your version - you do not destroy the reference, you
simply overwritte all referenced variables (remember they
are all ONE variable know) with "" */
function junk($name){$this->array[$name]="";}


/* corrected version - this one does what it is written in
your description */
function junk($name){unset($this->array[$name]);}

the corrected one works for me.

/* to clear things up a bit - the following code does the
following: remove the reference by replacing it with another
(to $t), I could imagine you thought it does something
different */
function nojunk($name){$t="";$this->array[$name]=&$t;}


please note I still did not read your comments, your code
reduced code was enough to understand the situation completely

note: please do not use pass-by-ref in call time

---

[2001-03-08 20:07:23] [EMAIL PROTECTED]
I'm really getting tired of this. I guess what I REALLY needed to do is strip out the 
do nothing functions in the skeletons I had on that page because even though they were 
base classes, everyone was missing the point.

Here is the simplest case that generates an error. Anyone want to take a stab at why 
it happens?

array[$name]=&$obj;}

  // Removes the reference from the associative, supposedly
  // but what it does decrease the actual object to nothing
  function junk($name){$this->array[$name]="";}

  // If I do it this way it works. The object isn't nuked.
  // What gives? Do I *HAVE* to use =&$ when assigning refs?

  // Is there an array function that can be used to simply
  // remove the array element out, w/o expensive copying?
  function nojunk($name){$t="";$this->array[$name]=&$t;}
};

// Our do nothing class.
class me{
  function test(){echo "Hello, I'm still validn";}
};

// Please don't tell me not to send the reference to the
// object because I need to have only one copy of the object
// and not a million of them especially since these objects
// might be opening files and sockets.
$m=& new me();
$o=& new obj();

// This section works
$o->test("test",&$m);
$m->test();
$o->nojunk("test");
$m->test();

// This section fails
$o->test("test",&$m);
$m->test();
$o->junk("test");
// Right here
$m->test();
?>

So? What's the deal? Once you assign a reference to a variable, you're done? You can't 
ever reassign the reference? Does what I'm proposing make sense syntactically 
speaking? I want the array to contain the reference to the object, but then I want to 
be able to unassign the reference from the array so that that particular object 
doesn't get used. An unregistration as it were.

---

[2001-03-08 17:24:46] [EMAIL PROTECTED]
> Did I miss anything in helping debug this issue or did I 
> just do too much?

you did the wrong thing!
the following passage is the only one I have read, I have

[PHP-DEV] PHP 4.0 Bug #9477 Updated: Object is destroyed before references all released

2001-03-08 Thread andre

ID: 9477
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Assigned To: 
Comments:



Previous Comments:
---

[2001-03-08 20:07:23] [EMAIL PROTECTED]
I'm really getting tired of this. I guess what I REALLY needed to do is strip out the 
do nothing functions in the skeletons I had on that page because even though they were 
base classes, everyone was missing the point.

Here is the simplest case that generates an error. Anyone want to take a stab at why 
it happens?

array[$name]=&$obj;}

  // Removes the reference from the associative, supposedly
  // but what it does decrease the actual object to nothing
  function junk($name){$this->array[$name]="";}

  // If I do it this way it works. The object isn't nuked.
  // What gives? Do I *HAVE* to use =&$ when assigning refs?

  // Is there an array function that can be used to simply
  // remove the array element out, w/o expensive copying?
  function nojunk($name){$t="";$this->array[$name]=&$t;}
};

// Our do nothing class.
class me{
  function test(){echo "Hello, I'm still validn";}
};

// Please don't tell me not to send the reference to the
// object because I need to have only one copy of the object
// and not a million of them especially since these objects
// might be opening files and sockets.
$m=& new me();
$o=& new obj();

// This section works
$o->test("test",&$m);
$m->test();
$o->nojunk("test");
$m->test();

// This section fails
$o->test("test",&$m);
$m->test();
$o->junk("test");
// Right here
$m->test();
?>

So? What's the deal? Once you assign a reference to a variable, you're done? You can't 
ever reassign the reference? Does what I'm proposing make sense syntactically 
speaking? I want the array to contain the reference to the object, but then I want to 
be able to unassign the reference from the array so that that particular object 
doesn't get used. An unregistration as it were.

---

[2001-03-08 17:24:46] [EMAIL PROTECTED]
> Did I miss anything in helping debug this issue or did I 
> just do too much?

you did the wrong thing!
the following passage is the only one I have read, I have
not visited your site, nor anything else (we simply do not
have the time to do this kind of things, it's exactly the
same in any bigger OS project I know of (eg. bugzilla,
provide minimized testcases or your bug will never be fixed)


Bottom line: global object passed as a reference to a method
and then assigned to an array
which is a member of another object.  The second object is
then requested to delete the
reference to global object. At the moment the reference in
the array is deleted, the global
object goes kaboom too.


what I have done then, is creating PHP source reading the
words above:

function foo (&$foo) {
   $zoo->array['foo']=&$foo;
   unset($zoo->array['foo']); // simplified
   }
$foo->test=TRUE;
foo($foo);
var_dump($foo);

***
This is works for me and this is how we expect code
snipplets, feel free to modify it to match exactly your
problem...



---

[2001-03-08 16:55:04] [EMAIL PROTECTED]
a) The comment I got in my eyes said there was nothing that was looked at.
b) I do open source work too.
c) I have tried over and over in the past to get things included in php that were 
overlooked for almost 3 years until they finally got put in. Specifically detecting 
the different datatypes that some of the databases generate as field types.
d) The URL I gave has a total of 4 files. 2 source files. And to active scripts that 
when run, generate the results.
e) The one marked Normal, which completes with no errors, is obviously correct.
f) The other one fails.
g) There is only one line difference in the entire code.
i) I have a global object passed by reference that is then assigned to an array.
j) When this object reference in the array is set to nothing, the global object is 
destroyed.
k) If on the other hand I use a separate array to identify what array elements are 
defunt, the object still exists.
l) If you ran the non-normal script by clicking on it, it would report the line where 
the error occurred.
m) In my scripts, which unfortunately are part of another open source project, I have 
VERY CLEARLY marked the section of the code that is different in each instance.
o) If someone is wading through 313 lines of code to find my bug, then they really 
didn't think to click on the script, and I guess THAT is truly my REAL error as I did 
not specify t

[PHP-DEV] PHP 4.0 Bug #9477 Updated: Object is destroyed before references all released

2001-03-08 Thread andre

ID: 9477
Updated by: andre
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Assigned To: 
Comments:

bogusifying

apparently you do not know what you are doing here exactly,
please read "references explained" from the manual again...

/* your version - you do not destroy the reference, you
simply overwritte all referenced variables (remember they
are all ONE variable know) with "" */
function junk($name){$this->array[$name]="";}


/* corrected version - this one does what it is written in
your description */
function junk($name){unset($this->array[$name]);}

the corrected one works for me.

/* to clear things up a bit - the following code does the
following: remove the reference by replacing it with another
(to $t), I could imagine you thought it does something
different */
function nojunk($name){$t="";$this->array[$name]=&$t;}


please note I still did not read your comments, your code
reduced code was enough to understand the situation completely

note: please do not use pass-by-ref in call time

Previous Comments:
---

[2001-03-08 20:07:23] [EMAIL PROTECTED]
I'm really getting tired of this. I guess what I REALLY needed to do is strip out the 
do nothing functions in the skeletons I had on that page because even though they were 
base classes, everyone was missing the point.

Here is the simplest case that generates an error. Anyone want to take a stab at why 
it happens?

array[$name]=&$obj;}

  // Removes the reference from the associative, supposedly
  // but what it does decrease the actual object to nothing
  function junk($name){$this->array[$name]="";}

  // If I do it this way it works. The object isn't nuked.
  // What gives? Do I *HAVE* to use =&$ when assigning refs?

  // Is there an array function that can be used to simply
  // remove the array element out, w/o expensive copying?
  function nojunk($name){$t="";$this->array[$name]=&$t;}
};

// Our do nothing class.
class me{
  function test(){echo "Hello, I'm still validn";}
};

// Please don't tell me not to send the reference to the
// object because I need to have only one copy of the object
// and not a million of them especially since these objects
// might be opening files and sockets.
$m=& new me();
$o=& new obj();

// This section works
$o->test("test",&$m);
$m->test();
$o->nojunk("test");
$m->test();

// This section fails
$o->test("test",&$m);
$m->test();
$o->junk("test");
// Right here
$m->test();
?>

So? What's the deal? Once you assign a reference to a variable, you're done? You can't 
ever reassign the reference? Does what I'm proposing make sense syntactically 
speaking? I want the array to contain the reference to the object, but then I want to 
be able to unassign the reference from the array so that that particular object 
doesn't get used. An unregistration as it were.

---

[2001-03-08 17:24:46] [EMAIL PROTECTED]
> Did I miss anything in helping debug this issue or did I 
> just do too much?

you did the wrong thing!
the following passage is the only one I have read, I have
not visited your site, nor anything else (we simply do not
have the time to do this kind of things, it's exactly the
same in any bigger OS project I know of (eg. bugzilla,
provide minimized testcases or your bug will never be fixed)


Bottom line: global object passed as a reference to a method
and then assigned to an array
which is a member of another object.  The second object is
then requested to delete the
reference to global object. At the moment the reference in
the array is deleted, the global
object goes kaboom too.


what I have done then, is creating PHP source reading the
words above:

function foo (&$foo) {
   $zoo->array['foo']=&$foo;
   unset($zoo->array['foo']); // simplified
   }
$foo->test=TRUE;
foo($foo);
var_dump($foo);

***
This is works for me and this is how we expect code
snipplets, feel free to modify it to match exactly your
problem...



---

[2001-03-08 16:55:04] [EMAIL PROTECTED]
a) The comment I got in my eyes said there was nothing that was looked at.
b) I do open source work too.
c) I have tried over and over in the past to get things included in php that were 
overlooked for almost 3 years until they finally got put in. Specifically detecting 
the different datatypes that some of the databases generate as field types.
d) The URL I gave has a total of 4 files. 2 source files. And to active scri

[PHP-DEV] PHP 4.0 Bug #9477 Updated: Object is destroyed before references all released

2001-03-08 Thread andre

ID: 9477
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Scripting Engine problem
Assigned To: 
Comments:

> Did I miss anything in helping debug this issue or did I 
> just do too much?

you did the wrong thing!
the following passage is the only one I have read, I have
not visited your site, nor anything else (we simply do not
have the time to do this kind of things, it's exactly the
same in any bigger OS project I know of (eg. bugzilla,
provide minimized testcases or your bug will never be fixed)


Bottom line: global object passed as a reference to a method
and then assigned to an array
which is a member of another object.  The second object is
then requested to delete the
reference to global object. At the moment the reference in
the array is deleted, the global
object goes kaboom too.


what I have done then, is creating PHP source reading the
words above:

function foo (&$foo) {
   $zoo->array['foo']=&$foo;
   unset($zoo->array['foo']); // simplified
   }
$foo->test=TRUE;
foo($foo);
var_dump($foo);

***
This is works for me and this is how we expect code
snipplets, feel free to modify it to match exactly your
problem...



Previous Comments:
---

[2001-03-08 16:55:04] [EMAIL PROTECTED]
a) The comment I got in my eyes said there was nothing that was looked at.
b) I do open source work too.
c) I have tried over and over in the past to get things included in php that were 
overlooked for almost 3 years until they finally got put in. Specifically detecting 
the different datatypes that some of the databases generate as field types.
d) The URL I gave has a total of 4 files. 2 source files. And to active scripts that 
when run, generate the results.
e) The one marked Normal, which completes with no errors, is obviously correct.
f) The other one fails.
g) There is only one line difference in the entire code.
i) I have a global object passed by reference that is then assigned to an array.
j) When this object reference in the array is set to nothing, the global object is 
destroyed.
k) If on the other hand I use a separate array to identify what array elements are 
defunt, the object still exists.
l) If you ran the non-normal script by clicking on it, it would report the line where 
the error occurred.
m) In my scripts, which unfortunately are part of another open source project, I have 
VERY CLEARLY marked the section of the code that is different in each instance.
o) If someone is wading through 313 lines of code to find my bug, then they really 
didn't think to click on the script, and I guess THAT is truly my REAL error as I did 
not specify that I had set up two identical scripts with one line that is different 
such that one completes and the other fails using the same algorithm, with one minor 
difference.
p) I'm just wondering whether anyone tried clicking on the scripts and saw what I 
indicated or looked at the script in detail long enough to look at the offending line 
and the demarcated difference in each case.
q) If my comments were interpreted as abusive, I apologize, but understand that when I 
have taken all the steps outlined and someone still tells me they cannot reproduce the 
behavior, or they cannot understand it, it tells me they didn't look at the problem. 
Had someone simply said, I don't understand what's different, I wouldn't have felt 
like no one gave a damn to even look at my bug report and had dropped it.
r) In the past my bug reports have been accompanied by no less than a full source code 
solution to the error discovered and you'll have to pardon my disillusionment in 
providing a solution where my answers are obviously ignored regardless of whether they 
are correct or not.

Bottom line: global object passed as a reference to a method and then assigned to an 
array which is a member of another object.  The second object is then requested to 
delete the reference to global object. At the moment the reference in the array is 
deleted, the global object goes kaboom too.

You can see this in the scripts at that URL because I have each object serialized as 
output prior to the error line as well as each object reporting it's operation so you 
can see where things are running.

Did I miss anything in helping debug this issue or did I just do too much?

---

[2001-03-08 16:16:36] [EMAIL PROTECTED]
I'm sure the bugs are very obvious to you. However, your bug report, as given, really 
is
pretty useless. Salient information would include: what results were you expecting,
compared to the results you got? What, exactly, did not work as you expected? And when
we say 'short' script, we really mean 'short'. Can you provide a quick,

[PHP-DEV] PHP 4.0 Bug #9628 Updated: PHP.INI cannot read new values

2001-03-08 Thread andre

ID: 9628
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: *Install and Config
Assigned To: 
Comments:



Previous Comments:
---

[2001-03-08 11:45:12] [EMAIL PROTECTED]
java
Directive   Local Value Master Value
java.class.path

D:php4extensionsphp_java.jar;c:jdk1.2.2jrelibrt.jar;c:jdk1.2.2jrebin;C:JBuilder3javalibjdkdep.jar;C:JBuilder3javajrelibrt.jar;C:JBuilder3javalibdt.jar;C:JBuilder3javalibtools.jar;C:orantjdbclibclasses111.zip;C:devjavaclassesjstyle.jar;C:devjavaclasses
 
D:php4extensionsphp_java.jar;c:jdk1.2.2jrelibrt.jar;c:jdk1.2.2jrebin;C:JBuilder3javalibjdkdep.jar;C:JBuilder3javajrelibrt.jar;C:JBuilder3javalibdt.jar;C:JBuilder3javalibtools.jar;C:orantjdbclibclasses111.zip;C:devjavaclassesjstyle.jar;C:devjavaclasses

java.home
c:jdk1.2.2  c:jdk1.2.2
java.library
c:jdk1.2.2jrebinclassicjvm.dll  c:jdk1.2.2jrebinclassicjvm.dll
java.library.path
D:php4extensionsphp_java.jar;   D:php4extensionsphp_java.jar;


And   in PHP.INI


;[Java]
;java.class.path = 
"D:php4extensionsphp_java.jar;c:jdk1.2.2jrelibrt.jar;c:jdk1.2.2jrebin;C:JBuilder3javalibjdkdep.jar;C:JBuilder3javajrelibrt.jar;C:JBuilder3javalibdt.jar;C:JBuilder3javalibtools.jar;C:orantjdbclibclasses111.zip;C:devjavaclassesjstyle.jar;C:devjavaclasses"

;java.home = c:jdk1.2.2
;java.library = "D:php4extensionsphp_java.jar;c:jdk1.2.2jrebinclassicjvm.dll;" 
;java.library.path = "D:php4extensionsphp_java.jar;"

I deleted this entry completely but PHP.INFO can see it,
Rebouut dit not help



---



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


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




[PHP-DEV] PHP 4.0 Bug #9629 Updated: PHP.INI cannot read new values

2001-03-08 Thread andre

ID: 9629
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: *Install and Config
Assigned To: 
Comments:



Previous Comments:
---

[2001-03-08 11:45:41] [EMAIL PROTECTED]


---



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


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




[PHP-DEV] PHP 4.0 Bug #9603 Updated: please include one browscap.ini

2001-03-07 Thread andre

ID: 9603
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Closed
Status: Bogus
Bug Type: *Install and Config
Assigned To: 
Comments:

bogus

Previous Comments:
---

[2001-03-07 12:59:31] [EMAIL PROTECTED]
Forgotten to close.

---

[2001-03-07 12:58:14] [EMAIL PROTECTED]
Please read the Dos and Don'ts.

---

[2001-03-07 12:16:27] [EMAIL PROTECTED]


---



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


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




[PHP-DEV] PHP 4.0 Bug #1546 Updated: Unable to pass path info while using php in cgi mode.

2001-02-22 Thread andre

ID: 1546
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Bug Type: *Web Server problem
Assigned To: 
Comments:

user patch suggestion:

30,31d29
< #include 
< #include 
278c276
< #if 0 
---
> #if 0
384,385d381
< struct stat statbuf;
< char *lastslashptr;
707,721d702
< 
</*allow use of extended path in URL
<(e.g:
http://.../file.php/downloadfn.exe?name="me"&... 
< */
< lstat(env_path_translated,&statbuf);
< while(strlen(env_path_translated)!=0 &&
!S_ISREG(statbuf.st_mode)
< && !S_ISLNK(statbuf.st_mode) &&
!S_ISDIR(statbuf.st_mode))
< {
< 
<lastslashptr=strrchr(env_path_translated,'/');
<if(lastslashptr)*lastslashptr='\0';
<stat(env_path_translated,&statbuf);
<}
<  
< 


Previous Comments:
---

[2001-02-10 13:26:36] [EMAIL PROTECTED]
refiling as bug against 4.0.

---

[1999-06-16 01:16:02] [EMAIL PROTECTED]
I am unable to pass pathinfo to my script while using php in cgi mode.

The problem in particular (maybe you all know of a workaround) is I'm trying to create 
a download script.  While using PHP in cgi mode I can't get Netscape and IE to assign 
the download the proper name...

A possible solution could be a path_info translation something like:

http://www/cgi-bin/php/scriptdir/script.php3;/path_infoToPassToScript

Let me know what you think...

P.S.  The PHP base library is awesome and I wouldn't mind seeing future versions of 
PHP having the DB abstraction libraries that the PHP base library offers built in.

Alec Effrat
Brainpod Technical Consulting
[EMAIL PROTECTED]

---



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


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




[PHP-DEV] PHP 4.0 Bug #9381 Updated: PHP doesn't work.....

2001-02-21 Thread andre

ID: 9381
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: *General Issues
Assigned To: 
Comments:

That´s most likely no bug and not nearly enough information.

Previous Comments:
---

[2001-02-21 14:58:10] [EMAIL PROTECTED]
hi,

i have problem with PHP, i have installed MySQL, PersonalWebServer...and PHP 4.0.4 
mudul..but PHP doesn't work!! why?? please HELP ME

thanks

---



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


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




[PHP-DEV] PHP 4.0 Bug #8680 Updated: Here-DOC termination

2001-02-21 Thread andre

ID: 8680
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Documentation problem
Assigned To: 
Comments:

forgot closing

Previous Comments:
---

[2001-01-12 12:58:09] [EMAIL PROTECTED]
This is intended, but noted in the manual.

---

[2001-01-12 12:38:50] [EMAIL PROTECTED]
The following PHP code causes a Parse error:

$string <<< EOD
This
is
a
string.
EOD ;

Workaround: eliminate space that precedes semicolon.  This causes me to depart from 
the best practices I chose to follow.

---



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


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




[PHP-DEV] PHP 4.0 Bug #9387 Updated: Doc String Quoting Problem

2001-02-21 Thread andre

ID: 9387
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

the indenting issue is already present as RFE in the db

Previous Comments:
---

[2001-02-21 18:31:23] [EMAIL PROTECTED]
The doc part is taken care of, I'm reopening in case someone wants to present
a really good solution. :)

---

[2001-02-21 17:38:07] [EMAIL PROTECTED]
This is not a bug. Check the third sentence below, from the PHP Manual at 
http://www.php.net/manual/en/language.types.string.php:

 Another way to delimit strings is by using here doc syntax ("<<<"). One should 
 provide an identifier after <<<, then the string, and then the same identifier to 
 close the quotation. The closing identifier must begin in the first column of the 
 line. The label used must follow the same naming rules as any other label in PHP: 
 it must contain only alphanumeric characters and underscores, and must start with 
 a non-digit character or underscore. 



---

[2001-02-21 17:21:34] [EMAIL PROTECTED]
When you are using doc string quoting or something, php doesn't recognize the thing 
that stops it if indented at all or something.  There are two examples to illistrate 
my point:

echo <<http://bugs.php.net/?id=9387&edit=2


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




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

2001-02-20 Thread andre

ID: 9198
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Suspended
Status: Feedback
Bug Type: *Session related
Assigned To: 
Comments:



Previous Comments:
---

[2001-02-10 04:41:57] [EMAIL PROTECTED]
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


---

[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



---



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


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




[PHP-DEV] PHP 4.0 Bug #9355 Updated: Under 4.0.0 developed system with newer php doesn't work properly.

2001-02-20 Thread andre

ID: 9355
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: PostgreSQL related
Assigned To: 
Comments:

don't forget to set to "feedback"

Previous Comments:
---

[2001-02-20 13:04:53] [EMAIL PROTECTED]
If you can, grab the latest version from CVS.  I believe they fixed this problem.

http://snaps.php.net

Chris

---

[2001-02-20 12:45:46] [EMAIL PROTECTED]
We developed under 4.0.0 using non-persistent connection to the PostgreSQL database.
After upgrading PHP to 4.0.4 there were some abnormally errors.
E.g. to display a page we used 8 or 10 connections.
After 3 or 4 connections we got an "unable to connect database" error.

Incompatibility between versions or what?

cu

Vamp

---



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


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




[PHP-DEV] PHP 4.0 Bug #9099 Updated: please include one browscap.ini

2001-02-19 Thread andre

ID: 9099
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Assigned
Bug Type: Feature/Change Request
Assigned To: andre
Comments:

AFAIK, we are not allowed to include the cyscape one, but
there is another one out there, I am sure we have discussed
it some day before and I gathered the permission to include
the asptrackers one
(http://marc.theaimsgroup.com/?l=php-dev&m=96453774821265&w=2),

but I do not remember if we did or not? anybody with better
mnemonics?

Previous Comments:
---

[2001-02-04 09:42:07] [EMAIL PROTECTED]
The browscap.ini was there in the 4.0.3pl1
version, but is missing from the 4.0.4pl1
windows zip distribution.

It was a great idea to put browscap.ini
in the distribution, so please do not drop it
out!!!

---



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


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




[PHP-DEV] PHP 4.0 Bug #9092 Updated: variables-by-references in class constructor not working

2001-02-19 Thread andre

ID: 9092
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Duplicate
Bug Type: Class/Object related
Assigned To: 
Comments:

covered by 6343 

Previous Comments:
---

[2001-02-03 19:00:05] [EMAIL PROTECTED]
hmm, i see your point.

is it possible to define a value that should be 
passwd by reference as optional?



---

[2001-02-03 18:09:28] [EMAIL PROTECTED]
This should not work - how can you pass a literal value by reference?

However, you are right about the error message - it does seem to be incorrect.

---

[2001-02-03 17:53:52] [EMAIL PROTECTED]
This code snippet:

class test {
  function test(&$test1=false) {
  }
} 

gives me 

Parse error - parse error, expecting `')''

on the line with the constructor (function ...)

shouldn't this work (or at least return a useful error)?



---



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


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




[PHP-DEV] PHP 4.0 Bug #8978 Updated: Add a 'readonly' possibility to the session module

2001-02-19 Thread andre

ID: 8978
Updated by: andre
Reported By: Maxim Derkachev <[EMAIL PROTECTED]>
Old-Status: Open
Status: Analyzed
Bug Type: Feature/Change Request
Assigned To: 
Comments:



Previous Comments:
---

[2001-01-29 06:21:31] Maxim Derkachev <[EMAIL PROTECTED]>
Just faced the fact that the possibility to call session 'readonly' 
should be added. 
For example, when somebody calls a framed pages where all 
frames are php scripts that needs session variables. But in this 
case only one of them should be allowed to write session state, 
because every frame would write session state in an unpredictable order, 
and variables registered/changed in one frame could be overwritten 
by other frames, and that would definitely break an application. 
I suggest session_start could take an optional READONLY flag to 
disable write of the session data during the page shutdown.
The idea is similar to call page_close() on only one frame in a framed page in 
PHPLib-based applications.

---



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


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




[PHP-DEV] PHP 4.0 Bug #8796 Updated: "$foo->bar->baz" ambiguity in double quoted strings

2001-02-19 Thread andre

ID: 8796
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

there is nothing ambigous (the way you described), except if
enclosed by double quotes in strings, we should maintain
backwards compatibility here, but maybe we shouldn't... :)

I guess (not verified) this applies to here-docs too

Previous Comments:
---

[2001-01-19 02:12:19] [EMAIL PROTECTED]
In PHP4 it is possible to construct an object and refer to 
a member using the notation:

$foo->bar

where foo is the object and bar is the member.

There has been some discussion in the php.net documentation
area on OO about the inability to further extend this 
notation to do something like:

print "$foo->bar->baz";

The reason given for not being able to do this is due
to the ambiguity of the multiple -> operators.

Yes, the -> operator could be ambiguous.  The '+', '*', '%', ...  operators could also 
be ambiguous.  Each language which
uses such binary operators disambiguates them by defining
and associativity and precedence to these operators.

Similarly, for languages which support similar semantics
for an -> operator there is a disambiguating assignment 
of associativity and precedence which allows constructs
like $foo->bar->baz to be unambiguously interpreted.

I am requesting that the specification for PHP be broadened
to include sufficient associativity and precedence constraints on -> to allow 
$foo->bar->baz to be disambiguated.

I believe the most common disambiguation would have:

$foo->bar->baz

refer to "the value of the member 'baz' of the object denoted by the value of the 
member 'bar' of the object denoted by the value of the variable foo."

Of course, I forget at the moment whether that's left- or right-associative, and the 
precedence should presumably be fine set at its current level.


---



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


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




[PHP-DEV] PHP 4.0 Bug #3275 Updated: [PEAR] ICQ support

2001-02-19 Thread andre

ID: 3275
Updated by: andre
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

adding PEAR keyword, that would be a typical C extension for
PEAR

Previous Comments:
---

[2001-02-10 13:59:13] [EMAIL PROTECTED]
refiling against 4.0.

---

[2000-01-22 00:43:23] [EMAIL PROTECTED]
Please add support to connect and collect messages from ICQ
servers either using libicq or icqlib:

icqlib
http://kicq.sourceforge.net/icqlib.shtml

libicq
http://www.korsoft.com/gicq/



---



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


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




[PHP-DEV] PHP 4.0 Bug #9136 Updated: simple script with infinite function calls causes seg fault

2001-02-19 Thread andre

ID: 9136
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Bug Type: Feature/Change Request
Assigned To: 
Comments:



Previous Comments:
---

[2001-02-06 17:41:12] [EMAIL PROTECTED]
maybe we should move this to feature request for safe mode?
it would be fine to give the server owner the possibility to
autokill scripts which would kill the server in a few
microseconds, shouldn't it be implementable without loosing
performance, check the level the stack is filled up against
a values in php.ini maybe...

---

[2001-02-06 17:31:02] [EMAIL PROTECTED]
and guess this "bug" was present in any version before, what
do you expect to happen here? you will never leave these
function calls (as you know I guess), as far as your stack
is full it is full

remember php has to remember each and every function call it
did...

a()
   b()
  a()
 b()
   

if you really need exactly this construct, I would suggest
you to use a static variable to count the total function
calls and find the critical values a specific system
segfaults (with your original code), then you stick a
for(;;) around it and implement a check (eg. in a()) against
the static variable to leave the recursion if a value with
enough distance to the critical value is reached, then you
should be able to begin the recursion again

any recursion can be displayed as a loop, do not use
recursion if you want to recurse infinitely

---

[2001-02-06 17:22:36] [EMAIL PROTECTED]
PHP doesn't handle infinite recursion, and as earlier was discussed on the php-dev 
list, it wont be implemented to guard for this, because of the high performance impact.

---

[2001-02-06 17:18:03] [EMAIL PROTECTED]
---
<%

function a () {
b();
}

function b () {
a();
}

a();

%> 

done
-

The simple script above causes a seg fault.  If you need more info on configuration 
etc please mail me.  We made this simple example from a more compilcated instance.  
This bug was also present in 4.0.3pl1, we upgraded to try and stop the seg fault...

thanks!

---



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


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




[PHP-DEV] PHP 4.0 Bug #8816 Updated: cross subscript object variable access

2001-02-19 Thread andre

ID: 8816
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Class/Object related
Assigned To: 
Comments:

Please provide a reduced code fragment (<15 lines) producing
this behaviour.
Put no database queries etc. in it and rely on no external
files/functions to ensure that we can reproduce it easily
unless the problem is not directly related to some db (or
similar) function.

Previous Comments:
---

[2001-01-19 22:15:50] [EMAIL PROTECTED]
I today found out a strange thing about the PHP4 object/variable handling that I can 
not understand.

My main script first clones a provider class and stores the new object into $MAINPROV;

Then it includes two files that give back two elements of the page.

My provider class has some subclasses. These shall be loaded on demand with functions 
like getFooProvider(). Theese functions test via is_object($this->FOO) if 
the class is already loaded. If not it includes the file containing the class 
definition and spawns $this->FOO = new foo($this).

Now listen to this: If I use the load-function in the main script all works fine. But 
if the class is loaded from one of the subclasses (into the main provider class object 
that is a variable in the main script) it cannot be accessed in the other subscript, 
the second element. This causes the foo-class-file to be reloaded and throws out an 
error message because the class is already defined.

If anybody can help, it would be very very sad if I had to workaround pre-loading 
every subclass that can be used on this page, because I wanted to make it dynamically 
load the classes. Thanks!

---



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


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




[PHP-DEV] PHP 4.0 Bug #9086 Updated: auto trans-sid and output_handler

2001-02-19 Thread andre

ID: 9086
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

this should be covered by the "trans-sid as output handler" RFE

Previous Comments:
---

[2001-02-03 10:33:51] [EMAIL PROTECTED]
Sessions auto trans-sid are not working if you enable the content compression
( output_handler = ob_gzhandler ; in the php.ini )

Here is the output of my configure line :
'./configure' '--prefix=/usr/local/php' 
'--with-config-file-path=/usr/local/apache/php/conf' '--enable-ftp' 
'--enable-magic-quotes' '--enable-track-vars' '--with-regex=system' 
'--enable-trans-sid' '--disable-debug' '--enable-pic' '--enable-inline-optimization' 
'--with-zlib' '--with-config-file-path=/etc' '--with-xml' '--without-mysql' 
'--with-apxs=/usr/local/apache/bin/apxs'

---



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


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




[PHP-DEV] PHP 4.0 Bug #9084 Updated: url-activation for simple URLs

2001-02-19 Thread andre

ID: 9084
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

1) implemented in PEAR

2) not sure whether this should be implemented in PEAR or
PHP, we have get_meta and so on, str_add_anchors() would not
hurt, but maybe not suffice to put in the core

Previous Comments:
---

[2001-02-02 19:34:09] [EMAIL PROTECTED]
I miss two functions in PHP. I believe they should be added to the URL functions if 
added.

1. "E-Mail ereg validation" function.
2. "Enable all urls in a text" function. (Enable means add html tags so they will be 
clickable).

Today I'm using these PHP coded functions:
http://www.zend.com/search_code_author.php?author=russlndr

Thats works fine, but I think they should included as a part of PHP.

---



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


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




[PHP-DEV] PHP 4.0 Bug #9331 Updated: No operator overloading available

2001-02-19 Thread andre

ID: 9331
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Suspended
Bug Type: Feature/Change Request
Assigned To: 
Comments:

I hardly believe this will be implemented anytime soon or
accepted at all,
suspending (for the records)

Previous Comments:
---

[2001-02-19 02:07:25] [EMAIL PROTECTED]
It would be nice to have operator overloading available for 
classes.  Something along the lines of Perl and C++.  I'm 
sure there are other OO languages that provide similar 
functionality.  This would go a long way to allowing the 
creation of object classes that are similar to those built 
into the language.

At least one class I'm wanting to create that could use this 
is an ordered set -- use +,-,*,/ for set union, asymmetric 
difference, intersection, and difference, for example.

Perhaps borrowing the C++ syntax wouldn't be a great burden. 

function operator+(objectClass,objectClass) { ... }

Unfortunately, this would require prototyping of class 
methods, but this is already implicately done for the 
operators (as far as the coder is concerned, even if not in 
fact).

Perhaps one way around the need for an explicit prototype is 
to consider the first argument of the binary operation (the 
left operand) as the governing class for finding the method.  
Then $A+$B == $A->operator+($B) and the function declaration 
is reduced to 

class A {
  function operator+($B) { ... }
}

I think this is important enough to the development of the 
language, and I didn't find mention of it in any of the 
documentation or archives I searched, that I am submitting 
it as a bug report for t

---



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


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




[PHP-DEV] PHP 4.0 Bug #979 Updated: [PEAR] Openmarket Transact support

2001-02-19 Thread andre

ID: 979
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Bug Type: Feature/Change Request
Assigned To: 
Comments:



Previous Comments:
---

[2001-02-10 12:35:51] [EMAIL PROTECTED]
doesn't look like anybody has written an openmarket transact extension. refiled 
against 4.0.

---

[1998-12-07 18:56:38] [EMAIL PROTECTED]
Any chance of support for OpenMarket Transact in PHP. I can't code so I'm just 
fantasising. Maybe someone will pick it up someday.
A full SDK is available from OpenMarket (www.openmarket.com).

Transact is amongst other things, a secure way of processing transactions. DOs 
(digital offers) and DCs (digital coupons) can be produced according so a certain 
encoding process that is then passed to the Transact server for processing.
This means you can provide products and services using these items independent of the 
ISP and they can be attached to any URl, anywhere.

It wouild be real nice to be able to produce a DO from a DB using PHP for passing to 
Transact.

---



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


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




[PHP-DEV] PHP 4.0 Bug #3275 Updated: [PEAR] ICQ support

2001-02-19 Thread andre

ID: 3275
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Bug Type: Feature/Change Request
Assigned To: 
Comments:



Previous Comments:
---

[2001-02-10 13:59:13] [EMAIL PROTECTED]
refiling against 4.0.

---

[2000-01-22 00:43:23] [EMAIL PROTECTED]
Please add support to connect and collect messages from ICQ
servers either using libicq or icqlib:

icqlib
http://kicq.sourceforge.net/icqlib.shtml

libicq
http://www.korsoft.com/gicq/



---



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


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




[PHP-DEV] PHP 4.0 Bug #1515 Updated: improving php standalone mode

2001-02-19 Thread andre

ID: 1515
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Bug Type: Feature/Change Request
Assigned To: 
Comments:



Previous Comments:
---

[2000-05-19 09:56:14] [EMAIL PROTECTED]
php -q is a step in the right direction
but this only disables http headers, 
not html markup in error messages

and php could be more clever when started
standalone (that is, if istty(stdin) is true
or certain environment variables are not set)





---

[1999-11-11 18:04:10] [EMAIL PROTECTED]
Try php -f or php -q. Is this what you are looking for? I often use it for systems 
programming.

---

[1999-06-20 20:18:27] [EMAIL PROTECTED]
Moved to feature request.

---

[1999-06-09 03:51:08] [EMAIL PROTECTED]
i'm using php3 for most of the scripts i'm writing and i'd like to ask if there's any 
chance of having php3 as a stand-alone interpreter? (not cgi, it'd behave as 
perl/python or any other interpreter - without outputting the html code for bugs 
etc.).
it has so many functions that it'd be damned good for writing system scripts.

please :)
fuf

thanks a lot for such a wonderful work!

---



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


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




[PHP-DEV] PHP 4.0 Bug #9068 Updated: Bugs in OO which are leaking memory...

2001-02-19 Thread andre

ID: 9068
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Assigned
Bug Type: Class/Object related
Assigned To: andre
Comments:



Previous Comments:
---

[2001-02-02 04:13:19] [EMAIL PROTECTED]
Note: I've posted some bugs earlier, but they seem to have been fixed with the latest 
build of PHP 4.0.5-dev. (I don't remember their bug numbers.)

Outstanding two bugs in PHP 4.0.5, which are leaking memory:

(1) OOP Bug eg...
$num_columns = $rs->Fields->Count();

Leaks memory when two -> -> are used.
Does not leak when this line is written in two lines:

$fields = $rs->Fields;
$num_columns = $fields->Count();

(2) passing recordset to a variable in the object ...
$this->rs_obj = $rs;

leaks memory when passing ADO recordset to an object modular variable. (variable 
defined in the module scope of the class.)

Solution is not to pass recordsets.


---



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


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




[PHP-DEV] PHP 4.0 Bug #9194 Updated: Objects not properly stored as session variables

2001-02-19 Thread andre

ID: 9194
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Class/Object related
Assigned To: andre
Comments:

Please provide a reduced code fragment (<15 lines) producing
this behaviour.
Put no database queries etc. in it and rely on no external
files/functions to ensure that we can reproduce it easily
unless the problem is not directly related to some db (or
similar) function.

Previous Comments:
---

[2001-02-09 11:00:20] [EMAIL PROTECTED]
Look at
http://mail2.anduin.net/index.phps for sourcecode of failing page.
http://mail2.anduin.net/index.php to test, use test/test as username/password.

Bug is as follows:
I define the class "user", call session_start(), create an instance of the object 
called $currentuser, register this variable using session_register() (i tried doing 
this both before and after the instancination). Upon creating, the object sets some 
internal variables in its constructor, like "fullname".
When loading the page again, having the session-id in PHPSESSID, the object shows up 
as existing, but trying to call a method or view a property fails with the message:
Fatal error: The script tried to execute a method or access a property of an 
incomplete object. Please ensure that the class definition user of the object you are 
trying to operate on was loaded _before_ the session was started in 
/home/ltning/webmail2/index.php on line 34

I see this bug has been reported before and considered fixed, but it doesn't seem to 
be. Running latest (4.04pl1) PHP.

best regards,
Eirik Overby

---



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


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




[PHP-DEV] PHP 4.0 Bug #8536 Updated: ob_start() is not working with virtual() function

2001-02-19 Thread andre

ID: 8536
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Assigned
Bug Type: Output Control
Assigned To: andre
Comments:

in php_apache.c (line 324) if have found the following

php_end_ob_buffers(1);
php_header();

I guess this is intended to avoid some confusion with sent
headers, but if we (have to) close all buffers it should be
mentioned in the documentation (at least)
anyway I do not really understand this drastic closure of
open buffers

Previous Comments:
---

[2001-01-03 10:48:03] [EMAIL PROTECTED]
Output of virtual() function didn't seem to work with
ob_start() function. Is there any way to store the output of
virtual()?

---



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


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




[PHP-DEV] PHP 4.0 Bug #8108 Updated: implement trans-sid as output handler

2001-02-19 Thread andre

ID: 8108
Updated by: andre
Reported By: [EMAIL PROTECTED]
Status: Analyzed
Old-Bug Type: Output Control
Bug Type: Feature/Change Request
Assigned To: 
Comments:

a) the ob_filter() part is not needed, because output
buffers are nestable
b) would be fine to have ob_transsid or similar, much more
flexible

moving to feature requests

Previous Comments:
---

[2000-12-11 11:42:48] [EMAIL PROTECTED]
I've been thinking about this a bit more.  I'm not sure if adding the ability to 
obtain the correct length of the buffered output in this case is more important than 
retailing the ability to save a non-user-specific version of the output.  

"Fixing" my problem would mean that a page caching system that writes plain .html 
files from database using the ob_ functions would be broken.

Would it be possible to add a function that performs the same function as trans-sid, 
but at a script level?  With this in place, I could turn off trans-sid and manipulate 
the output buffer directly.

A generic ob_filter() facility could come in handy for other things too, such as 
highlighing search terms in a page request.  Especially if it had a switch to filter 
the HTML, the marked up text, or both.


---

[2000-12-11 09:45:54] [EMAIL PROTECTED]
Actually, I guess trans-sid should be implemented as
output-buffering filter, just as gz-compression. Otherwise
what you are trying to do would never work.

---

[2000-12-05 02:32:04] [EMAIL PROTECTED]
Sorry, miscategorized.

---

[2000-12-05 02:04:24] [EMAIL PROTECTED]
I've got php4.3.3pl1 compiled as a CGI with --enable-trans-sid.

I currently use the ob_length function to send a Content-Length header with my 
semi-static pages to enhance their cacheability.  As soon as I enabled trans-sid with 
cookies disabled this behaviour broke, because ob_length appears to be calculated 
before the SID is applied to the page.  My pages get truncated by browsers that accept 
the content-length header (all modern browsers).


---



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


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




[PHP-DEV] PHP 4.0 Bug #8334 Updated: Segmentation faults on page load

2001-02-19 Thread andre

ID: 8334
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Analyzed
Status: Feedback
Bug Type: Output Control
Assigned To: 
Comments:

could you please try the latest cvs, several patches have
gone in since bug creation and it works for me on
win32+linux now

Previous Comments:
---

[2000-12-22 20:36:12] [EMAIL PROTECTED]
confirmed, it crashes too on win32 (already known to crash)

---

[2000-12-22 16:33:51] [EMAIL PROTECTED]
Without ob_gzhander things work fine with at least zlib compiled in.


---

[2000-12-21 21:36:32] [EMAIL PROTECTED]
output_buffering= Off   
output_handler  = ob_gzhandler

I'll send along the entire php.ini via email. Havn't had a chance to try without the 
ob_gzhandler line, will try that this weekend sometime. 

---

[2000-12-20 14:25:28] [EMAIL PROTECTED]
Hi,

Could you please supply your php.ini file. There were some problems with the ob so 
that section is of special interest.. I thought these issues were resolved.

James


---

[2000-12-20 11:20:53] [EMAIL PROTECTED]
Compiling without imap, mcrypt and zlib seems to solve the problem. Compiling with 
zlib alone breaks leads to seg faults.

Zlib is a popular addon, especially if the inbuilt obgzhandler requires it. If this 
slipped by the QA team I'd be suprised... 

Backtrace with zlib (no imap/mcrypt).
[Wed Dec 20 11:18:30 2000] [warn] Loaded DSO modules/libphp4.so uses plain Apache 1.3 
API, this module might crash under EAPI! (please recompile it with -DEAPI)

Program received signal SIGSEGV, Segmentation fault.
0x4024e4c6 in call_user_function_ex (function_table=0x80bd750, object_pp=0x0, 
function_name=0x80d33dc, retval_ptr_ptr=0xbb0c, 
param_count=1, params=0xbb04, no_separation=1, symbol_table=0x0) at 
zend_execute_API.c:449
449 ((zend_internal_function *) 
function_state.function)->handler(param_count, *retval_ptr_ptr, *object_pp, 1 ELS_CC);
(gdb) bt
#0  0x4024e4c6 in call_user_function_ex (function_table=0x80bd750, object_pp=0x0, 
function_name=0x80d33dc, 
retval_ptr_ptr=0xbb0c, param_count=1, params=0xbb04, no_separation=1, 
symbol_table=0x0) at zend_execute_API.c:449
#1  0x402fb869 in php_end_ob_buffer (send_buffer=1) at output.c:131
#2  0x402fbb0c in php_end_ob_buffers (send_buffer=1) at output.c:191
#3  0x4026d0f8 in apache_php_module_main (r=0x80e081c, display_source_mode=0) at 
sapi_apache.c:95
#4  0x4026dca5 in send_php (r=0x80e081c, display_source_mode=0, filename=0x80e224c 
"/home/httpd/html/phpinfo.php")
at mod_php4.c:506
#5  0x4026dce5 in send_parsed_php (r=0x80e081c) at mod_php4.c:517
#6  0x805345e in ap_invoke_handler ()
#7  0x80618fb in ap_some_auth_required ()
#8  0x8061958 in ap_process_request ()
#9  0x805b940 in ap_child_terminate ()
#10 0x805baa7 in ap_child_terminate ()
#11 0x805bba8 in ap_child_terminate ()
#12 0x805c058 in ap_child_terminate ()
#13 0x805c65f in main ()
#14 0x400b99ab in __libc_start_main () at ../sysdeps/generic/libc-start.c:122



---

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


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


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




[PHP-DEV] PHP 4.0 Bug #8695 Updated: set_time_limit() is ignored during exectution of shell commands

2001-02-19 Thread andre

ID: 8695
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Old-Bug Type: Output Control
Bug Type: Feature/Change Request
Assigned To: 
Comments:

won't fix, look at the documentation how to work around

Previous Comments:
---

[2001-01-14 01:37:40] [EMAIL PROTECTED]
If set_time_limit(), as well as the default execution limit, is ignored during 
exection of a shell command (called either though exec() or ``) allowing that process 
to sit forever if the shell script gets stuck.

---



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


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




[PHP-DEV] PHP 4.0 Bug #8923 Updated: Serious bug -- Memory leak in gzencode() function

2001-02-19 Thread andre

ID: 8923
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Output Control
Assigned To: 
Comments:

this one should be fixed in CVS, please reopen if it is not

Previous Comments:
---

[2001-01-30 04:38:30] [EMAIL PROTECTED]
reclassified.



---

[2001-01-25 21:03:15] [EMAIL PROTECTED]
I was using Web Application Stress Tool when I discovered this bug in zlib. Under 
load, php would keep using up more and more memory. I found that the gzencode() 
function was causing the problem. I was using gzencode() to enable http-compression in 
my pages.
Commenting out gzencode() and disabling http-compression seemed to have resolved the 
problem.

---



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


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




[PHP-DEV] PHP 4.0 Bug #9231 Updated: when usign ob_gzhandler HTTP HEAD does not work

2001-02-19 Thread andre

ID: 9231
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Assigned
Bug Type: Output Control
Assigned To: andre
Comments:

similar to Bug id #9031


Previous Comments:
---

[2001-02-17 11:51:19] [EMAIL PROTECTED]
reopened

---

[2001-02-17 11:50:18] [EMAIL PROTECTED]
HTTP-1.0 and HTTP/1.0 are just the same for apache

this bug report says that ob_gzhandler crashes HEAD requests when php is an apache 
module

---

[2001-02-14 12:25:12] [EMAIL PROTECTED]
shouldn't it reaad

HEAD / HTTP/1.0


bogus


---

[2001-02-12 15:05:20] [EMAIL PROTECTED]
php.ini:
output_handler = ob_gzhandler

tests:

a plain html request:

root@orange:~# telnet 0 80
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
HEAD / HTTP-1.0   

HTTP/1.1 200 OK
Date: Mon, 12 Feb 2001 19:57:47 GMT
Server: Apache/1.3.17 (Unix) PHP/4.0.5-dev
Last-Modified: Mon, 04 Dec 2000 13:01:35 GMT
ETag: "ac04-1f6-3a2b95af"
Accept-Ranges: bytes
Content-Length: 502
Connection: close
Content-Type: text/html

Connection closed by foreign host.

php script request:

root@orange:~# telnet 0 80
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
HEAD / HTTP-1.0 
host: mail.bonev.com

same php script, but now GET instead of HEAD:

root@orange:~# telnet 0 80
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
GET / HTTP/1.0
host: mail.bonev.com

HTTP/1.1 302 Found
Date: Mon, 12 Feb 2001 19:57:22 GMT
Server: Apache/1.3.17 (Unix) PHP/4.0.5-dev
X-Powered-By: PHP/4.0.5-dev
location: /6bcf63364235c745643078ff1e0df2d6/
Connection: close
Content-Type: text/html

Connection closed by foreign host.


---



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


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




[PHP-DEV] PHP 4.0 Bug #9031 Updated: ob_gzhandler memory leak and Headers already sent message!

2001-02-19 Thread andre

ID: 9031
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Assigned
Bug Type: Output Control
Assigned To: andre
Comments:

similar Bug id #9231


Previous Comments:
---

[2001-02-06 15:33:49] [EMAIL PROTECTED]
I've just found out what the problem is, and it's kind of weird:
With ob_gzhandler enabled (from php.ini or with ob_start("ob_gzhandler") in the .php) 
each readfile() makes the "Cannot add header information - headers already sent" error 
message appear.
This doesn't happen with output buffering enabled and no ob_gzhandler, it only happens 
with ob_gzhandler enabled.

Also tried to replace readfile with fpassthru(fopen()) but got the same result.

Hope this helps you fix the problem.

If you have any questions feel free to ask, I've been experimenting quite a lot.

---

[2001-02-02 09:23:24] [EMAIL PROTECTED]
Tried the php4-200102020545 snapshot and I still get the

httpd: PHP Warning:  Cannot add header information - headers already sent in Unknown 
on line 0

error message when enabling output_handler = ob_gzhandler.
This probably still causes a memory leak.

Found another interesting thing: when trying to see the headers of a ob_gzhandler 
compressed page with lynx, I get the following lynx error message:

Can't access startfile http://localhost/test.php

That's using lynx -head -source http://localhost/test.php. Seems lynx sees something 
which it doesn't like. With ob_gzhandler disabled, I get the normal http headers when 
invoking that lynx command.

---

[2001-02-01 20:03:32] [EMAIL PROTECTED]
This should be fixed in CVS now. Please try the latest CVS snapshot from 
http://snaps.php.net/ and reopen this bug report if problem still exists when
using it.

--Jani


---

[2001-01-31 09:15:17] [EMAIL PROTECTED]
When enabling output_handler = ob_gzhandler in php.ini, my Linux system starts to eat 
more and more memory in an unusual way, like there was a memory leak, like many people 
have reported.

But what is absolutely weird is that after enabling ob_gzhandler, I start to get this 
error messages in my log files:

Cannot add header information - headers already sent in Unknown on line 0

Which is weird, because one of the features of output buffering is to avoid that kind 
of problems. What's even more weird is that I don't get any "headers already sent" 
messages with output_handler = ob_gzhandler disabled!

---



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


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




[PHP-DEV] PHP 4.0 Bug #9339 Updated: infinite loop in wordwrap

2001-02-19 Thread andre

ID: 9339
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Strings related
Assigned To: 
Comments:

WFM win32 + linux,
please check out latest CVS and reopen if necessary

Previous Comments:
---

[2001-02-19 12:41:21] [EMAIL PROTECTED]
The following line seems to loop forever:

echo wordwrap("abcdefghijklmnopqr", 10, "rn");


---



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


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




[PHP-DEV] PHP 4.0 Bug #7557 Updated: Array stored in session loose content

2001-02-19 Thread andre

ID: 7557
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Session related
Assigned To: 
Comments:

this is rather a confusion how references work than a bug
if you had var_dump()ed your $session you would have seen
that session handling cannot be involved here

what you are doing is
a) creating a reference $item to an $item in cart1
b) and then storing the whole cart2 therein 

chaning (b) to $item = &$this->cart2; works for me


Function test() {
  for($i=0; $icart1); $i++) {
$item = &$this->cart1[$i]; // (a)
$item->pid .= "a";
  }

  $item = $this->cart2; // (b)
  for($i=0; $ipid .= "a";
  }
}


Previous Comments:
---

[2000-12-02 13:23:23] [EMAIL PROTECTED]
Stage 1:
===

Ok, this version works with 4.0.4dev-200012020345.  But it was an excerpt from my 
code.

Stage 2:
===

Now i have extended the example and got the same error again :-(
Please have a look at the code below:

pid = "".time();
  array_push($this->cart1, $item);
  array_push($this->cart2, $item);
}

Function test() {
  for($i=0; $icart1); $i++) {
$item = &$this->cart1[$i];
$item->pid .= "a";
  }

  $item = $this->cart2;
  for($i=0; $ipid .= "a";
  }
}

Function show() {
  echo("ITEMS:");
  $i = 0;
  while ($i < MAX(count($this->cart1),count($this->cart2))) {

$item = &$this->cart1[$i];
$item->id += 1;
echo("".$item->pid." :".$item->id."");

$item = &$this->cart2;
$item[$i]->id += 1;
echo("".$item[$i]->pid." :".$item[$i]->id."");

$i++;
  }
  echo("");
}
  }
  session_start();

  if (!$session) {
$session = new C_SESSION();
session_register("session");
  } else {
$session->test();
$session->update();
  }

  echo "SESSION-ID: ".session_id()."";

  $session->show();
?>

Have a look at the new test function. The line '$item = $this->cart2;' was first a 
mistake (it works on a copy and therefore doe not append the 'a' to the pid of other 
version). If this line is in there the same old problem is back again.

The output looks like this:

   SESSION-ID: f0cf1206f566d170bf6fde86a5f76035
   ITEMS:

   :975780490 :7
   :975780490 :6
   :975780491 :5
   :975780491 :4
   :975780491 :3
   :975780491 :2
   975780492 :1 975780492 :1


BUT:
If you rename $item with $cart all is ok.
If you replace '$item = $this->cart2;' with '$item = &$this->cart2;' all is ok.


Stage 3:
===
I tried a third version with a inc and dec function in the C_CART_ITEM class wich 
increased and decreases $id and i called the dec and the inc function in 
C_SESSION->test and i got this error:

Fatal error: Call to a member function on a non-object in ... 

Ouch!


---

[2000-11-27 08:52:26] [EMAIL PROTECTED]
Should be fixed in CVS. Please try latest snapshot from
http://snaps.php.net/ and reopen this bug report if
this doesn't work with it.

--Jani

---

[2000-11-03 19:32:58] [EMAIL PROTECTED]
works for me (4.0.4dev), please try 4.0.4 as far as it is
out and report results

---

[2000-11-02 03:09:55] [EMAIL PROTECTED]
Every call to the update function in the session class appends a new C_CART_ITEM with 
the actual time to the cart1 and cart2 arrays.

If you reload the page several times, you get the following:


   SESSION-ID: 970efca9d3effdadf14e679d0e88b349
   ITEMS:

   973150040 : 1 973150036 : 8
   : 1   973150038 : 7
   : 1   973150039 : 6
   : 1   973150039 : 5
   : 1   973150039 : 4
   : 1   973150040 : 3
   : 1   973150040 : 2
   : 1   973150040 : 1


The left two rows show the content of cart1 and the right 2 rows the content of cart2. 
Both arrays should have the same content.

cart1 is referenced by item in the show function. And when this is done, this entry is 
not available in the next page (after reload etc.).

cart2 is referenced as the whole array - this works.

This bug occurs with PHP versions > 4.0.3 (4.0.2 not tested).
It works fine with version 4.0.1pl1 .


---

[2000-10-31 18:

[PHP-DEV] PHP 4.0 Bug #9338: in_array 'strict' parameter is not documented (properly)

2001-02-19 Thread andre

From: [EMAIL PROTECTED]
Operating system: *
PHP version:  4.0 Latest CVS (19/02/2001)
PHP Bug Type: Documentation problem
Bug description:  in_array 'strict' parameter is not documented (properly)

look at
http://www.php.net/in_array

that documentation should not help anyone understanding what
'strict' does


-- 
Edit Bug report at: http://bugs.php.net/?id=9338&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 #9337 Updated: make in_array return key, if searched value was found

2001-02-19 Thread andre

ID: 9337
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Feature/Change Request
Assigned To: 
Comments:

maybe a fourth parameter switch to avoid 0->false problems?

Previous Comments:
---

[2001-02-19 11:18:18] [EMAIL PROTECTED]
in_array() currently returns only true/false on whether or not a searched-for value is 
in a given array.

I would like it to return the key of the array's element when value was found, and 
false otherwise. This should not break existing code using in_array().


---



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


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




[PHP-DEV] PHP 4.0 Bug #9316 Updated: calling an external function in a loop

2001-02-17 Thread andre

ID: 9316
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Scripting Engine problem
Assigned To: 
Comments:

Please provide a reduced code fragment (<15 lines) producing
this behaviour.
Put no database queries etc. in it and rely on no external
files/functions to ensure that we can reproduce it easily
unless the problem is not directly related to some db (or
similar) function.

Previous Comments:
---

[2001-02-17 07:23:55] [EMAIL PROTECTED]
I have a shared object the works fine with PHP4.0.0
I recompile it for PHP 4.0.4pl1.

Each function of this shared object works fine.
The problem succeed when I use a function that return a STRING in a loop.

A loop greater than 4 hang present an empty page.

Ex:

for ($i=0; $i<6; $i++)
{
   $aa=callc_get_stringa("12345");
}

The wrapper code used to return the string it's the same used in the older version of 
PHP

I compile PHP with mysql,apxs,ldap,ftp





---



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


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




[PHP-DEV] PHP 4.0 Bug #9315 Updated: Weird array behavior

2001-02-17 Thread andre

ID: 9315
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Arrays related
Assigned To: 
Comments:

Please provide a reduced code fragment (<15 lines) producing
this behaviour.
Put no database queries etc. in it and rely on no external
files to ensure that we can reproduce it easily unless the
problem is not directly related to some db (or similar)
function.

Previous Comments:
---

[2001-02-17 07:21:14] [EMAIL PROTECTED]
Php only finds the last row of the second file to be excisting in the array; even if 
all the rows are the same.

// Open file with 2 columns and parse into array
if ($fd = @fopen("int-osocat.txt", "r")) {
  while (!feof($fd)) {
 $line = fgets($fd, 4096);
 $intercat = strtok($line, "t");
 $osocat =  strtok("t");
 $key = $intercat;
 $catvars[$key]["active"] = 1;
 $catvars[$key]["osocat"] = $osocat;
  }
fclose ($fd);
}

// open second file, and check contents against array
if ($fd = @fopen("art-intcat.txt", "r")) {
  while (!feof($fd)) {
 $line = fgets($fd, 4096);
 $artikelnr = strtok($line, "t");
 $intcat =  strtok("t");
 $key2 = $intcat;
if ($catvars[$key2]["active"]== 1) {
  echo $artikelnr . "t" . $catvars[$key2]["osocat"] . "";
}
  }
fclose ($fd);
}


---



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


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




[PHP-DEV] PHP 4.0 Bug #9310 Updated: apache segfault with simple php script (using mysql)

2001-02-16 Thread andre

ID: 9310
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Reproduceable crash
Assigned To: 
Comments:

Please provide a reduced code fragment (<15 lines) producing
this behaviour.
Put no database queries etc. in it to ensure that we can
reproduce it easily unless the problem is not directly
related to some db (or similar) function.

Previous Comments:
---

[2001-02-16 19:15:11] [EMAIL PROTECTED]
0) [Sat Jan 13 14:02:13 2001] 
   [notice] child pid 13927 exit signal Segmentation fault (11)

-> this is what comes in the apache error log when I call the script
with a php higher than 4.0.2. with the 4.0.2 it works fine. The page output
is most of the time incomplete (stoping at a random place), but no "document contains 
no data", or very seldom.

1) the scripts source are visible under http://www.omnis.ch/dev/php/
(my first php script ever, 2 years ago, could be improved I know: but
 it still should work without killing my webserver)

2) config.nice :
#! /bin/sh
#
# Created by configure

"./configure" 
"--with-apxs=/usr/local/apache/bin/apxs" 
"--enable-track-vars" 
"--enable-safe-mode" 
"--with-gd=../gd1.3" 
"--with-ttf" 
"--with-mysql=/usr/local" 
"--with-ldap" 
"--with-xml" 
"--with-zlib" 
"--with-zlib-dir" 
"--enable-memory-limit" 
"--with-recode" 
"--with-dbase" 
"--with-pdflib=/usr/local/src/web/pdflib3" 
"--enable-ftp" 
"$@"

(also tried to remove some or all the modules -> no change)


3) no changes in php.ini (original file.dist)

4) linux server, intel, distribution: suse 6.4

5) gdb backtrace :  
omega:/usr/local/apache # gdb  /usr/local/apache/bin/httpd
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-suse-linux-gnu"...
(gdb)  -f /usr/local/etc/apache/httpd.conf  -D PHP4 -X  
Undefined command: "-f".  Try "help".
(gdb) run  -f /usr/local/etc/apache/httpd.conf  -D PHP4 -X
Starting program: /usr/local/apache/bin/httpd -f /usr/local/etc/apache/httpd.conf  -D 
PHP4 -X

Program received signal SIGTRAP, Trace/breakpoint trap. 
0x40001780 in _start () at rtld.c:142
142 rtld.c: No such file or directory.
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x4018798c in ?? ()
(gdb) bt
#0  0x4018798c in ?? ()
#1  0x40188321 in ?? ()
#2  0x40187e0d in ?? ()
#3  0x4027a280 in _erealloc (ptr=0x82de544, size=9, allow_failure=0) at 
zend_alloc.c:288
#4  0x402927bf in add_string_to_string (result=0xbfffc060, op1=0xbfffc060, 
op2=0x82dd42c) at zend_operators.c:1003
#5  0x40285928 in execute (op_array=0x82c614c) at ./zend_execute.c:1389
#6  0x402887e1 in execute (op_array=0x82c569c) at ./zend_execute.c:2063
#7  0x40295c7b in zend_execute_scripts (type=8, file_count=3) at zend.c:729  
#8  0x402a95b1 in php_execute_script (primary_file=0xb554) at main.c:1221
#9  0x402a588b in apache_php_module_main (r=0x807f62c, display_source_mode=0) at 
sapi_apache.c:89
#10 0x402a62a4 in send_php (r=0x807f62c, display_source_mode=0, filename=0x0) at 
mod_php4.c:516
#11 0x402a62dd in send_parsed_php (r=0x807f62c) at mod_php4.c:527
#12 0x40053f23 in _ufc_foobar () from /lib/libcrypt.so.1
#13 0x4006dc79 in ?? () from /usr/lib/libgdbm.so.2
#14 0x4006dcfb in ?? () from /usr/lib/libgdbm.so.2
#15 0x40062ccc in _ufc_foobar () from /lib/libcrypt.so.1
#16 0x40062ef7 in _ufc_foobar () from /lib/libcrypt.so.1
#17 0x400630c6 in _ufc_foobar () from /lib/libcrypt.so.1
#18 0x400638de in _ufc_foobar () from /lib/libcrypt.so.1
#19 0x40064390 in _ufc_foobar () from /lib/libcrypt.so.1
#20 0x80487fd in ?? ()
#21 0x40143313 in token () at ruserpass.c:292
(gdb)



Voila, I hope it will help you!
If you have any question / patch to try, please ask.

Regards,
Olivier

---



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


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




[PHP-DEV] PHP 4.0 Bug #9309 Updated: update ereg function to return booleans instead of 0/1

2001-02-16 Thread andre

ID: 9309
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Old-Bug Type: *Regular Expressions
Bug Type: Feature/Change Request
Assigned To: 
Comments:

a) in fact is does return 1 and 0, that isn't exactly true
and false in php 4 anymore, either documentation or regex
code needs a small update... moving to change request

b) your problem is another, your regex is wrong, try echoing
your pattern before passing it to ereg() and you will see
that php ate up your brackets (eg. [0-9]2)

it should read like this:

if (!ereg('([0-9]{'.$id_size.'})',"$id_usr")){
  echo "Error ID";
}

Previous Comments:
---

[2001-02-16 18:35:03] [EMAIL PROTECTED]
$id_size=strlen($id_usr);
if (!ereg("([0-9]{$id_size})",$id_usr)){
  echo "Error ID";
}

---



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


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




[PHP-DEV] PHP 4.0 Bug #9304 Updated: require function generates error

2001-02-16 Thread andre

ID: 9304
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Assigned To: 
Comments:

no bug, it is simply not possible this way, only "var" and
"function" language constructs are allowed directly withing
class {}

the only way I see is passing your class and methods through
eval()


Previous Comments:
---

[2001-02-16 15:10:50] [EMAIL PROTECTED]
this error happens on all these commands:

   include()
   include_once()
   require()
   require_once()

---

[2001-02-16 14:55:07] [EMAIL PROTECTED]
this error happens on all these commands:

   include()
   include_once()
   require()
   require_once()

---

[2001-02-16 14:46:38] [EMAIL PROTECTED]
in the documentation the following is noted:

require() is not actually a function in PHP; rather, it is a language construct. It is 
subject to some different rules than functions are. For instance, require() is not 
subject to any containing control structures.

I have found this statement ("not subject to any containing control structures") to 
NOT be true.  I get an error for the following:

class myclass()
{
require("myfile.php")
};

I want to be able to include a function from another file that will become a method 
for the class.

Any suggestions?

---



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


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




[PHP-DEV] PHP 4.0 Bug #9262 Updated: Inconsistency in the implementation of here-docs

2001-02-15 Thread andre

ID: 9262
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Old-Bug Type: Strings related
Bug Type: Feature/Change Request
Assigned To: 
Comments:

we only allow very simple assigments with var,
here docs is similar to '' and "" maybe we should allow this
too?

moving to feature/requests

Previous Comments:
---

[2001-02-14 10:09:49] [EMAIL PROTECTED]
Parse error: parse error in units.inc on line 11
When I try to instantiate this class I get the above error.
The same query strings work fine when I use them in a procedural context

$result = mysql_query($this->$sqlQueryByLocation1,$this->$db);
   }

   //Get revenue by location address2
   function 
rev_by_location2($day_start,$month_start,$year_start,$day_end,$month_end,$year_end)
   {

   $this->$result = mysql_query($sqlQuery,$this->$db);
   }
   //Get revenue by location address3
   function 
rev_by_location3($day_start,$month_start,$year_start,$day_end,$month_end,$year_end)
   {

   $this->$result = mysql_query($sqlQuery,$this->$db);
   }
   //Get revenue by location address4
   function 
rev_by_location4($day_start,$month_start,$year_start,$day_end,$month_end,$year_end)
   {

   $this->$result = mysql_query($sqlQuery,$this->$db);
   }







   //Get revenue by present for all units
   function rev_to_present()
   {
   $this->$result = mysql_query($sqlQuery,$this->$db);
   }
   //
   function last_opened($spreadsheet)
   {
   $this->$result = mysql_query($sqlQuery,$this->$db);
   }
   function rev_two_dates($spreadsheet)
   {
   $this->$result = mysql_query($sqlQuery,$this->$db);
   }

   function display()
   {

   }*/

}
?>


---



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


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




[PHP-DEV] PHP 4.0 Bug #9268: Inconsistent behaviour for per-session cookies

2001-02-14 Thread andre

From: [EMAIL PROTECTED]
Operating system: SuSe 6.1 Linux 2.2.17
PHP version:  4.0.3pl1
PHP Bug Type: *Session related
Bug description:  Inconsistent behaviour for per-session cookies

Configure line:
'./configure' '--with-apxs' '--with-oci8' '--with-iodbc=/usr/lib'

Standard php.ini.

session.cookie_lifetime is 0.

A very simple test script:

Session started.

Now, the problem is related to so called per-session cookies. These are meant to 
disappear when the user closes his browser. The problem is that cookies sometimes get 
an expires value of "end of session" as they should with the lifetime set to 0, but 
sometimes they get an expire value of some timestamp.

I first discovered this problem in IE5, and thinking that it could be an IE5 bug, I 
tested with Opera 5 and Netscape 6, and the same error arose. I was unable to see any 
pattern in the way expires alternated between "end of session" and a time. Sometimes I 
could get "end of session" for 4-5 times in a row, then a timestamp, then a end of 
session, then a timestamp several times and so on.

I then tested this with PHP on a computer running FreeBSD and was unable to reproduce 
the error here. Both the Linux and the FreeBSD ran Apache 1.3.14.

The easiest way of testing this behaviour is probably by using the test "script" 
mentioned above, and use Opera as your browser. Make Opera prompt you every time it 
recieves a cookie, this way you will see the expires value immediately on loading the 
page, so you can just reload (F5) and then refuse the cookie. Keep on doing this. By 
using this method I'm pretty sure the expires value is always 5 minutes in the future 
when a it's a timestamp. I was sometimes able to see a pattern; either timestamp, 
timestamp, end of session (repeating) or end of session, end of session, timestamp 
(repeating). But my testing was not at all conclusive at this particular point.

Finally I would like to mention that I tested this from browsers in Windows 98 and 
Win2K with the same result.

Sometimes cookies can appear correctly for a very long time, so please be patient when 
trying to reproduce this strange bug.

And hopefully you will be able to crush it!


-- 
Edit Bug report at: http://bugs.php.net/?id=9268&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 #9231 Updated: when usign ob_gzhandler HTTP HEAD does not work

2001-02-14 Thread andre

ID: 9231
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Output Control
Assigned To: 
Comments:

shouldn't it reaad

HEAD / HTTP/1.0


bogus


Previous Comments:
---

[2001-02-12 15:05:20] [EMAIL PROTECTED]
php.ini:
output_handler = ob_gzhandler

tests:

a plain html request:

root@orange:~# telnet 0 80
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
HEAD / HTTP-1.0   

HTTP/1.1 200 OK
Date: Mon, 12 Feb 2001 19:57:47 GMT
Server: Apache/1.3.17 (Unix) PHP/4.0.5-dev
Last-Modified: Mon, 04 Dec 2000 13:01:35 GMT
ETag: "ac04-1f6-3a2b95af"
Accept-Ranges: bytes
Content-Length: 502
Connection: close
Content-Type: text/html

Connection closed by foreign host.

php script request:

root@orange:~# telnet 0 80
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
HEAD / HTTP-1.0 
host: mail.bonev.com

same php script, but now GET instead of HEAD:

root@orange:~# telnet 0 80
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
GET / HTTP/1.0
host: mail.bonev.com

HTTP/1.1 302 Found
Date: Mon, 12 Feb 2001 19:57:22 GMT
Server: Apache/1.3.17 (Unix) PHP/4.0.5-dev
X-Powered-By: PHP/4.0.5-dev
location: /6bcf63364235c745643078ff1e0df2d6/
Connection: close
Content-Type: text/html

Connection closed by foreign host.


---



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


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




[PHP-DEV] PHP 4.0 Bug #9253 Updated: Class constructors can't return values

2001-02-14 Thread andre

ID: 9253
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Feature/Change Request
Assigned To: 
Comments:

class constructors are never supposed to return anything,
they are simple the fist method called after an object has 


anyway if you *really* want to return false just kill the
object itself from within the constructor  (to be sure take
the last line)
using
unset($this)
or
$this=FALSE
or
$this=NULL


bogusifying


Previous Comments:
---

[2001-02-14 05:23:05] [EMAIL PROTECTED]
Class constructors can't abort instance creation, for example by returning false...
This leads to a lot of "if (! $newobj->status)" crap.
Why is that ? I found a message on the PHP3 mailing list about this, but it's still 
not there.

---



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


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




  1   2   >