Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jan 2014 12:02:17 +0800 (CST)
From:      Gasol Wu <gasol.wu@gmail.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/186221: [NEW PORT] devel/php-scalar_objects: Support method calls on primitive types in PHP
Message-ID:  <20140129040217.6EAAF750132@goingmarry.kkbox.com>
Resent-Message-ID: <201401290420.s0T4K0Dc015205@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         186221
>Category:       ports
>Synopsis:       [NEW PORT] devel/php-scalar_objects: Support method calls on primitive types in PHP
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 29 04:20:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Gasol Wu
>Release:        FreeBSD 9.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD goingmarry 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC
>Description:
Add support for method calls on primitive types in PHP

This extension implements the ability to register a class that handles the
method calls to a certain primitive type (string, array, ...). As such it
allows implementing APIs like $str->length().

The main purpose of this repo is to provide a proof of concept implementation
that can be used to design the new APIs. The switch to object syntax for
operations on primitive types is a unique opportunity for PHP to redesign many
of its inconsistent core APIs. This repo provides the means to quickly
prototype and test new APIs as userland code. Once the APIs are figured out it
will be proposed for inclusion into PHP.

Note: The ability to register type handlers from userland is just for
prototyping.

WWW: https://github.com/nikic/scalar_objects

Generated with FreeBSD Port Tools 0.99_11 (mode: new)
>How-To-Repeat:
>Fix:

--- .shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	php-scalar_objects
#	php-scalar_objects/Makefile
#	php-scalar_objects/pkg-descr
#	php-scalar_objects/distinfo
#
echo c - php-scalar_objects
mkdir -p php-scalar_objects > /dev/null 2>&1
echo x - php-scalar_objects/Makefile
sed 's/^X//' >php-scalar_objects/Makefile << '3108e616d32c7a47ce75342b2774dcaa'
X# Created by: Gasol Wu <gasol.wu@gmail.com>
X# $FreeBSD$
X
XPORTNAME=	scalar_objects
XPORTVERSION=	0.0.20140124
XCATEGORIES=	devel
XPKGNAMEPREFIX=	php-
X
XMAINTAINER=	gasol.wu@gmail.com
XCOMMENT=	Support method calls on primitive types in PHP
X
XLICENSE=	PHP301
X
XUSE_GITHUB=	yes
XGH_ACCOUNT=	nikic
XGH_PROJECT=	scalar_objects
XGH_TAGNAME=	${GH_COMMIT}
XGH_COMMIT=	baf4985
X
XUSE_PHP=	yes
XUSE_PHPEXT=	yes
XUSE_PHPIZE=	yes
XUSE_PHPBUILD=	yes
X
X.include <bsd.port.mk>
3108e616d32c7a47ce75342b2774dcaa
echo x - php-scalar_objects/pkg-descr
sed 's/^X//' >php-scalar_objects/pkg-descr << '121a8c47b17e5e78f69e2a040c1bca05'
XAdd support for method calls on primitive types in PHP
X
XThis extension implements the ability to register a class that handles the
Xmethod calls to a certain primitive type (string, array, ...). As such it
Xallows implementing APIs like $str->length().
X
XThe main purpose of this repo is to provide a proof of concept implementation
Xthat can be used to design the new APIs. The switch to object syntax for
Xoperations on primitive types is a unique opportunity for PHP to redesign many
Xof its inconsistent core APIs. This repo provides the means to quickly
Xprototype and test new APIs as userland code. Once the APIs are figured out it
Xwill be proposed for inclusion into PHP.
X
XNote: The ability to register type handlers from userland is just for
Xprototyping.
X
XWWW: https://github.com/nikic/scalar_objects
121a8c47b17e5e78f69e2a040c1bca05
echo x - php-scalar_objects/distinfo
sed 's/^X//' >php-scalar_objects/distinfo << '46f7c0adc677a42c452d3912a8c2caa7'
XSHA256 (scalar_objects-0.0.20140124.tar.gz) = 705e563663f3d261eaf1e9c5c4442558cddd0b18cea974c72d3a1a724c067ef7
XSIZE (scalar_objects-0.0.20140124.tar.gz) = 35121
46f7c0adc677a42c452d3912a8c2caa7
exit
--- .shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140129040217.6EAAF750132>