[PHP] Detailed PHP User SPL documentation?

2007-02-24 Thread Erik Franzén
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

SPL have been aorund for a while now, and it is a great tool for a php
programmer. However, can anyone point me towards more detailed
php-documentation about how to use the SPL Classes?

I can only find http://www.php.net/~helly/php/ext/spl which is nice, but
for better understanding how to use them I am looking for detailed
information how to use them. More comprehensive documentation with
examples...?

Does it exist?

Thanks
/Erik
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)

iQEVAwUBReCDFC7mbizvza/NAQKnkQf/QtYAMGJT6+7dambArxVg+ubCrQJOeo4d
PFTQkAlICqDikE3TfFzzMbiU1VgBJ/iQ3j6+/pE5chGlQP8AG/uMxx84gWR3KZ38
un4R2ne+joGcSOpGDFtH9D4+e0hAWvvhTBi3Oe+cnPk2xa/KiEOldjg2mJ/JmHqu
H0GIQ58d5BtTI1Oab2xL33gVeL7GH39x7Y3Q23juJvYHiTmYzWeGk9j3BOf7zbFO
K17AcA68MRabqqVk1MVWSAtfcB378cPI2qo8tfMk8Sg1rkJoMuInBYuQO6nqduUU
s9URkoGtyen1kxc8ugb0/gE7vOJ9+EYb15axLGSo2uZC7Rsvm0EtYg==
=Umrq
-END PGP SIGNATURE-

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



[PHP] Re: DomDocument::GetElementById - a workaround with external DTD

2005-11-19 Thread Erik Franzén

I did a typo in the threads post.

The dtd is:

!ELEMENT Document ANY
!ELEMENT CMAES_Model_DbSection ANY
!ATTLIST CMAES_Model_DbSection S_iSectionId ID #IMPLIED

but it gives the warning when DomDocument::validate() is called:

Warning:  Syntax of value for attribute S_iSectionId of 
CMAES_Model_DbSection is not valid in script on line 23


However getElementById is working...

/Erik

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



[PHP] Re: DomDocument::GetElementById - a workaround with external DTD

2005-11-19 Thread Erik Franzén

I totally missed that explanation on w3c.

Thanxs, now it works

/Erik

Rob wrote:

Erik Franzén wrote:


I did a typo in the threads post.

The dtd is:

!ELEMENT Document ANY
!ELEMENT CMAES_Model_DbSection ANY
!ATTLIST CMAES_Model_DbSection S_iSectionId ID #IMPLIED

but it gives the warning when DomDocument::validate() is called:

Warning:  Syntax of value for attribute S_iSectionId of 
CMAES_Model_DbSection is not valid in script on line 23



See the validity constraints for an ID in the XML specs: 
http://www.w3.org/TR/2004/REC-xml-20040204/#id


Values of IDs must conform to the following syntax to be valid:
(Letter | '_' | ':') (NameChar)*

Yours start with a numeric which is why it doesn't validate.

Rob



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



[PHP] Re: How to build a XML DTD on the fly?

2005-11-18 Thread Erik Franzén
I saw this example on 
http://blog.bitflux.ch/wiki/GetElementById_Pitfalls and thought that I 
could create the DTD in the XML file.


$xml ='?xml version=1.0?
  !DOCTYPE foo [
  !ATTLIST bar
id ID #IMPLIED
  
  ]
  foo
bar id=myId/
  /foo';
$dom = new DomDocument();
$dom-loadXML($xml);
print $dom-getElementById('myId')-nodeName;

But apparently, that is not the case.

/Erik


James Benson wrote:

Learn DTD and how it works first then you will know :-)


A DTD is contained in an external file and not in XML, so you would 
create a DTD file then link it from the XML like so,



!DOCTYPE document SYSTEM document.dtd





Erik Franzén wrote:

The code below lacks the part where the folling DTD attribute is 
created: !ATTLIST document id ID #IMPLIED


How can I create the above DTD attribute in the code below?

?php
// Creates an instance of the DOMImplementation class
$oDomImp = new DOMImplementation;

// Creates a DOMDocumentType instance
$oDomDtd = $oDomImp-createDocumentType('document', null, null);

// Creates a DOMDocument instance
$oDom = $oDomImp-createDocument(, , $oDomDtd);

// Set other properties
$oDom-encoding = 'iso-8859-1';
$oDom-standalone = true;

// Create an empty element
$oElement = $oDom-createElement('document', 'test');
$oElement-setAttribute('id', '123');
// Append the element
$oDom-appendChild($oElement);

