Cristiano,
I haven't tested the code below.. but I assume you are using php
mapscript 5.6 or ealier. You cannot use the php clone keyword with
mapscript object since it has no idea how to clone the internal object
properly. If you would have used php mapscript from svn (which includes
the
I executed this example and object comparison returned true on clone call.
But it returned false when I request another reference from same layer from
getLayer.
Should not it return true ?
#/* 09/04/2010 test for mapserver object comparison on PHP.
# If I clone a layer object from a map instance