Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80860 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79019 invoked from network); 20 Jan 2015 07:58:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2015 07:58:36 -0000 Authentication-Results: pb1.pair.com header.from=bas@tobin.nl; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=bas@tobin.nl; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain tobin.nl designates 208.97.132.208 as permitted sender) X-PHP-List-Original-Sender: bas@tobin.nl X-Host-Fingerprint: 208.97.132.208 homie.mail.dreamhost.com Linux 2.6 Received: from [208.97.132.208] ([208.97.132.208:53101] helo=homiemail-a4.g.dreamhost.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 51/10-11411-8AA0EB45 for ; Tue, 20 Jan 2015 02:58:33 -0500 Received: from homiemail-a4.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a4.g.dreamhost.com (Postfix) with ESMTP id 5A26351C070; Mon, 19 Jan 2015 23:58:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=tobin.nl; h=content-type :mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=tobin.nl; bh=oe7AseFIwKi6fxju09+WD6ih+YM=; b=DvOfDV7zuceYU18H849zybjXPbPQ j6UlYM6a7VrDLuYoonIWb9xc6fHJ/IRBE18bAhbF2uTAuj7sT+KP0oThQuGpFodF qtYkRnnJDFqLU4JBnbsSSi0t1vhoDjzW3E/L7v2punz0h/3RTN7uHPHCIN2TFcbu 9OLALdBDI+DB1Oc= Received: from [192.168.1.21] (84-53-89-40.adsl.unet.nl [84.53.89.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: bas@tobin.nl) by homiemail-a4.g.dreamhost.com (Postfix) with ESMTPSA id D443E51C069; Mon, 19 Jan 2015 23:58:28 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: Date: Tue, 20 Jan 2015 08:58:26 +0100 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <68478B1B-558C-48E3-A786-6046B5ABF84B@tobin.nl> References: To: "Kevin Ingwersen (Ingwie Phoenix)" X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] Casting a PHP type, new SAPI From: bas@tobin.nl (Bas van Beek) Hi Ingwie, I fail to see why this would be considered a SAPI? It doesn't seem to = integrate with application code written in another language to exchange = data between php userland and local application variables.=20 Just seems like you're trying to accomplish a dedicated server/daemon = that listens for messages on a TCP port with a self developed JSON = protocol and answers according to that protocol. If that is what you are = trying to accomplish you could do that easily in PHP userland using CLI. Much better approach would be using such a CLI script together with an = event based messaging system waiting for incoming messages using = technologies like gearman, activemq, kafka, etc. This would give you so = much more power in ways of load balancing, fail-over and/or replication = and multi=20 language support that I see no use for JRP, as all can be done within a = matter of hours using regular existing PHP extensions and the CLI = executor. Bas van Beek > Op 20 jan. 2015, om 06:36 heeft Kevin Ingwersen (Ingwie Phoenix) = het volgende geschreven: >=20 > Good morning, everyone. >=20 > Today I have started to concept a new SAPI which I have wanted to do = in quite a while now. To learn more, here is a README: = https://github.com/IngwiePhoenix/php-jrp/blob/master/README.md = >=20 > But in order for me to work this out as good as I can - especially the = PHP API at the bottom - I need to know just a thing I could not find = within the public PHP headers: When I have an Array, now can I turn that = into an object? >=20 > I=E2=80=99d be happy to hear what you think of this concept as well. = As mentioned in the README, process on this will begin later. For now, I = am going to use helper libraries, but late ron I want to strip the = project to lesser and lesser dependencies. But it will remain being = written in C++. >=20 > Kind regards, > Ingwie