Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72562 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30572 invoked from network); 13 Feb 2014 20:22:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Feb 2014 20:22:12 -0000 Authentication-Results: pb1.pair.com header.from=ingwie2000@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ingwie2000@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 74.125.83.45 as permitted sender) X-PHP-List-Original-Sender: ingwie2000@googlemail.com X-Host-Fingerprint: 74.125.83.45 mail-ee0-f45.google.com Received: from [74.125.83.45] ([74.125.83.45:45309] helo=mail-ee0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2D/39-09050-2792DF25 for ; Thu, 13 Feb 2014 15:22:11 -0500 Received: by mail-ee0-f45.google.com with SMTP id b15so5260739eek.4 for ; Thu, 13 Feb 2014 12:22:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=mWprCan4Iuqx8dN7UV3rK/G4zrK7XoqCAw/n1o+Dpuo=; b=IT5gb2AFKCBRrRBDDE/FXjG8cJmEtyk/lpz/lB0nTmWcbgxKBbuG0VncN33mr7WcdO j+vrKptSP4E+sFmBBsXzqXnA6QAfj22nhED7LV+2+HMxPWj5sY4YTDcr0NuKIijl8exf dc5ubBdKt2BlCK/etbejfEddCanswc8hxGtuZO7okqyHdmwlEwzUtBE8kbZRRXMxrD1Q koBlLHL8pHpnQJTxB09+ol6sQNoQnvFxfA7uluq4GD4t/dWyoH+M2/ETD8mgiLGdv0Vv aLse5DJbUVaceQwVQeBs97sM6P+am9RF7sQY1aHFRdVFzVK13yT3PHrJg750b8P5sKeE VgnA== X-Received: by 10.15.107.77 with SMTP id ca53mr3966847eeb.59.1392322927732; Thu, 13 Feb 2014 12:22:07 -0800 (PST) Received: from [192.168.200.19] (dslb-088-068-169-060.pools.arcor-ip.net. [88.68.169.60]) by mx.google.com with ESMTPSA id u6sm10818462eep.11.2014.02.13.12.22.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Feb 2014 12:22:07 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Message-ID: Date: Thu, 13 Feb 2014 21:22:05 +0100 To: internals Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) X-Mailer: Apple Mail (2.1822) Subject: When will the extension and embedding APIs ever be cleaned or documented? From: ingwie2000@googlemail.com (Kevin Ingwersen) Hey. Just a while ago, i started writing a C++ library, that I would like to = utilize in PHP. Since the original aproach was made in C++, I would like = to keep the OOP syntax in PHP. Already, months ago, I had tried to find ways to write useful PHP = modules. But the major problem was always: How. I easily found = documentation about adding functions=85and how to expose a void pointer = in the form of a =84Resource=93. But that was all that was ever properly = documented. The OO module api was never really documented, and yet, is = still hard to figure out. I was sent a slideshow of the api=85but is a = set of slides a really well made documentation? I think not. Many of you internals probably know the APIs needed to do these things: - Create a class with public/private/protected methods - thus = making a class final. - Being able to store a pointer to forgein objects into the = class, to re-use it. I have been learning to use the v8 API a lot and it has a very clean = syntax. A third-party scripting language brought it even so far, that it = could almost map native types to script types - but that was pure C++ - = both of them. My simple question is hereby: - When will the module API ever be properly documented? Now, at some point, I want to embed PHP into my project. Like, I have = the idea for a project, but I want to utilize a scripting language for = it. None of the languages supports the syntax that I am used from PHP. = And furthermore, neither v8 or PHP have an easy embedding way. V8 needs = to utilize GYP, and PHP autotools. Both not very optimal, but eh. I simply want to know how I can take advantage of the embed-SAPI for my = application - and how I can possibly integrate my project into PHP=92s = build process. Must I maintain configure.ac+makefile.am? Or is there = anothe way to directly implement my code into the PHP build process? And my question hereby is: - When will the embed-SAPI be documented in a way, that it can = be used? I havent found any useful docs for embedding PHP=85 Hope you understand what I am trying to ask ^^; Kind regards, Ingwie.=