Newsgroups: php.cvs,php.internals Path: news.php.net Xref: news.php.net php.cvs:67226 php.internals:56829 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21858 invoked from network); 7 Dec 2011 11:20:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Dec 2011 11:20:23 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:64001] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/83-01191-6FB4FDE4 for ; Wed, 07 Dec 2011 06:20:22 -0500 Received: by yenl6 with SMTP id l6so390249yen.29 for ; Wed, 07 Dec 2011 03:20:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=gS/UpK28PHDg3vBwpc4r5hi86nydCOn+pfOnNwmvj08=; b=AARUzTN4CcWlDoHcbZUYfItGB81HvbybzMB9rofOR9VRgEQq/T324o01pdWEMOZ39N I5ZpjbQkIdDkCU3gsodT/14DlDq6IqVION+DwhJOwnsF+ZJsazY4uDFNIqxd1VBDkIz+ I9iP7mfqg1dGtr9XH5g8pS0qnxdxBIv+Gy3sQ= MIME-Version: 1.0 Received: by 10.236.181.225 with SMTP id l61mr25853587yhm.131.1323256819620; Wed, 07 Dec 2011 03:20:19 -0800 (PST) Received: by 10.146.204.6 with HTTP; Wed, 7 Dec 2011 03:20:19 -0800 (PST) Date: Wed, 7 Dec 2011 12:20:19 +0100 Message-ID: To: Xinchen Hui , PHP internals Cc: php-cvs@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_4/NEWS branches/PHP_5_4/main/main.c branches/PHP_5_4/main/php_globals.h branches/PHP_5_4/main/php_ini.c branches/PHP_5_4/tests/basic/bug54514.phpt trunk/main/main.c trunk/main/php_globals.h trunk/main/p From: pierre.php@gmail.com (Pierre Joye) this patch is not correct, php crashes on startup when a request is initial= ized. =3D=3D7872=3D=3D at 0x816204B: php_auto_globals_create_request (php_vari= ables.c:804) =3D=3D7872=3D=3D by 0x818E564: zend_auto_global_init (zend_compile.c:669= 4) =3D=3D7872=3D=3D by 0x81BB0CE: zend_hash_apply (zend_hash.c:716) =3D=3D7872=3D=3D by 0x818FFEA: zend_activate_auto_globals (zend_compile.= c:6704) =3D=3D7872=3D=3D by 0x81629BE: php_hash_environment (php_variables.c:629= ) =3D=3D7872=3D=3D by 0x8154D1C: php_request_startup (main.c:1567) =3D=3D7872=3D=3D by 0x82507CD: do_cli (php_cli.c:954) =3D=3D7872=3D=3D by 0x8251403: main (php_cli.c:1356) or on windows: php_auto_globals_create_request(const char * name=3D0x10663298, unsigned int name_len=3D8, void * * * tsrm_ls=3D0x026a4f60) Line 804 + 0x16 bytes C zend_auto_global_init(_zend_auto_global * auto_global=3D0x029a3620, void * * * tsrm_ls=3D0x026a4f60) Line 6694 + 0x1b bytes C zend_hash_apply(_hashtable * ht=3D0x029ebd40, int (void *, void * * *)* apply_func=3D0x1026b880, void * * * tsrm_ls=3D0x026a4f60) Line 716 + 0x10 bytes C zend_activate_auto_globals(void * * * tsrm_ls=3D0x026a4f60) Line 6704 + 0x23 bytes C php_hash_environment(void * * * tsrm_ls=3D0x026a4f60) Line 629 + 0x9 bytes= C php_request_startup(void * * * tsrm_ls=3D0x026a4f60) Line 1567 + 0x9 bytes= C do_cli(int argc=3D6, char * * argv=3D0x026a4e28, void * * * tsrm_ls=3D0x026a4f60) Line 954 + 0xc bytes C main(int argc=3D6, char * * argv=3D0x026a4e28) Line 1356 + 0x11 bytes C __tmainCRTStartup() Line 586 + 0x19 bytes C mainCRTStartup() Line 403 C On Wed, Dec 7, 2011 at 11:33 AM, Xinchen Hui wrote: > laruence =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = Wed, 07 Dec 2011 10:33:13 +0000 > > Revision: http://svn.php.net/viewvc?view=3Drevision&revision=3D320567 > > Log: > Implemented FR #54514 (Get php binary path during script execution). > > Bug: https://bugs.php.net/54514 (Open) Get php binary path during script = execution > > Changed paths: > =A0 =A0U =A0 php/php-src/branches/PHP_5_4/NEWS > =A0 =A0U =A0 php/php-src/branches/PHP_5_4/main/main.c > =A0 =A0U =A0 php/php-src/branches/PHP_5_4/main/php_globals.h > =A0 =A0U =A0 php/php-src/branches/PHP_5_4/main/php_ini.c > =A0 =A0A =A0 php/php-src/branches/PHP_5_4/tests/basic/bug54514.phpt > =A0 =A0U =A0 php/php-src/trunk/main/main.c > =A0 =A0U =A0 php/php-src/trunk/main/php_globals.h > =A0 =A0U =A0 php/php-src/trunk/main/php_ini.c > =A0 =A0A =A0 php/php-src/trunk/tests/basic/bug54514.phpt > > > -- > PHP CVS Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org