// Retrieve and print the document
echo $oDom-saveXML() . \n;

echo TagName:  . $oDom-getElementById('123')-tagName;
?

Now the code produces the following result:

?xml version=1.0 encoding=iso-8859-1 standalone=yes?
!DOCTYPE document
document id=123test/document

TagName:


Thanks
/Erik





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



[PHP] Re: How to build a XML DTD on the fly?

2005-11-18 Thread Erik Franzén
My real problem is that I am building a XML tree and I want to use the 
getElementbyId method on the tree directly.


It would be very nice if it is possible to do it without including a 
external dtd, since it takes some time to load every time.


The page http://blog.bitflux.ch/wiki/GetElementById_Pitfalls have some 
information about my issue, but I have not found the path to go yet.


I am using php5.05 on Win32.


/Erik



Rob wrote:

Jared Williams wrote:



There is no real standard for creating DTDs on the fly, and therefore 
libxml/DOM doesn't have any methods afaik.


The one method DOMElement::setIDAttribute() should work I think, but 
whilst PHP has the method, doesn’t seem todo anything. :/



DocumentType nodes are read-only in DOM thus cannot be built on the fly. 
Also notice that not all components, such as ATTLIST, even have a node 
type.


setIDAttribute - thats on the TODO list. Were some previous libxml 
issues to be resolved before that could be implemented (so it will be 
added, but require a minimum libxml2 version to work).

Can always use xml:id attributes for that purpose for now though.

Rob



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



[PHP] DomDocument::GetElementById - a workaround with external DTD

2005-11-18 Thread Erik Franzén

Have tried the following code:

?php
// Creates an instance of the DOMImplementation class
$oDomImp = new DOMImplementation;

// Creates a DOMDocumentType instance
$oDomDtd = $oDomImp-createDocumentType('Document', '', 
'D:/CMAES/Src/dbtree.dtd');


// Creates a DOMDocument instance
$oDom = $oDomImp-createDocument(, Document, $oDomDtd);

// Set other properties
$oDom-encoding = 'iso-8859-1';

$oElement = $oDom-createElement('CMAES_Model_DbSection', 'test');
$oElement-setAttribute('S_iSectionId', '123');

// Append the element
$oDom-documentElement-appendChild($oElement);

// Retrieve and print the document
echo $oDom-saveXML() . \n\n;

// Do validation
var_dump($oDom-validate());

// Type node name
echo TagName:  . $oDom-getElementById('123')-tagName;
?

Using the following DTD as an external file:
!ELEMENT Document ANY
!ELEMENT CMAES_Model_DbSection ANY
!ATTLIST CMAES_Model_DbEntry E_iEntryId ID #REQUIRED

The result is the following:

?xml version=1.0 encoding=iso-8859-1?
!DOCTYPE Document SYSTEM D:/CMAES/Src/dbtree.dtd
DocumentCMAES_Model_DbSection 
S_iSectionId=123test/CMAES_Model_DbSection/Document




Warning:  Syntax of value for attribute S_iSectionId of 
CMAES_Model_DbSection is not valid in script on line 23

bool(false)
TagName: CMAES_Model_DbSection

Now I have some (for me) strange DTD failure due to the error syntax of 
value for attribute S_iSectionId of CMAES_Model_DbSection is not valid. 
I cannot understand that error. I have missed something, but what?


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



[PHP] Sorry, I copied the wrong the DTD in the code:

2005-11-18 Thread Erik Franzén

Sorry, I copied the wrong DTD into the post.

The DTD is the following:

!ELEMENT Document ANY
!ELEMENT CMAES_Model_DbSection ANY
!ATTLIST CMAES_Model_DbSection S_iSectionId ID #IMPLIED

Here is the code example and result again:

?php
// Creates an instance of the DOMImplementation class
$oDomImp = new DOMImplementation;

// Creates a DOMDocumentType instance
$oDomDtd = $oDomImp-createDocumentType('Document', '', 
'D:/CMAES/Src/dbtree.dtd');


// Creates a DOMDocument instance
$oDom = $oDomImp-createDocument(, Document, $oDomDtd);

// Set other properties
$oDom-encoding = 'iso-8859-1';

$oElement = $oDom-createElement('CMAES_Model_DbSection', 'test');
$oElement-setAttribute('S_iSectionId', '123');

// Append the element
$oDom-documentElement-appendChild($oElement);

// Retrieve and print the document
echo $oDom-saveXML() . \n\n;

