<s>
WebSphere	B-Language
sMash	I-Language
was	O
a	O
development	O
and	O
runtime	B-Device
environment	I-Device
from	O
IBM	O
for	O
the	O
creation	O
of	O
dynamic	O
web	B-Application
applications	I-Application
using	O
the	O
scripting	B-Language
languages	I-Language
Apache	B-Application
Groovy	I-Application
and	O
PHP	B-Application
.	O
</s>
<s>
It	O
contained	O
a	O
PHP	B-Application
runtime	B-Device
written	O
in	O
Java	B-Language
.	O
</s>
<s>
Project	O
Zero	O
was	O
the	O
experimental	O
software	O
development	O
community	O
in	O
which	O
new	O
versions	O
of	O
WebSphere	B-Language
sMash	I-Language
were	O
incubated	O
.	O
</s>
<s>
WebSphere	B-Language
sMash	I-Language
was	O
withdrawn	O
from	O
sale	O
in	O
2012	O
,	O
with	O
support	O
discontinued	O
in	O
2014	O
.	O
</s>
<s>
There	O
are	O
a	O
number	O
of	O
distinguishing	O
aspects	O
to	O
the	O
architecture	O
of	O
WebSphere	B-Language
sMash	I-Language
.	O
</s>
<s>
WebSphere	B-Language
sMash	I-Language
uses	O
an	O
event-driven	B-Application
programming	I-Application
model	O
.	O
</s>
<s>
This	O
architecture	O
allows	O
application	O
to	O
be	O
built	O
up	O
from	O
a	O
mixture	O
of	O
code	O
written	O
using	O
PHP	B-Application
,	O
Java	B-Language
,	O
Groovy	B-Application
or	O
the	O
Flow	O
language	O
.	O
</s>
<s>
sMash	O
makes	O
use	O
of	O
the	O
Ivy	B-Language
dependency	O
manager	O
.	O
</s>
<s>
sMash	O
applications	O
are	O
composed	O
of	O
models	O
which	O
can	O
specify	O
dependencies	O
on	O
other	O
modules	O
which	O
may	O
be	O
present	O
in	O
a	O
local	O
Ivy	B-Language
repository	O
or	O
which	O
can	O
be	O
fetched	O
from	O
a	O
remote	O
repository	O
.	O
</s>
<s>
The	O
PHP	B-Application
support	O
in	O
WebSphere	B-Language
sMash	I-Language
is	O
provided	O
by	O
a	O
PHP	B-Application
runtime	B-Device
implemented	O
in	O
Java	B-Language
.	O
</s>
<s>
PHP	B-Application
scripts	I-Application
are	O
compiled	O
into	O
Java	B-Language
bytecode	I-Language
which	O
then	O
run	O
on	O
the	O
Java	B-Language
Virtual	I-Language
Machine	I-Language
(	O
JVM	B-Language
)	O
.	O
</s>
<s>
This	O
is	O
similar	O
in	O
concept	O
to	O
the	O
approach	O
taken	O
by	O
other	O
projects	O
such	O
as	O
JRuby	B-Language
and	O
Jython	B-Language
,	O
which	O
run	O
the	O
Ruby	B-Language
and	O
Python	B-Language
languages	I-Language
,	O
respectively	O
,	O
against	O
the	O
JVM	B-Language
.	O
</s>
<s>
Running	O
on	O
the	O
JVM	B-Language
allows	O
direct	O
,	O
same	O
process	O
calls	O
between	O
PHP	B-Application
,	O
Java	B-Language
and	O
Groovy	B-Application
code	O
allowing	O
applications	O
to	O
be	O
assembled	O
using	O
a	O
variety	O
of	O
languages	O
.	O
</s>
<s>
In	O
contrast	O
to	O
the	O
approach	O
taken	O
by	O
Quercus	O
,	O
the	O
other	O
JVM	B-Language
based	O
PHP	B-Application
implementation	O
,	O
sMash	O
is	O
able	O
to	O
re-use	O
existing	O
PHP	B-Application
extensions	O
from	O
PHP.net	B-Application
attaching	O
them	O
to	O
the	O
Java	B-Language
virtual	I-Language
machine	I-Language
via	O
the	O
Java	B-Language
Native	O
Interface	O
(	O
JNI	O
)	O
and	O
an	O
API	O
layer	O
called	O
XAPI-C	O
.	O
</s>
<s>
The	O
runtime	B-Device
has	O
a	O
DBGp	O
debug	O
port	O
allowing	O
debug	O
access	O
from	O
IDEs	O
and	O
debuggers	O
which	O
support	O
the	O
DBGp	O
protocol	O
such	O
as	O
the	O
Eclipse	B-Language
PDT	I-Language
project	O
.	O
</s>
<s>
The	O
PHP	B-Application
runtime	B-Device
does	O
not	O
have	O
an	O
identity	O
outside	O
of	O
sMash	O
so	O
it	O
is	O
simply	O
referred	O
to	O
as	O
the	O
"	O
WebSphere	B-Language
sMash	I-Language
runtime	B-Device
for	O
PHP.	O
"	O
</s>
<s>
As	O
of	O
October	O
2008	O
WebSphere	B-Language
sMash	I-Language
is	O
capable	O
of	O
running	O
several	O
well-known	O
PHP	B-Application
applications	O
on	O
a	O
Java	B-Language
Virtual	I-Language
Machine	I-Language
.	O
</s>
<s>
These	O
include	O
SugarCRM	B-Operating_System
,	O
phpBB	B-Application
,	O
WordPress	B-Application
and	O
MediaWiki	B-Application
.	O
</s>
<s>
The	O
PHP	B-Application
runtime	B-Device
supports	O
close	O
integration	O
with	O
the	O
Java	B-Language
and	O
Groovy	B-Application
languages	I-Application
through	O
its	O
Java/Groovy	O
bridge	O
.	O
</s>
<s>
This	O
allows	O
PHP	B-Application
scripts	I-Application
to	O
use	O
libraries	O
written	O
in	O
Java	B-Language
and	O
Groovy	B-Application
through	O
a	O
lightweight	O
and	O
extremely	O
fast	O
interop	O
layer	O
.	O
</s>
<s>
The	O
Groovy	B-Application
bridge	O
allows	O
advanced	O
features	O
from	O
Groovy	B-Application
to	O
be	O
accessed	O
directly	O
from	O
PHP	B-Application
.	O
</s>
<s>
Examples	O
include	O
closures	B-Language
and	O
Groovy	B-Application
metaobjects	O
.	O
</s>
