Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97667 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9306 invoked from network); 10 Jan 2017 18:25:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jan 2017 18:25:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=dorin.marcoci@marcodor.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dorin.marcoci@marcodor.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain marcodor.com designates 93.115.138.71 as permitted sender) X-PHP-List-Original-Sender: dorin.marcoci@marcodor.com X-Host-Fingerprint: 93.115.138.71 mail.marcodor.com Received: from [93.115.138.71] ([93.115.138.71:42293] helo=mail.marcodor.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/C6-55699-81725785 for ; Tue, 10 Jan 2017 13:25:29 -0500 Received: from DESKTOPGJMTUI6 (host-static-93-115-138-66.moldtelecom.md [93.115.138.66]) by mail.marcodor.com (Postfix) with ESMTPSA id 659D36C4024; Tue, 10 Jan 2017 20:25:25 +0200 (EET) To: "'Adam Baratz'" Cc: "'marius adrian popa'" , "'Anatol Belski'" , "'PHP Developers Mailing List'" References: <02dc01d26850$eb4e3810$c1eaa830$@belski.net> <001001d26852$6bf9ddb0$43ed9910$@marcodor.com> <000501d26b51$d1119880$7334c980$@marcodor.com> In-Reply-To: Date: Tue, 10 Jan 2017 20:25:24 +0200 Organization: Marcodor Message-ID: <001201d26b6e$e93b5500$bbb1ff00$@marcodor.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQKOV1z6yLYA/XiBhzL6jPyAglZyvQHDfiIqAeTS95oDE4SanQKJ/JJWAmrREysBVAk4D59SBK0A Content-Language: ro DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marcodor.com; s=dkim; t=1484072725; bh=MNdfKNK3eDiNWeYtLeUkRVB4RByrjfzOrmNhUQWbqS8=; h=From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; b=NW5v+pkzJuPj4o+t1FsOCgBjBwuZ3qzDrLFmANKHWtAvGr4VgMRSOEwlfQ2kgAti+CxJILVEreSMT2zvR06sAF1CVQCQ6ZX9B1CDOGIlSJ7naKbhN5QNHlaw7oYe5U+ZVxucW5/JCVT1Lu38YdexMKAs+3obuoCQwhFgE/NEQUwPKS77yFDQronQ7tVMLx98iiVNTxy9A3uWZNJSfj/2XzrHdoC93KINQ9PGkhr89GEe5h9LgoMQjSPf8FKsELgTjw3x19aeaJE8LtHywt1SqcWdiFQe5p3P2f2vULRpsxq+U1giAwypjYQEcbvGLrHZqyyV5WZagGyh2HuUfjyRyg== Subject: RE: [PHP-DEV] Dorin Marcoci Added Firebrid native type mapping for integers (smallint, integer, bigint) in PDO_Firebird driver From: dorin.marcoci@marcodor.com ("Dorin Marcoci") Hello Adam, That's why I wrote " is not possible to be done it in a _nice_ way", = where "nice" is the key :) Yes, currently it can be done by using ZVALs, but I find it over-layered = & over-structured than simply pass a zend_long for example in case of = ints. As I understand ZVAL purpose in PHP is a bit different. Later in = fetch_value ZVAL is copied into another, even not used further. A lot of = unused operations. About floating point numbers (msg89591.html), yes, great move. I'm with = you and vote "yes". Maybe just name it PDO::PARAM_FLOAT instead of DOUBLE to be more in sync = with PHP native types, as "double" describe more a size than a type. About unicode (msg88713.html) I think it=E2=80=99s a wrong way. It = should be just strings/(var)chars as in PHP/DBMSes. We should instead improve/standardize getColumnMeta where we can return = charset/collate, for other types numeric precision etc... Thank You, - Dorin Marcoci