|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-10-16 07:55 UTC] frozenfire@php.net
[2012-10-16 08:37 UTC] frozenfire@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: frozenfire
[2012-10-16 08:37 UTC] frozenfire@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 08:00:01 2025 UTC |
Description: ------------ Tried this with both PHP 5.4.6 and 5.3.10. Simply enabling vld and executing any code in the CLI SAPI's run mode results in memory exhaustion without generation of opcode information. Test script: --------------- Test 1: echo "<?php function test() { }" | php -dvld.active=1 Test 2: php -dvld.active=1 -r 'function test() { }' Expected result: ---------------- Finding entry points Branch analysis from position: 0 Return found filename: - function name: (null) number of ops: 2 compiled vars: none line # * op fetch ext return operands -------------------------------------------------------------------------------- - 1 0 > NOP 2 1 > RETURN 1 branch: # 0; line: 1- 2; sop: 0; eop: 1 path #1: 0, Function test: Finding entry points Branch analysis from position: 0 Return found filename: - function name: test number of ops: 1 compiled vars: none line # * op fetch ext return operands -------------------------------------------------------------------------------- - 1 0 > > RETURN null branch: # 0; line: 1- 1; sop: 0; eop: 0 path #1: 0, End of function test. Actual result: -------------- Test 1: As expected Test 2: Finding entry points Branch analysis from position: 0 Return found filename: Command line code function name: (null) number of ops: 2 compiled vars: none line # * op fetch ext return operands -------------------------------------------------------------------------------- - 1 0 > NOP 1 > RETURN null branch: # 0; line: 1- 1; sop: 0; eop: 1 path #1: 0, PHP Fatal error: Out of memory (allocated -1969750016) (tried to allocate 1866060001 bytes) in Unknown on line 0