[PHP-DEV] suggestions for ze2

2003-01-14 Thread Stephan Seidt
Hi,

I've got some suggestions for zendengine2 (hopefully not too late).
What about an identificator for destrucotrs in a class like in c++?
I mean something like this :

?php

class Foo
{
function Foo
{
// Constructor
}

function ~Foo
{
// Destructor
}
}


And an idea about cloning of objects..
What about an operator for doing that ?

$cloned_object = %$object;


Last thing would be a possibility for overloading operators.
For example if you have two instances of a multi-dimensional
position class :

$vector1 = new Pos(12,24,42);
$vector2 = new Pos(53,23,15);

$vector1 += $vector2;

In the class definition that could look like :

class Pos
{
operator +($left)
{
// Error handling for equal sice of public dimensions array

foreach($left-dimensions as $id = $value)
$this-dimensions[$id] += $value;
}
}

Where there already discussions about these things?
I think that would make the sourcecode shorter,
more understandable and also looking nicer ;)

I now that the first two suggestions are just taken
out of another programming language called c++,
but I think that these are usefull concepts.

bye

--
IPv6 + TCPA + wrecked Palladium server = NO COFFE!


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




Re: [PHP-DEV] suggestions for ze2

2003-01-14 Thread Stephan Seidt
Hmm forget the first one, i just finished ZEND_CHANGES file..
(and sorry for bad english sometimes)

Stephan Seidt wrote:

Hi,

I've got some suggestions for zendengine2 (hopefully not too late).
What about an identificator for destrucotrs in a class like in c++?
I mean something like this :

?php

class Foo
{
function Foo
{
// Constructor
}

function ~Foo
{
// Destructor
}
}


And an idea about cloning of objects..
What about an operator for doing that ?

$cloned_object = %$object;


Last thing would be a possibility for overloading operators.
For example if you have two instances of a multi-dimensional
position class :

$vector1 = new Pos(12,24,42);
$vector2 = new Pos(53,23,15);

$vector1 += $vector2;

In the class definition that could look like :

class Pos
{
operator +($left)
{
// Error handling for equal sice of public dimensions array

foreach($left-dimensions as $id = $value)
$this-dimensions[$id] += $value;
}
}

Where there already discussions about these things?
I think that would make the sourcecode shorter,
more understandable and also looking nicer ;)

I now that the first two suggestions are just taken
out of another programming language called c++,
but I think that these are usefull concepts.

bye




--
IPv6 + TCPA + wrecked Palladium server = NO COFFE!


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




Re: [PHP-DEV] suggestions for ze2

2003-01-14 Thread Stephan Seidt
Hm :( Ok, was a try ;)

Derick Rethans wrote:

Hey,

you're passing dangerous grounds with this email :), and most of these 
points were brought up before.

Hehe how did I know that ;)
Then let's just stop this discussion now :(
Don't want to end in php 2003 summary as mail waster ;)



On Tue, 14 Jan 2003, Stephan Seidt wrote:



I've got some suggestions for zendengine2 (hopefully not too late).
What about an identificator for destrucotrs in a class like in c++?
I mean something like this :

?php

class Foo
{
function Foo
{
// Constructor
}

function ~Foo
{
// Destructor
}
}



We decided to go with __construct and __destruct instead as those make 
it much easier to rename classes for example.


And an idea about cloning of objects..
What about an operator for doing that ?

$cloned_object = %$object;



$clone = $object-__clone(); already works.



Last thing would be a possibility for overloading operators.



Not a chance :)



Where there already discussions about these things?
I think that would make the sourcecode shorter,
more understandable and also looking nicer ;)



Nicer is an objective statement, I would call it 'horrible' or 
'perlish'. An archive can be found on news.php.net (php.dev) or 
http://www.zend.com/lists/engine2/200301/maillist.html

regards,
Derick



--
IPv6 + TCPA + wrecked Palladium server = NO COFFE!


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




Re: [PHP-DEV] suggestions for ze2

2003-01-14 Thread Stephan Seidt
hmm..
What about an always available discussion documentation on php.net ?
something like whatever.php.net ? or does it already exist,
just hiding somewhere in the deep of the nameserver of php.net ;)

Derick Rethans wrote:

On Tue, 14 Jan 2003, Stephan Seidt wrote:



Hehe how did I know that ;)
Then let's just stop this discussion now :(
Don't want to end in php 2003 summary as mail waster ;)



hehe, don't be afraid :) Actually, I think it's a good idea to make a 
summary of all those discussions so that we can point people to that if 
they bring them up again... but nobody likes documenting things :)

Derick



--
IPv6 + TCPA + wrecked Palladium server = NO COFFE!


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




Re: [PHP-DEV] ZE2 dev snaps

2003-01-07 Thread Stephan Seidt
I tried that but buildconf wasnt happy about some .mk files then.
Ill try php4-ze2, thanks Edin.

Edin Kadribasic wrote:

If you checkout php4-ze2 all this will be done automagically for
you by the CVS server.

Edin