// Do validation
var_dump($oDom-validate());

// Type node name
echo TagName:  . $oDom-getElementById('123')-tagName;
?

Using the following DTD as an external file:
!ELEMENT Document ANY
!ELEMENT CMAES_Model_DbSection ANY
!ATTLIST CMAES_Model_DbSection S_iSectionId ID #IMPLIED

The result is the following:

?xml version=1.0 encoding=iso-8859-1?
!DOCTYPE Document SYSTEM D:/CMAES/Src/dbtree.dtd
DocumentCMAES_Model_DbSection 
S_iSectionId=123test/CMAES_Model_DbSection/Document




Warning:  Syntax of value for attribute S_iSectionId of 
CMAES_Model_DbSection is not valid in script on line 23

bool(false)
TagName: CMAES_Model_DbSection

/Erik

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



[PHP] How to build a XML DTD on the fly?

2005-11-16 Thread Erik Franzén
The code below lacks the part where the folling DTD attribute is 
created: !ATTLIST document id ID #IMPLIED


How can I create the above DTD attribute in the code below?

?php
// Creates an instance of the DOMImplementation class
$oDomImp = new DOMImplementation;

// Creates a DOMDocumentType instance
$oDomDtd = $oDomImp-createDocumentType('document', null, null);

// Creates a DOMDocument instance
$oDom = $oDomImp-createDocument(, , $oDomDtd);

// Set other properties
$oDom-encoding = 'iso-8859-1';
$oDom-standalone = true;

// Create an empty element
$oElement = $oDom-createElement('document', 'test');
$oElement-setAttribute('id', '123');
// Append the element
$oDom-appendChild($oElement);

// Retrieve and print the document
echo $oDom-saveXML() . \n;

echo TagName:  . $oDom-getElementById('123')-tagName;
?

Now the code produces the following result:

?xml version=1.0 encoding=iso-8859-1 standalone=yes?
!DOCTYPE document
document id=123test/document

TagName:


Thanks
/Erik

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



[PHP] Easiest way to user DomDocument-getElementById()?

2005-11-14 Thread Erik Franzén
According to the php docs, the method DomDocument-getElementById() will 
not work unless the document is validated using a DTD (not schema):


According to the DOM standard this requires a DTD which defines the 
attribute ID to be of type ID. You need to validate your document with 
DOMDocument-validate() or DOMDocument-validateOnParse before using 
this function.


I cannot use a schema in ordet to activate DomDocument-getElementById()?

/Erik

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



[PHP] Re: Easiest way to user DomDocument-getElementById()?

2005-11-14 Thread Erik Franzén

I have run into this behavior on several sites:

$dom-validate('books.dtd');

But according to the docs, the method it is defined

class DOMDocument {

bool validate ( void )

}

Is the dtd (file?) parameter deprecated?

/Erik

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



[PHP] Re: Easiest way to user DomDocument-getElementById()?

2005-11-14 Thread Erik Franzén



I have run into this behavior on several sites:

$dom-validate('books.dtd');

But according to the docs, the method it is defined

class DOMDocument {

bool validate ( void )

}

Is the dtd (file?) parameter deprecated?

/Erik



Just tested, $dom-validate('books.dtd') generates the warning 
DOMDocument::validate() expects exactly 0 parameters, 1 given in ...


/Erik

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



[PHP] RecursiveIteratorIterator för PHP 5.0.5 Win32

2005-10-01 Thread Erik Franzén

I have the following class

class CMAES_DomIterator implements RecursiveIteratorIterator
{

}

When I am instanciating the class I am getting the following error:

Fatal error: CMAES_DomIterator cannot implement 
RecursiveIteratorIterator - it is not an interface ...


Does not PHP 5.0.5 support the RecursiveIteratorIterator Interface?

Thanxs
/Erik

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



[PHP] Re: RecursiveIteratorIterator för PHP 5.0 .5 Win32

2005-10-01 Thread Erik Franzén

Of course you are right. I was fooled by this page:

http://www.wiki.cc/php/RecursiveIterator

?php
class RecursiveArrayIterator extends ArrayIterator implements 
RecursiveIteratorIterator

{
function hasChildren()
{
return is_array($this-current());
}

function getChildren()
{
return new RecursiveArrayIterator($this-current());
}
}
?

Thanxs

/Erik

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



[PHP] interface problem in PHP5

