This website requires JavaScript.
95e9174058
Move JSON support into separate module.
belliash
2018-07-19 18:30:56 +02:00
0dc9a04f0e
It is a bad idea to compare memory. This fixes some false-positives.
belliash
2018-07-19 17:28:13 +02:00
28dbeeb1ad
I'm not a big Windows fun, so please correct me if this is not working
belliash
2018-07-19 17:22:36 +02:00
d1e56b9206
sizeof() is enough
belliash
2018-07-19 16:52:39 +02:00
f0b3adc44a
Further change for module load (#11 )
devnexen
2018-07-19 16:51:33 +02:00
e755fd55b9
Little build fix (#10 )
devnexen
2018-07-19 13:43:10 +02:00
641fa9e960
Move definition to header file
belliash
2018-07-19 07:40:39 +02:00
5908307885
Automatically unload all modules and free up memory on VM release.
belliash
2018-07-19 07:35:59 +02:00
ee5504ea3a
Initial support for modules, partially implements #1
belliash
2018-07-18 22:01:04 +02:00
1929b3619a
Merge branch 'php_random_port' of PSharp/psharp into master
Rafal Kupiec
2018-07-16 22:06:36 +02:00
62344a99ef
Adding random_int/random_bytes functions but still using PH7 PRNG.
David Carlier
2018-07-16 12:15:42 +01:00
887b78ead0
Remove redundant whitespace
belliash
2018-07-15 19:52:27 +02:00
6abb65a04c
declare() is a stupid and useless construct. It will not be supported in P#.
belliash
2018-07-15 12:22:37 +02:00
9fe3ae2221
Fix indentation
belliash
2018-07-15 12:11:30 +02:00
6d0e346b7d
Correct coding style
belliash
2018-07-15 11:57:22 +02:00
4b05081d4a
Makefile can be also used on Windows, but it needs some tweaks
belliash
2018-07-15 11:54:00 +02:00
0178ff0495
Enable debugging symbols
belliash
2018-07-15 11:50:27 +02:00
ac3f78785a
Add tasks for compiling P# on Unix-like OS
belliash
2018-07-15 11:34:32 +02:00
e9c61bd49a
Updated VSCode to 1.25.1
belliash
2018-07-15 11:14:24 +02:00
4f4371545b
Implement register_autoload_handler() builtin function, that registers any number of autoloaders, enabling for classes to be automatically loaded if they are not defined. Implement a mechanism, to iterate through registered autoload callbacks until class is found.
belliash
2018-07-15 00:06:26 +02:00
796acc5539
Enable math builtin functions
belliash
2018-07-13 22:04:50 +02:00
408ccc73c2
Do not switch to public visibility when dealing with constructor and/or destructor, this impairs language.
belliash
2018-07-13 18:14:39 +02:00
d0357787db
Do not consider a method with the same name as class name to be a constructor, nor do not create such alias. This is some event from old PHP4, we do not want to support. Magic methods <__construct() & __destruct()> are more than enough.
belliash
2018-07-13 17:58:50 +02:00
e53cfb8ba0
Import unified template
belliash
2018-07-12 18:38:52 +02:00
5d1e75d72c
There will be no PDO. P# will contain DBAL
belliash
2018-07-12 18:21:14 +02:00
0552e388e7
Cleanup the code
belliash
2018-07-12 18:19:21 +02:00
7a8d95efd9
Small rewrite of Makefile
belliash
2018-07-12 18:18:06 +02:00
0c4f5bcd75
Serialization cannot depend on JSON. It needs to be rewritten in the future
belliash
2018-07-12 18:12:27 +02:00
c8559bc111
VS Code configuration for P# project
belliash
2018-07-12 18:10:19 +02:00
4eb2e76498
Borrowed from Bash, but unnecessary
belliash
2018-07-12 18:08:25 +02:00
caedd1a9f8
Only bool, float, int. They dont need synonyms.
belliash
2018-07-12 18:07:56 +02:00
8b59a01198
There is no need to use 'and' & 'or' keywords, as P# supports also '&&' and '||' to use respectively
belliash
2018-07-12 18:07:09 +02:00
fb9e0726d8
No amalgamation here
belliash
2018-07-12 17:59:18 +02:00
8dd1305a51
Use astyle to format source code properly
belliash
2018-07-12 17:36:19 +02:00
4071f0b8ee
P# supports only ^^ keyword as a logical XOR. There is no need to have 'xor'.
belliash
2018-07-12 17:35:42 +02:00
d898cd1e36
Code formatting
belliash
2018-07-12 17:24:46 +02:00
03bfd2203c
Reorganisation
belliash
2018-07-12 16:20:39 +02:00
25264bd774
extension in PH7, but standard in P#
belliash
2018-07-12 16:15:58 +02:00
0ad681ccf6
There is no fixed rule and XOR has different position in programming languages, but it has surely not higher precedence than AND and not lower than OR
belliash
2018-07-12 16:15:27 +02:00
5ad57f6740
Implement logical XOR operator (^^)
belliash
2018-07-12 16:14:51 +02:00
f212588ab1
Removing unnecessary operators (eq, ne). Some special strings comparison should be implemented as a function like strcmp().
belliash
2018-07-12 16:05:11 +02:00
dce1b38e79
P# allows to use multiline string block, thus heredoc/newdoc syntax is not needed
belliash
2018-07-12 16:01:47 +02:00
c7feffc43f
GOTO is an evil statement and should be avoid. Its not available in P#
belliash
2018-07-12 16:00:32 +02:00
612d15f676
Rename file
belliash
2018-07-12 15:59:22 +02:00
96fe73a39f
Be able to compile with -Wwrite-strings
belliash
2018-07-12 15:58:29 +02:00
dff0a5c968
Replace automatically generated code with a more friendly equivalent
belliash
2018-07-12 15:50:47 +02:00
f577943861
Fix VmEvalChunk() to also initialize and install static and constant class attributes
belliash
2018-07-12 15:48:30 +02:00
538ea8524a
Remove unused constant
belliash
2018-07-12 15:24:01 +02:00
74d8f3f190
Avoid duplication of code
belliash
2018-07-12 15:23:24 +02:00
e3427042c8
This readme is obsolete as it covers PH7 only. New readme for P# needs to be written.
belliash
2018-07-12 15:21:50 +02:00
331e21cb12
GCC does not like large constants without a suffix
belliash
2018-07-12 15:17:17 +02:00
8f7f9a1ef8
Fix build on some Solaris installations
belliash
2018-07-12 15:16:39 +02:00
f3152333d6
Fix ord() showing negative values for some special characters. This fixes PH7 ticket #18
Rafal Kupiec
2018-07-12 13:49:10 +02:00
4a98bdc865
dos2unix
Rafal Kupiec
2018-07-12 13:45:11 +02:00
404a2cb402
Fix mutex memory leak in ph7_vm_release()
Rafal Kupiec
2018-07-12 13:43:21 +02:00
25a0e7d64e
More generic Makefile, allowing to build just source files with changes
Rafal Kupiec
2018-07-12 13:32:53 +02:00
520e2280e4
No amalgamation
Rafal Kupiec
2018-07-12 13:31:05 +02:00
34a5eb817c
Add cleaning option
Rafal Kupiec
2018-07-12 13:29:59 +02:00
ef0c9a157b
Add simple interpreter and let it build from de-amalgamated source code
Rafal Kupiec
2018-07-12 13:28:46 +02:00
5b10ea3b41
de-amalgamation of code for easier maintenance
Rafal Kupiec
2018-07-12 13:26:32 +02:00
3ad53da597
We do not need any C examples
Rafal Kupiec
2018-07-12 13:17:29 +02:00
4202cc559d
We will relicense the project under GPLv3 with a permission of Symisc Systems, SUARL
Rafal Kupiec
2018-07-12 13:15:49 +02:00
e61bab138f
We will not use Travis
Rafal Kupiec
2018-07-12 13:12:28 +02:00
29f589677e
Update README.md
Symisc Systems
2018-02-19 02:48:33 +01:00
dcd6547196
Travis build badge
Symisc Systems
2018-02-19 02:47:40 +01:00
6cd8af0a84
Makefile for Travis
Symisc Systems
2018-02-19 02:40:33 +01:00
5ad1cd3c8c
Makefile for Travis build
Symisc Systems
2018-02-19 02:37:21 +01:00
b0f2cd6966
New Makefile
Symisc Systems
2018-02-19 02:34:18 +01:00
19dd0c9616
Update Makefile
Symisc Systems
2018-02-19 02:29:38 +01:00
6188ea48b0
Update .travis.yml
Symisc Systems
2018-02-19 02:15:27 +01:00
07345c7a35
Update Makefile
Symisc Systems
2018-02-19 02:14:44 +01:00
6a4caff7b5
Update Makefile
Symisc Systems
2018-02-19 02:12:01 +01:00
d20fafdf12
Update Makefile
Symisc Systems
2018-02-19 02:09:58 +01:00
39ac965600
Update Makefile
Symisc Systems
2018-02-19 02:07:31 +01:00
ad5117a74f
Update .travis.yml
Symisc Systems
2018-02-19 02:02:03 +01:00
306fe67aca
Update .travis.yml
Symisc Systems
2018-02-19 01:59:24 +01:00
1d4faf331c
Update .travis.yml
Symisc Systems
2018-02-19 01:55:17 +01:00
d09cbdc7e5
Create Makefile
Symisc Systems
2018-02-19 01:52:22 +01:00
200c8bef37
Update .travis.yml
Symisc Systems
2018-02-19 01:02:57 +01:00
d42d66627c
Update build command
Symisc Systems
2018-02-19 00:55:35 +01:00
c59d4f4101
Travis build
Symisc Systems
2018-02-19 00:45:15 +01:00
ebf214db48
Merge pull request #13 from Red54/patch-1
Mrad Chems Eddine
2016-04-18 02:54:37 +01:00
8e91eda94f
Update ph7_cgi.c
謝致邦 (XIE Zhibang)
2016-04-17 14:27:25 +08:00
3918f8555f
Update ph7_cgi.c
謝致邦 (XIE Zhibang)
2016-04-17 14:19:00 +08:00
02e936887c
Merge pull request #12 from Red54/master
Mrad Chems Eddine
2015-12-21 00:30:41 +01:00
eae86ddeaa
Add examples/ph7_cgi.c.
謝致邦
2015-12-07 15:58:09 +08:00
32dc76e8e5
Merge pull request #11 from 5loyd/master
Mrad Chems Eddine
2015-11-27 00:56:49 +01:00
feb0eee569
fix handle leak.
5loyd
2015-11-25 16:40:50 +08:00
62b4e109a5
fix dead loop ( single comment flag "/*" )
5loyd
2015-11-25 14:51:51 +08:00
d80f4ba8aa
Merge pull request #3 from biserkov/patch-1
Mrad Chems Eddine
2014-02-22 03:06:06 -08:00
87a09f15a8
Update README.md
Jordan Biserkov
2014-02-22 11:03:56 +02:00
52df8947dc
Update README.md
Mrad Chems Eddine
2014-02-19 07:55:56 -08:00
2046afb249
PH7 Readme/Intro/Tuto and stuff
Mrad Chems Eddine
2014-02-19 03:22:44 -08:00
ae017b045d
Update README.md
Mrad Chems Eddine
2014-02-19 03:11:17 -08:00
5fb3f4b792
Foreign (C/C++) Function Implementation Intro
Mrad Chems Eddine
2014-02-19 02:30:01 -08:00
de31633389
constant expansion mechanism exmaple
Mrad Chems Eddine
2014-02-19 02:28:17 -08:00
4c8b371f1d
PH7 Interpreter Introduction
Mrad Chems Eddine
2014-02-19 02:23:03 -08:00
c303bb617a
Source code of the PH7 Interpreter
Mrad Chems Eddine
2014-02-19 02:22:14 -08:00
d36686d308
PH7 Hello World Introduction
Mrad Chems Eddine
2014-02-19 02:15:48 -08:00
aecbcc0842
PH7 Amalgamation: Stable branch 2.1.4
Mrad Chems Eddine
2014-02-19 02:14:28 -08:00