- Original Message -
From: Christian Stocker [EMAIL PROTECTED]
To: Stephan Seidt [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 10:00 AM
Subject: Re: [PHP-DEV] ZE2 dev snaps




On Mon, 6 Jan 2003, Stephan Seidt wrote:



At least ./buildconf with --ZendEngine2 did never work for me.


;)


I also did cvs co ZendEngine2 in php4 cvstree root.


Did you rename ZendEngine2 to Zend? (Or make a symbolic link,


after


renaming the old Zend directory to something else)

chregu



Mark J. Hershenson wrote:


Hi all,

I know there are Win32+ZE2 Package snapshots on


snaps.php.net, but I don't


believe I've read why there isn't a ZE2 source code snapshot


for everyone


else. Checking out the source with CVS may not be the world's


most difficult


practice, but automating that process likely isn't either. ;)

Is there a timeline for this, or is this being intentionally


kept off the


radar?

   --  mjh







--
nam...christian stockeradr...pflanzschulstr. 31, ch-8004


zurich


pho...+41 43 317 9984  www...http://phant.ch/chregu
mob...+41 76 561 8860  [EMAIL PROTECTED]
wor...+41  1 240 5670  gpg...0x5CE1DECB


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










--
When ipv6 and tcpa are there.. When this Palladium server wrecks..
I won't be able to drink my coffe then!


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




Re: [PHP-DEV] ZE2 dev snaps

2003-01-06 Thread Stephan Seidt
At least ./buildconf with --ZendEngine2 did never work for me. ;)
I also did cvs co ZendEngine2 in php4 cvstree root.

Mark J. Hershenson wrote:

Hi all,

I know there are Win32+ZE2 Package snapshots on snaps.php.net, but I don't
believe I've read why there isn't a ZE2 source code snapshot for everyone
else. Checking out the source with CVS may not be the world's most difficult
practice, but automating that process likely isn't either. ;)

Is there a timeline for this, or is this being intentionally kept off the
radar?

--  mjh





--
When ipv6 and tcpa are there.. When this Palladium server wrecks..
I won't be able to drink my coffe then!


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




Re: [PHP-DEV] ZE2, Win32, and PHP5

2003-01-03 Thread Stephan Seidt
What about http://snaps.php.net ?
Latest php4 version with ZE2 is available there.

bye

John Coggeshall wrote:

Is anyone already building Win32 ZE2/PHP executables? I'm planning on
moving all of my development machines over to the ZE2 engine, but I
don't have MSVC handy for my Windows box.

On that note -- Someone before mentioned that we should start building
the source exclusively using ZE2 (for development) in preparation for
PHP5... I seem to think that perhaps is a good idea, and was wondering
if anyone else wanted to throw in their opinion on it.

John




--
I won't pay Bills'


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




Re: [PHP-DEV] Overloading Tags with PHP functions

2002-01-16 Thread Stephan Schmidt

Hi,

 I doubt this, btw. here's something related:

 http://www.php-tools.de/index.php?file=patTemplateOverview.xml
I think it should be
http://www.php-tools.de/index.php?file=patXMLRendererOverview.xml instead.
patTemplate is just a template class and does not parse any X(HT)ML files.
This is done by the patXMLRenderer...

 My plans for the near future do not include this. I'm gonna focus on
 another related topic to be presented on the next php conference.
What's it gonna be? Columbo?

Stephan
--
PHP Application Tools - a programmers best friend.
[EMAIL PROTECTED]  [--]  http://www.php-tools.de



-- 
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 #13118: Error with character-set

2001-09-03 Thread stephan

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.6
PHP Bug Type: MySQL related
Bug description:  Error with character-set


Hi,

I get an error-message:

File '/usr/share/mysql/charsets/?.conf' not found (Errcode: 2)
Character set '#5' is not a compiled character set and is not specified in
the '/usr/share/mysql/charsets/Index' file

I am using php 4.0.6
MySQL 3.23.41

Character set '#5' is german1
-- 
Edit bug report at: http://bugs.php.net/?id=13118edit=1


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




[PHP-DEV] PHP 4.0 Bug #9961 Updated: CGI Error

2001-03-25 Thread stephan

ID: 9961
User Update by: [EMAIL PROTECTED]
Status: Closed
Bug Type: IIS related
Description: CGI Error

Ok i found the bug == php4ts.dll needs access to odbc32.dll and odbcint.dll == my 
IUSR account had no permission for these dll. Now everything works.

Previous Comments:
---

[2001-03-24 13:02:38] [EMAIL PROTECTED]
My analyzing program had this OUTPUT:
Parameters: 1
ParamStr(1) = "e:netnighttest.php"
Current Directory: e:netnight
LoadLibrary('php4ts.dll'): ERROR: ERROR_ACCESS_DENIED
LoadLibrary('msvcrt.dll'): OK; C:WTSRVsystem32MSVCRT.dll
Script: OK 
php.ini: OK 
Path: 
E:Perlbin;d:pvswNTBIN;d:btrexebat_;D:BTREXEBAT;D:BTREXETSE;D:btrexeuti;d:btrexenc;C:WTSRVsystem32;C:WTSRV;E:ProgrammeBorlandDelphi4Lib;E:ProgrammeBorlandDelphi4Bin;C:ProgrammeSymantecpcAnywhere;e:ProgrammeMts


