Skip to content

Commit 916d08b

Browse files
committed
php7dev box version 0.0.5
1 parent b8156a2 commit 916d08b

File tree

3 files changed

+599
-3
lines changed

3 files changed

+599
-3
lines changed

.suppressions

Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,230 @@
1+
{
2+
<insert_a_suppression_name_here>
3+
Memcheck:Leak
4+
fun:malloc
5+
fun:strdup
6+
fun:gaih_inet
7+
fun:getaddrinfo
8+
fun:ip_nametoaddr
9+
fun:tcp_canonical
10+
fun:mylocalhost
11+
fun:auth_gssapi_valid
12+
fun:auth_link
13+
fun:zm_startup_imap
14+
}
15+
{
16+
<insert_a_suppression_name_here>
17+
Memcheck:Leak
18+
fun:malloc
19+
fun:fs_get
20+
fun:cpystr
21+
fun:mylocalhost
22+
fun:auth_gssapi_valid
23+
}
24+
{
25+
<insert_a_suppression_name_here>
26+
Memcheck:Leak
27+
fun:malloc
28+
fun:CRYPTO_malloc
29+
obj:/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
30+
fun:SSL_COMP_get_compression_methods
31+
fun:SSL_library_init
32+
}
33+
{
34+
<insert_a_suppression_name_here>
35+
Memcheck:Leak
36+
fun:calloc
37+
fun:_dlerror_run
38+
}
39+
{
40+
<insert_a_suppression_name_here>
41+
Memcheck:Leak
42+
fun:malloc
43+
fun:CRYPTO_malloc
44+
fun:sk_new
45+
}
46+
{
47+
<insert_a_suppression_name_here>
48+
Memcheck:Leak
49+
fun:malloc
50+
fun:fs_get
51+
fun:ip_nametoaddr
52+
fun:tcp_canonical
53+
fun:mylocalhost
54+
fun:auth_gssapi_valid
55+
}
56+
{
57+
<insert_a_suppression_name_here>
58+
Memcheck:Leak
59+
fun:malloc
60+
fun:_dl_map_object_deps
61+
}
62+
{
63+
<insert_a_suppression_name_here>
64+
Memcheck:Leak
65+
fun:malloc
66+
fun:local_strdup
67+
fun:_dl_map_object
68+
}
69+
{
70+
<insert_a_suppression_name_here>
71+
Memcheck:Leak
72+
fun:malloc
73+
fun:_dl_new_object
74+
}
75+
{
76+
<insert_a_suppression_name_here>
77+
Memcheck:Leak
78+
fun:malloc
79+
fun:gaih_inet
80+
fun:getaddrinfo
81+
fun:ip_nametoaddr
82+
fun:tcp_canonical
83+
fun:mylocalhost
84+
fun:auth_gssapi_valid
85+
}
86+
{
87+
<insert_a_suppression_name_here>
88+
Memcheck:Leak
89+
fun:calloc
90+
fun:_dl_check_map_versions
91+
}
92+
{
93+
<insert_a_suppression_name_here>
94+
Memcheck:Leak
95+
fun:malloc
96+
fun:alloc_globals_ctor
97+
fun:start_memory_manager
98+
fun:zend_startup
99+
fun:php_module_startup
100+
fun:php_cli_startup
101+
fun:main
102+
}
103+
{
104+
<insert_a_suppression_name_here>
105+
Memcheck:Leak
106+
fun:malloc
107+
fun:add_to_global
108+
fun:dl_open_worker
109+
fun:_dl_catch_error
110+
fun:_dl_open
111+
}
112+
{
113+
<insert_a_suppression_name_here>
114+
Memcheck:Leak
115+
fun:calloc
116+
fun:_dl_new_object
117+
}
118+
{
119+
<insert_a_suppression_name_here>
120+
Memcheck:Leak
121+
fun:realloc
122+
fun:__zend_realloc
123+
fun:zend_new_interned_string_int
124+
fun:do_register_internal_class
125+
fun:zend_register_internal_class
126+
fun:curlfile_register_class
127+
fun:zm_startup_curl
128+
fun:zend_startup_module_ex
129+
fun:zend_startup_module_zval
130+
fun:zend_hash_apply
131+
fun:zend_startup_modules
132+
fun:php_module_startup
133+
fun:php_cli_startup
134+
fun:main
135+
}
136+
{
137+
<insert_a_suppression_name_here>
138+
Memcheck:Leak
139+
fun:malloc
140+
fun:_dl_map_object_deps
141+
}
142+
{
143+
<insert_a_suppression_name_here>
144+
Memcheck:Leak
145+
fun:malloc
146+
fun:xmlStrndup
147+
fun:xmlNewCharEncodingHandler
148+
fun:xmlInitParser
149+
}
150+
{
151+
<insert_a_suppression_name_here>
152+
Memcheck:Leak
153+
fun:malloc
154+
fun:xmlStrndup
155+
fun:xmlNewCharEncodingHandler
156+
fun:xmlInitCharEncodingHandlers
157+
fun:xmlInitParser
158+
}
159+
{
160+
<insert_a_suppression_name_here>
161+
Memcheck:Leak
162+
fun:malloc
163+
fun:xmlNewMutex
164+
fun:xmlInitGlobals
165+
fun:xmlInitParser
166+
}
167+
{
168+
<insert_a_suppression_name_here>
169+
Memcheck:Leak
170+
fun:malloc
171+
fun:xmlNewMutex
172+
fun:xmlInitMemory
173+
fun:xmlInitParser
174+
}
175+
{
176+
<insert_a_suppression_name_here>
177+
Memcheck:Leak
178+
fun:malloc
179+
fun:xmlNewCharEncodingHandler
180+
fun:xmlInitCharEncodingHandlers
181+
fun:xmlInitParser
182+
}
183+
{
184+
<insert_a_suppression_name_here>
185+
Memcheck:Leak
186+
fun:malloc
187+
fun:xmlNewCharEncodingHandler
188+
fun:xmlInitParser
189+
}
190+
{
191+
<insert_a_suppression_name_here>
192+
Memcheck:Leak
193+
fun:malloc
194+
fun:xmlNewRMutex
195+
fun:xmlInitializeDict
196+
fun:xmlInitParser
197+
}
198+
{
199+
<insert_a_suppression_name_here>
200+
Memcheck:Leak
201+
fun:malloc
202+
fun:xmlInitCharEncodingHandlers
203+
fun:xmlInitParser
204+
}
205+
{
206+
<insert_a_suppression_name_here>
207+
Memcheck:Leak
208+
fun:malloc
209+
fun:zend_register_iterator_wrapper
210+
fun:zend_register_default_classes
211+
fun:zm_startup_core
212+
}
213+
{
214+
<insert_a_suppression_name_here>
215+
Memcheck:Leak
216+
fun:malloc
217+
fun:__zend_malloc
218+
fun:zend_string_alloc
219+
fun:zend_string_init
220+
fun:zend_register_iterator_wrapper
221+
fun:zend_register_default_classes
222+
fun:zm_startup_core
223+
}
224+
{
225+
<insert_a_suppression_name_here>
226+
Memcheck:Leak
227+
fun:memalign
228+
fun:tls_get_addr_tail
229+
}
230+