2004-09-04 Thread Erik Franzén
Can anuyone describe this error?
Compile Error: E:\Source\CMAES\src\include\dom.inc.php line 67 - 
Declaration of CMAES_DOM_Node_List::item() must be compatible with that 
of CMAES_DOM_Node_List_Interface::item()

// {{{ interface CMAES_DOM_Node_List
/**
 *
 * @access public
 */
 interface CMAES_DOM_Node_List_Interface
 {
 function item();
 function search();
 function addItem();
 function removeItem();
 }
// }}}
/**
 * CMAES_DOM_Node
 *
 */
class CMAES_DOM_Node_List implements CMAES_DOM_Node_List_Interface
{
// {{{ properties
/**
* Number of elements in node list
* @var integer
*/
public $iLength = 0;
/**
* Nodes in list
* @var array
*/
private $_aNodes = array();
// }}}
// {{{ item
 /**
 *  Returns the nth index given in item.
 *
 * @param inte $a_iIndex - index in list
 * @return mixed node object or null if item was not found
 * @access public
 */
function item($a_iIndex)
{
if (!array_key_exists($a_iIndex, $this-_aNodes)) {
return null;
}
return $this-_aNodes[$a_iIndex];
}
// }}}
// {{{ addItem
 /**
 * Adds new node to the list.
 *
 * @param object $a_oNode - object to add
 * @param int $a_iOffset(optional) - index to put object in
 * @param int $a_iReplace(optional) - number of objects to replace
 * @return void
 * @access public
 */
function addItem(CMAES_DOM_Node $a_oNode, $a_iOffset = null, 
$a_iReplace = 0)
{
if (!($a_oNode instanceof CMAES_DOM_Document)) {
$a_iOffset = ($a_iOffset !== null) ? $a_iOffset : 
$this-iLength;
array_splice($this-_aNodes, $a_iOffset, $a_iReplace, 
array($a_oNode));
$this-iLength = count($this-_aNodes);
}
}

// }}}
// {{{ removeItem
 /**
 * Removes node from the list and return the removed node
 *
 * @param int $a_iIndex - index to remove
 * @return object removed node
 * @access public
 */
function removeItem($a_iIndex)
{
// First remove from this node list
$oOldChild = $this-_aNodes[$a_iIndex];
array_splice($this-_aNodes, $a_iIndex, 1);
$this-iLength = count($this-_aNodes);
return $oOldChild;
}
// }}}
// {{{ search
 /**
 * search for a node in the list and return node if successful
 *
 * @param object $a_oNode - Node to search for
 * @return int index in list or null if not found
 * @access public
 */
function search(CMAES_DOM_Node $a_oNode)
{
for ($i = 0; $i  $this-iLength; $i++) {
if ($a_oNode === $this-_aNodes[$i]) {
return $i;
}
}
return null;
}
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: interface problem in PHP5

2004-09-04 Thread Erik Franzén
If you want to delete an object, when you have other references to it, 
you must use the  operator, otherwise the object will not be killed for 
all references.

I tested without the -operator, but that did not work
The -operator is still important in PHP5. Look at the folling example
?
$a = new stdclass;
$b = $a;
$c = $a;
?
unsetting a will only kill a, b and c will still be alive.
setting a to null will kill c but not b
/Erik
Torsten Roehr wrote:
Erik franzén [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Can anuyone describe this error?
Compile Error: E:\Source\CMAES\src\include\dom.inc.php line 67 -
Declaration of CMAES_DOM_Node_List::item() must be compatible with that
of CMAES_DOM_Node_List_Interface::item()
// {{{ interface CMAES_DOM_Node_List
/**
 *
 * @access public
 */
 interface CMAES_DOM_Node_List_Interface
 {
 function item();

I think you have to also define the arguments you want to use for item() in
your interface:
function item($a_iIndex);

 function search();
 function addItem();
 function removeItem();
 }
// }}}
/**
 * CMAES_DOM_Node
 *
 */
class CMAES_DOM_Node_List implements CMAES_DOM_Node_List_Interface
{
// {{{ properties
/**
* Number of elements in node list
* @var integer
*/
public $iLength = 0;
/**
* Nodes in list
* @var array
*/
private $_aNodes = array();
// }}}
// {{{ item
 /**
 *  Returns the nth index given in item.
 *
 * @param inte $a_iIndex - index in list
 * @return mixed node object or null if item was not found
 * @access public
 */
function item($a_iIndex)

Are you sure you need '' here? Shouldn't PHP5 pass all variables by
reference on default?
Regards, Torsten Roehr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Determine if a property in a class is public, protected or private in PHP 5?

2004-08-25 Thread Erik Franzén
Is it possible to determine if a property inside a object is public, 
protected or private in PHP 5?

/Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] destroying objects in an array in PHP5

2004-07-27 Thread Erik Franzén
See the following example:
?PHP
$oObjectA = array();
$oObjectB = array();
for(i=0;i10;i++) {
   $oObjectA[$i] = new foo();
   $oObjectB[$i] = $oObjectA[$i];
}
?
How do I remove an element in the oObjectA array without destroying the 
object? I do not want to clone any object.

If I call unset($oObjectA[3]), the object will also be destroyed. 
apparently $oObjectB[3] is also destroyed?

/Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Erik Franzén
I am correcting myself...
?PHP
class foo {}
$oObjectA = array();
$oObjectB = array();
for($i=0;$i2;$i++) {
   $oObjectA[$i] = new foo();
   $oObjectB[$i] = $oObjectA[$i];
}
unset($oObjectA[1]);
var_dump($oObjectA);
var_dump($oObjectB);
?
will output:
array(1) {
  [0]=
  object(foo)#1 (0) {
  }
}
array(2) {
  [0]=
  object(foo)#1 (0) {
  }
  [1]=
  object(foo)#2 (0) {
  }
}
So my question is, how do I destroy the object $oObjectA[1] in both arrays?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Erik Franzén
$oObjectB[$i] = $oObjectA[$i];
The above statement does not matter, because in PHP5 objects are
referenced by handle, and not by value.
Look at this example:
?PHP
class foo {}
$a = new foo();
$b = $a;
unset($a);
var_dump($b);
?
This will output:
object(foo)#1 (0) {
}
The object is not destroyed!? How do I destroy it without calling unset($b)?
I my application I am sending arrays, which are holding objects, to 
objects. If I want to destroy an object inside that array, I want to 
destroy it for all objects.

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


Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Erik Franzén
Thanxs for the help Curt!! Thats a tricky solution, but it works...
This is almost motivating a new method in PHP5: $foo-__destroy() which 
will destroy the object once and for all... :)