as you can see the interpreter should be able to load the msvcrt.dll but why can't it 
load php4ts.dll? both dlls are in my system directory (C:WTSRVsystem32) but why can a 
interpreter only load one of the dlls? What userrights do i have to give to my 
IUSR_machinename account?

---

[2001-03-24 10:48:36] [EMAIL PROTECTED]
Ok i just found out that the program has insufficient permission to php4ts.dll == i 
wrote an analyzing program  with witch i replaced the php.exe interpreter. I think 
this tool could help many IIS users with this problem. If you want me to send it to 
you, just tell me.



---

[2001-03-23 16:48:49] [EMAIL PROTECTED]
This error occurs when php doesn't output anything. In this instance, it is almost 
always because IUSR_machinename doesn't have sufficient permissions to cause php.exe 
to execute - often because of file permissions on php.exe, php.ini or php4ts.dll, or 
any extensions you are trying to load, but sometimes because IUSR_machinename 
doesn't have sufficient privileges to cause a program to execute.

Have a go with these issues, and if you still have no success, post your problem on 
the php windows list and we will sort you out there.

---

[2001-03-23 15:34:17] [EMAIL PROTECTED]
I've got an IIS 4.0 on my WinNT Terminal Server. When I even call the simpliest script 
my Browser gets following message:

headtitleError in CGI Application/title/head
bodyh1CGI Error/h1The specified CGI application misbehaved by not returning a 
complete set of HTTP headers.  The headers it did return are:pppre/pre

i've even once replace the php.exe whith a programm that prints out all the parameters 
that IIS would pass to the interpreter - everything seems ok (somtimes IIS passes 
wrong directory information). So i think the php.exe just imediatly shuts down - 
without printing any text - after beeing called, but why?

---


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


-- 
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 #9961 Updated: CGI Error

2001-03-24 Thread stephan

ID: 9961
User Update by: [EMAIL PROTECTED]
Status: Closed
Bug Type: IIS related
Description: CGI Error

Ok i just found out that the program has insufficient permission to php4ts.dll == i 
wrote an analyzing program  with witch i replaced the php.exe interpreter. I think 
this tool could help many IIS users with this problem. If you want me to send it to 
you, just tell me.



Previous Comments:
---

[2001-03-23 16:48:49] [EMAIL PROTECTED]
This error occurs when php doesn't output anything. In this instance, it is almost 
always because IUSR_machinename doesn't have sufficient permissions to cause php.exe 
to execute - often because of file permissions on php.exe, php.ini or php4ts.dll, or 
any extensions you are trying to load, but sometimes because IUSR_machinename 
doesn't have sufficient privileges to cause a program to execute.

Have a go with these issues, and if you still have no success, post your problem on 
the php windows list and we will sort you out there.

---

[2001-03-23 15:34:17] [EMAIL PROTECTED]
I've got an IIS 4.0 on my WinNT Terminal Server. When I even call the simpliest script 
my Browser gets following message:

headtitleError in CGI Application/title/head
bodyh1CGI Error/h1The specified CGI application misbehaved by not returning a 
complete set of HTTP headers.  The headers it did return are:pppre/pre

i've even once replace the php.exe whith a programm that prints out all the parameters 
that IIS would pass to the interpreter - everything seems ok (somtimes IIS passes 
wrong directory information). So i think the php.exe just imediatly shuts down - 
without printing any text - after beeing called, but why?

---


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


-- 
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 #9961: CGI Error

2001-03-23 Thread stephan

From: [EMAIL PROTECTED]
Operating system: Windows NT Terminal Server
PHP version:  4.0.4pl1
PHP Bug Type: IIS related
Bug description:  CGI Error

I've got an IIS 4.0 on my WinNT Terminal Server. When I even call the simpliest script 
my Browser gets following message:

headtitleError in CGI Application/title/head
bodyh1CGI Error/h1The specified CGI application misbehaved by not returning a 
complete set of HTTP headers.  The headers it did return are:pppre/pre

i've even once replace the php.exe whith a programm that prints out all the parameters 
that IIS would pass to the interpreter - everything seems ok (somtimes IIS passes 
wrong directory information). So i think the php.exe just imediatly shuts down - 
without printing any text - after beeing called, but why?


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



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




[PHP-DEV] PHP 4.0 Bug #9675: Translation error in German translation for functions strpos()

2001-03-10 Thread stephan

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.4pl1
PHP Bug Type: Documentation problem
Bug description:  Translation error in German translation for functions strpos()

There is an error in german translation of function strpos()

English version says:

The optional offset parameter allows you to specify which character in haystack to 
start searching. The position returned is still relative to the the beginning of 
haystack. 

German version:

Der optionale Parameter offset ermöglicht es, den Startwert für die Suche nach needle 
innerhalb von haystack anzugeben. Die zurück gegebene Positions-Angabe ist dann 
relatv. 

correct translation should be something like:

Die zurückgegebene Positions-Angabe ist relativ zum Anfang von haystack.



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