Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47784 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10973 invoked from network); 5 Apr 2010 09:10:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Apr 2010 09:10:57 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.78.27 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 74.125.78.27 ey-out-2122.google.com Received: from [74.125.78.27] ([74.125.78.27:50767] helo=ey-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/06-06298-F19A9BB4 for ; Mon, 05 Apr 2010 05:10:56 -0400 Received: by ey-out-2122.google.com with SMTP id d26so237882eyd.39 for ; Mon, 05 Apr 2010 02:10:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=B6L3dbiGwjiu6GGUvD+J/jaME6JuEGY5aO3Nk0lurio=; b=BbtZgCJdry8cHp/phb4KdXwusOfUwp48aM/hJn5r7RpClInYcW73rOVw6+no2MlfBh It1VhU+V0aUP6SnyFrf9JRrLh2MfySqNHdMDaxkbhSUaP+2OEk+n8+JReesD2X8nAqit uTMlexdqkY6nBsmW+Bx4SeFLxvdVKiSJtuw+Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=ZRMHZU+gu3OEVt0NCl7OFkMKfZr8JMJR+CeI6xR2BS1n2myEAPQSDBmzaOf2KC2vMW Em4R9JGcMQ6LfIjSNNsRxQ4OAwekBztmOv5VOUexGN8jF2AmV275MQD7nVm1ThE7uQ8V eaDy90OXDqYnZEbBNI0waKrTXbn0pKWhPk7T4= Received: by 10.213.80.10 with SMTP id r10mr2791006ebk.56.1270458653015; Mon, 05 Apr 2010 02:10:53 -0700 (PDT) Received: from nirvana.lan ([93.185.190.227]) by mx.google.com with ESMTPS id 16sm6221031ewy.3.2010.04.05.02.10.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 05 Apr 2010 02:10:52 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii In-Reply-To: <8C41621B-56E9-4AA7-BAB5-4330683E6C63@railmail.me> Date: Mon, 5 Apr 2010 13:10:50 +0400 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: References: <8C41621B-56E9-4AA7-BAB5-4330683E6C63@railmail.me> To: donald sullivan X-Mailer: Apple Mail (2.1078) Subject: Re: [PHP-DEV] unsigned chars From: indeyets@gmail.com (Alexey Zakhlestin) On 05.04.2010, at 13:01, donald sullivan wrote: > is it possible to return unsigned chars from an extension? > I have looked and cant find anything on it, or maybe i am looking for = the wrong keywords. Return to PHP-code? No. PHP doesn't have explicitly signed or unsigned chars. PHP has = "strings" you can return: 1) string of chars 2) int (array of ints?) Also, see http://docs.php.net/ord ord() function converts first byte of byte-string to it's unsigned = numeric representation=