/Erik
Curt Zirzow wrote:
* Thus wrote Erik Franzn:
$oObjectB[$i] = $oObjectA[$i];
The above statement does not matter, because in PHP5 objects are
referenced by handle, and not by value.

This is not  true. PHP 5 passes objects by reference to functions
only.  Assignments are treated the same way as php4 externally.
?php
/* note: no $f */
function testfoo($f) {
  $f-foo = 'testfoo';
}
class foo { public $foo; }
/* object is passed by reference */
$a = new foo();
$a-foo = 'main';
testfoo($a);
var_dump($a); /* -foo == 'testfoo' */
/* variable is only copied */
$b = $a;
$a = null;
var_dump($a);  /* NULL */
var_dump($b);  /* Object 1 */
/* make 2 reference but remove one of them */
$a = new foo();
$b = $a;
unset($a); /* only removes the reference to object #1 */
var_dump($a); /* Undefined */
var_dump($b); /* Object #1 */
/* here is your solution */
/* make 2 references but delete object, 2 variable
 * references still exits */
$a = new foo();
$b = $a;
$a = null;
var_dump($a); /* NULL */
var_dump($b); /* NULL */
/* proof that references still exists */
$b = new foo();
var_dump($a); /* Object #1 */
var_dump($b); /* Object #1 */
Curt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] What is the PHP5 eqvivalent to domxml_open_mem in PHP4?

2004-07-26 Thread Erik Franzén
The docs for PHP5 and dom xml is not written yet, so I tried to find 
information about load and save methods on the w3c site, but I didn't 
find anything.

What's is the PHP5 eqvivalent to domxml_open_mem in PHP4?
/Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] OOP and object references, not copies - how to do?

2002-12-26 Thread Erik Franzén
Say the you are going to create a simple forum and you want to have a number
of classes:

Class Sql - handles the DB interface
Class User - handles users
Class Messages - handles messages

When you are writing the code, you first creates a new sql object in order
to read or write data from or to the database.

Secondly you create a user object in order to handle users, for an example,
to authenticate the user which is going to write a new message in your
forum.

The user object have a method which reads user information from the
database.
 Since you alread have created a sql object, this method should use the sql
object in order to fecth data from the database.

I nice way to do this, would be to send the sql object as an reference to
the user object constructor and store the object reference to the sql object
in the user object.