README.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
## Summary
22
php7dev is a Debian 7.8 [Vagrant image](https://atlas.hashicorp.com/rasmus/boxes/php7dev) which is preconfigured for testing PHP apps and developing extensions across many versions of PHP.
33

4+
## Changes in 0.0.5
5+
- dist-upgraded all Debian packages
6+
- Updated newphp script - no longer need to sudo
7+
- Added makephp script
8+
- Added src/mysql checkout from pecl
9+
- Rebuilt all PHP versions
10+
- Added phpdbg to PHP 7.0 builds
11+
- Updated Valgrind .suppressions file
12+
- Re-installed headers as per https://github.com/rlerdorf/php7dev/issues/4
13+
14+
415
## Installation
516

617
Download and install [Virtualbox](https://www.virtualbox.org/wiki/Downloads)
@@ -108,6 +119,18 @@ $ vagrant up
108119

109120
## Updating to the latest PHP7 build
110121

122+
There is a script called *makephp* which does unattended builds.
123+
To build and install the latest PHP 7.0 and PHP 7.0-debug just do:
124+
125+
```
126+
$ makephp 7
127+
```
128+
129+
Note that on a decently fast machine it takes about 4 minutes per build.
130+
So *makephp 7* which builds php7 and php7-debug will take 8 minutes.
131+
132+
Or you can build it manually like this:
133+
111134
```bash
112135
$ cd php-src
113136
$ git pull -r
@@ -116,10 +139,10 @@ $ ./buildconf -f
116139
$ ./cn
117140
$ make
118141
$ sudo make install
119-
$ sudo newphp 7 debug
142+
$ newphp 7 debug
120143
```
121144

122-
It should be quite fast because ccache is installed and the cache should be relatively recent. Note the **./cn** script. The **--prefix** setting specified where to install to. Make sure the path matches your debug/zts setting. You can change that script to build the non-debug version by chanding **--enable-debug** to **--disable-debug** and removing **-debug** from the *--prefix**. In that case you would just do: **sudo newphp 7**
145+
Note the **./cn** script. The **--prefix** setting specified where to install to. Make sure the path matches your debug/zts setting. You can change that script to build the non-debug version by chanding **--enable-debug** to **--disable-debug** and removing **-debug** from the *--prefix**. In that case you would just do: **newphp 7**
123146

124147
## Installing phpBB
125148

@@ -233,7 +256,7 @@ Usually does the trick. You will also find [composer](https://getcomposer.org/)
233256
New in version 0.0.3 of the image is the ability to switch the entire PHP environment quickly. Every version of PHP since 5.3 is precompiled and installed in /usr/local/php*. There are actually 4 builds for each version. debug, zts, debug-zts and the standard non-debug, non-zts. To switch versions do:
234257

235258
```
236-
$ sudo newphp 55 debug zts
259+
$ newphp 55 debug zts
237260
Activating PHP 5.5.22-dev and restarting php-fpm
238261
```
239262
If you reload **http://php7dev/** you will see the PHP 5.5 info page, but much more importanly, if you run **phpize** in an extension directory it will now build the extension for PHP 5.5-debug-zts and install it in the correct place. You can quickly switch between versions like this and build your extension for 20 different combinations of PHP versions (this was requested by @auroraeosrose so if it is useful to you, she is partly to blame - if it isn't, blame me).

0 commit comments

Comments
 (0)