This is not working very well in PHP yet because PHP cannot treat objects as
references. When you send the sql object to the user object constructor
method, it will be a copy, not a reference!

How do I get around this? There must be a way to handle this and create nice
OOO PHP-code? I don't like using global variables as object handles.

Best regards
Erik



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




Re: [PHP] What happened with zend engine version 2?

2002-12-25 Thread Erik Franzén
You don't need to answer my questions. Found almost all answers myself (Yes,
I was triggerhappy to post my questions here before I looked for the
answers...)

I have one question though, in which status are Zend Engine 2 in? I mean,
have you already taken the major decisions about (for an example) private
members?

Erik FranzéN [EMAIL PROTECTED] skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 After I posted the first message, I read something about PHP 5 at
 www.zend.com and suspected that is was about the new Zend Engine.
 I must have missed it totally! I was planning to code on a new website
 during my christmas holiday and now that chance is gone because the
 functionality in the new Zend Enginge is exactly what I miss.

 I also read on Zend.com that there are some decisions to make about some
 major changes i.e private members variables or not.

 I guess I have to switch to Linux and get a CVS-copy for PHP 5, if it
 exists? Maybe a Win32-binary? Does it exist and if it exists, what status
 does it have? Can you write code that will work when the final version is
 finished with minor changes, or are major changes on the agenda?

 And secondly, I have to face the fact that I cannot get the Zend Engine
 version 2 in a runtime environment for at least 6 month.
 You can be sure that I'm longing for it... :)

 Rasmus Lerdorf [EMAIL PROTECTED] skrev i meddelandet
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  That was never the plan.  It is scheduled for PHP 5 sometime in the next
  6-12 months.
 
  -Rasmus
 
  On Tue, 24 Dec 2002, Erik Franzén wrote:
 
   I believed that PHP V4.3 should include the Zend engine version 2
since
   there was two alpha releases for PHP-4.3.0 with  Zend engine version 2
  
   -PHP-4.3.0-dev-zend2-win32-alpha1
   -PHP-4.3.0-dev-zend2-win32-alpha2
  
   I'm waiting for Zend engine version 2. Where could I read information
 about
   future releases?
  
   I think the Zend engine version 2 provides much better coding
facilities
 so
   I would preciate if anybody could answer my questions.
  
   Thanks
  
   /Erik
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  
 





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




[PHP] What happened with zend engine version 2?

2002-12-24 Thread Erik Franzén
I believed that PHP V4.3 should include the Zend engine version 2 since
there was two alpha releases for PHP-4.3.0 with  Zend engine version 2

-PHP-4.3.0-dev-zend2-win32-alpha1
-PHP-4.3.0-dev-zend2-win32-alpha2

I'm waiting for Zend engine version 2. Where could I read information about
future releases?

I think the Zend engine version 2 provides much better coding facilities so
I would preciate if anybody could answer my questions.

Thanks

/Erik



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




Re: [PHP] What happened with zend engine version 2?

2002-12-24 Thread Erik Franzén
After I posted the first message, I read something about PHP 5 at
www.zend.com and suspected that is was about the new Zend Engine.
I must have missed it totally! I was planning to code on a new website
during my christmas holiday and now that chance is gone because the
functionality in the new Zend Enginge is exactly what I miss.

I also read on Zend.com that there are some decisions to make about some
major changes i.e private members variables or not.

I guess I have to switch to Linux and get a CVS-copy for PHP 5, if it
exists? Maybe a Win32-binary? Does it exist and if it exists, what status
does it have? Can you write code that will work when the final version is
finished with minor changes, or are major changes on the agenda?

And secondly, I have to face the fact that I cannot get the Zend Engine
version 2 in a runtime environment for at least 6 month.
You can be sure that I'm longing for it... :)

Rasmus Lerdorf [EMAIL PROTECTED] skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 That was never the plan.  It is scheduled for PHP 5 sometime in the next
 6-12 months.

 -Rasmus

 On Tue, 24 Dec 2002, Erik Franzén wrote:

  I believed that PHP V4.3 should include the Zend engine version 2 since
  there was two alpha releases for PHP-4.3.0 with  Zend engine version 2
 
  -PHP-4.3.0-dev-zend2-win32-alpha1
  -PHP-4.3.0-dev-zend2-win32-alpha2
 
  I'm waiting for Zend engine version 2. Where could I read information
about
  future releases?
 
  I think the Zend engine version 2 provides much better coding facilities
so
  I would preciate if anybody could answer my questions.
 
  Thanks
 
  /Erik
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 




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